Author: solomax
Date: Wed Dec 14 15:55:11 2016
New Revision: 1774279

URL: http://svn.apache.org/viewvc?rev=1774279&view=rev
Log:
no jira: Whitespaces and code clean-up

Modified:
    
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/base/hibernate/hibRtmpConnection.lzx
    
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/popups/confirmationSingle.lzx
    
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/base/baseDrawObject.lzx
    
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx
    
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteboardPanel.lzx
    
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/whiteboardBarMenu.lzx
    
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/video/editRecordStreamSWF10.lzx
    
openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/base/hibernate/hibRtmpConnection.lzx
    
openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/modules/conference/popups/confirmationSingle.lzx
    
openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/base/baseDrawObject.lzx
    
openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx
    
openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteboardPanel.lzx
    
openmeetings/application/branches/3.2.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/whiteboardBarMenu.lzx

Modified: 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/base/hibernate/hibRtmpConnection.lzx
URL: 
http://svn.apache.org/viewvc/openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/base/hibernate/hibRtmpConnection.lzx?rev=1774279&r1=1774278&r2=1774279&view=diff
==============================================================================
--- 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/base/hibernate/hibRtmpConnection.lzx
 (original)
+++ 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/base/hibernate/hibRtmpConnection.lzx
 Wed Dec 14 15:55:11 2016
@@ -367,9 +367,9 @@
                                parent.userlang = canvas.language_id;
                        }
                        parent.getLanguageByIdAndMax.doCall();
-               </handler>  
-       </netRemoteCallHib>       
-       
+               </handler>
+       </netRemoteCallHib>
+
        <netRemoteCallHib name="getInvitationByHash" activeErrorHandler="true" 
funcname="invitationservice.getInvitationByHash">
                <netparam><method name="getValue">return 
canvas.sessionId;</method></netparam>
                <netparam name="invitationHash"><method name="getValue">return 
canvas.invitationHash;</method></netparam>
@@ -392,8 +392,8 @@
                        }
                ]]>
                </handler>
-       </netRemoteCallHib> 
-       
+       </netRemoteCallHib>
+
        <netRemoteCallHib name="secureLoginByRemote" activeErrorHandler="true" 
funcname="xmlcrm.secureLoginByRemote" >
                <netparam><method name="getValue">return 
canvas.sessionId;</method></netparam>
                <netparam name="remoteSessionId"><method name="getValue">return 
canvas.secureHash;</method></netparam>
@@ -432,25 +432,25 @@
                        }
                ]]>
                </handler>
-       </netRemoteCallHib>  
-       
+       </netRemoteCallHib>
+
        <netRemoteCallHib name="loginUserByRemote" activeErrorHandler="true" 
                funcname="xmlcrm.loginUserByRemote" >             
                <netparam name="remoteSessionId"><method name="getValue">return 
canvas.remoteUserSid;</method></netparam>
                <handler name="ondata" args="value">
-                       <![CDATA[
+               <![CDATA[
+                       
+                       //The onResult-Handler will be called be the 
rtmpconnection
+                       if ($debug) Debug.write("loginUserByRemote -1-: 
",value);
+                       if ($debug) Debug.write("loginUserByRemote -2-: 
",canvas.remoteUserSid);
+                       if (value<0){
                                
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               if ($debug) Debug.write("loginUserByRemote -1-: 
",value);
-                               if ($debug) Debug.write("loginUserByRemote -2-: 
",canvas.remoteUserSid);
-                               if (value<0){
-                                       
-                               } else {
-                                       parent.getCurrentRoomClient.doCall();
-                               }
-                       ]]>
-               </handler>   
-       </netRemoteCallHib>  
+                       } else {
+                               parent.getCurrentRoomClient.doCall();
+                       }
+               ]]>
+               </handler>
+       </netRemoteCallHib>
        
        <netRemoteCallHib name="getCurrentRoomClient" 
funcname="xmlcrm.getCurrentRoomClient" >
                <netparam name="sessionId"><method name="getValue">return 
canvas.sessionId;</method></netparam>
@@ -498,7 +498,7 @@
                ]]>
                </handler>
        </netRemoteCallHib>
-       
+
        <netRemoteCallHib name="getRoomById" 
funcname="conferenceservice.getRoomById" >
                <netparam name="sessionId"><method name="getValue">return 
canvas.sessionId;</method></netparam>
                <netparam name="roomId"><method name="getValue">return 
canvas.initroomid;</method></netparam>
@@ -539,7 +539,7 @@
                                if (this.start <= max){
                                        this.start += this.step;
                                        if (canvas.thishib.loaderVar != null) {
-                                          
canvas.thishib.loaderVar.setProgress();
+                                               
canvas.thishib.loaderVar.setProgress();
                                        }
                                        this.doCall();
                                } else {
@@ -618,7 +618,7 @@
                ]]>
                </handler>
        </netRemoteCallHib>
-       
+
        <netRemoteCallHib name="loginWicket" funcname="xmlcrm.loginWicket" >
                <netparam><method name="getValue">return 
canvas.sessionId;</method></netparam>
                <netparam><method name="getValue">return 
canvas.wicketsid;</method></netparam>
@@ -655,733 +655,732 @@
                </handler>
        </netRemoteCallHib>
        
-               <netRemoteCallHib name="setUsernameAndSession" 
funcname="setUsernameAndSession" remotecontext="$once{ canvas.thishib }" >   
-                       <netparam><method name="getValue"> return 
canvas.sessionId; </method></netparam> 
-                       <netparam><method name="getValue">return 
canvas.userId;</method></netparam>
-                       <netparam><method name="getValue">return 
canvas.currentuser;</method></netparam>
-                       <netparam><method name="getValue">return 
canvas.firstName;</method></netparam>
-                       <netparam><method name="getValue">return 
canvas.lastName;</method></netparam>
-                       <handler name="ondata" args="value">
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               if ($debug) Debug.write("setUsernameAndSession: 
",canvas.userId,value);
-                               if (canvas.thishib.loaderVar != null) {
-                                       canvas.thishib.loaderVar.close();
-                               }
-                       </handler>
-               </netRemoteCallHib>
-               
-               <netRemoteCallHib name="testMethod" funcname="testMethod">
-                       <handler name="ondata" args="value">
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               if ($debug) Debug.write("testMethod ",value);
-                       </handler>  
-               </netRemoteCallHib>
-
-               <!--- Notification of new User --> 
-               <method name="addNewUser" args="value">
+       <netRemoteCallHib name="setUsernameAndSession" 
funcname="setUsernameAndSession" remotecontext="$once{ canvas.thishib }" >   
+               <netparam><method name="getValue"> return canvas.sessionId; 
</method></netparam> 
+               <netparam><method name="getValue">return 
canvas.userId;</method></netparam>
+               <netparam><method name="getValue">return 
canvas.currentuser;</method></netparam>
+               <netparam><method name="getValue">return 
canvas.firstName;</method></netparam>
+               <netparam><method name="getValue">return 
canvas.lastName;</method></netparam>
+               <handler name="ondata" args="value">
                        //The onResult-Handler will be called be the 
rtmpconnection
-                       if ($debug) Debug.write("addNewUser: ", value);
-                       if (!!canvas._videocontainer) {
-                               if (value.sipTransport) {
-                                       
canvas._videocontainer.addItem(value.connectedSince, value.isMod, value.streamid
-                                                       , value.roomId, '', 
value.formatedDate, value.userpos, value.usercolor, value);
-                               } else {
-                                       
canvas._videocontainer.addClientItem(value.connectedSince, value.isMod, 
value.streamid
-                                                       , value.roomId, '', 
value.formatedDate, value.userpos, value.usercolor, value);
-                               }
+                       if ($debug) Debug.write("setUsernameAndSession: 
",canvas.userId,value);
+                       if (canvas.thishib.loaderVar != null) {
+                               canvas.thishib.loaderVar.close();
                        }
-                       
canvas.setAttribute('numberofpartners',canvas.numberofpartners+1);
-               </method>       
-               
-               <netRemoteCallHib name="getCurrentModeratorList" 
funcname="getCurrentModeratorList">
-                       <handler name="ondata" args="value">
-                       <![CDATA[
-                               if ($debug) Debug.write("############ 
getCurrentModeratorList: ", value);
-
-                               canvas.analyzeModerationList(value);
+               </handler>
+       </netRemoteCallHib>
+       
+       <netRemoteCallHib name="testMethod" funcname="testMethod">
+               <handler name="ondata" args="value">
+                       //The onResult-Handler will be called be the 
rtmpconnection
+                       if ($debug) Debug.write("testMethod ",value);
+               </handler>  
+       </netRemoteCallHib>
 
-                               canvas.currentModeratorList = value;
-                               //Update Moderation Flag
-                               canvas.updateModerationFlag();
+       <!--- Notification of new User --> 
+       <method name="addNewUser" args="value">
+               //The onResult-Handler will be called be the rtmpconnection
+               if ($debug) Debug.write("addNewUser: ", value);
+               if (!!canvas._videocontainer) {
+                       if (value.sipTransport) {
+                               
canvas._videocontainer.addItem(value.connectedSince, value.isMod, value.streamid
+                                               , value.roomId, '', 
value.formatedDate, value.userpos, value.usercolor, value);
+                       } else {
+                               
canvas._videocontainer.addClientItem(value.connectedSince, value.isMod, 
value.streamid
+                                               , value.roomId, '', 
value.formatedDate, value.userpos, value.usercolor, value);
+                       }
+               }
+               
canvas.setAttribute('numberofpartners',canvas.numberofpartners+1);
+       </method>       
+       
+       <netRemoteCallHib name="getCurrentModeratorList" 
funcname="getCurrentModeratorList">
+               <handler name="ondata" args="value">
+               <![CDATA[
+                       if ($debug) Debug.write("############ 
getCurrentModeratorList: ", value);
 
-                               var messageAlreadyThrown = false;
+                       canvas.analyzeModerationList(value);
 
-                               //if ($debug) Debug.write("throw event to 
drawarea: ", canvas.moderatorStreamID, canvas.ismoderator);
+                       canvas.currentModeratorList = value;
+                       //Update Moderation Flag
+                       canvas.updateModerationFlag();
 
-                               if (this.parent.modus == "conference") {
-                                       if ($debug) Debug.write("############## 
start broadcasting ");
-                                       
parent.setBroadCastingFlag.publicSIDOfNewModerator = canvas.publicSID;
-                                       parent.setBroadCastingFlag.canVideo = 
!canvas.currentRoomObj.audioOnly;
-                                       
parent.setBroadCastingFlag.isAllowedToBroadCastAV = true;
-                                       parent.setBroadCastingFlag.doCall();
-                               }
-                               canvas._drawarea.onopenWhiteBoard.sendEvent();
+                       var messageAlreadyThrown = false;
 
-                               if ($debug) Debug.write("room ", 
canvas.currentRoomObj);
-                               if ($debug) Debug.write("room.type ", 
canvas.currentRoomObj.type);
+                       //if ($debug) Debug.write("throw event to drawarea: ", 
canvas.moderatorStreamID, canvas.ismoderator);
 
-                               if (canvas.currentRoomObj.type != 'restricted') 
{
-                                       if (canvas.currentRoomObj.moderated) {
-                                               if (value.length == 0 && 
!messageAlreadyThrown){
-                                                       new 
lz.labelerrorPopup(canvas,{errorlabelid:641});
-                                               }
-                                       } else {
-                                               if (value.length == 0 && 
!messageAlreadyThrown){
-                                                       new 
lz.errorModeratorPopup(canvas,{error:canvas.getLabelName(498)});
-                                               }
+                       if (this.parent.modus == "conference") {
+                               if ($debug) Debug.write("############## start 
broadcasting ");
+                               
parent.setBroadCastingFlag.publicSIDOfNewModerator = canvas.publicSID;
+                               parent.setBroadCastingFlag.canVideo = 
!canvas.currentRoomObj.audioOnly;
+                               
parent.setBroadCastingFlag.isAllowedToBroadCastAV = true;
+                               parent.setBroadCastingFlag.doCall();
+                       }
+                       canvas._drawarea.onopenWhiteBoard.sendEvent();
+
+                       if ($debug) Debug.write("room ", canvas.currentRoomObj);
+                       if ($debug) Debug.write("room.type ", 
canvas.currentRoomObj.type);
+
+                       if (canvas.currentRoomObj.type != 'restricted') {
+                               if (canvas.currentRoomObj.moderated) {
+                                       if (value.length == 0 && 
!messageAlreadyThrown){
+                                               new 
lz.labelerrorPopup(canvas,{errorlabelid:641});
+                                       }
+                               } else {
+                                       if (value.length == 0 && 
!messageAlreadyThrown){
+                                               new 
lz.errorModeratorPopup(canvas,{error:canvas.getLabelName(498)});
                                        }
                                }
-                       ]]>
-                       </handler>
-               </netRemoteCallHib>
-               
-               <method name="newStream" args="value">
-                       //The onResult-Handler will be called be the 
rtmpconnection
-                       if ($debug) Debug.write("newStream: ",value);
-                       if (value == null || value.screenClient) {
-                               return;
-                       }
-                       canvas.commonVideoViewContent.startStream(value);
-               </method> 
-                  
-               <method name="closeStream" args="value">
-                       //The onResult-Handler will be called be the 
rtmpconnection
-                       if ($debug) Debug.write("**** closeStream: ",value);
-                       if (value == null) {
-                               return;
-                       }
-                       if (value.screenClient) {
-                               if ($debug) Debug.write(" ondata closeStream: 
",value.streamPublishName);
-                               
canvas.commonVideoViewContent.closeScreenSharing(value);
-                       } else {
-                               //free the VideoContainer
-                               
//canvas._videocontainer.closeStreamClient(value.publicSID);
-                               
canvas.commonVideoViewContent.closeStreamClient(value.publicSID);
-                               
canvas.setAttribute('numberofpartners',canvas.numberofpartners-1);
                        }
-                       //TODO:check first current tab
-               </method>
-               
-               <!---
-                       Event is invoked if a red5 stream sharing is closed
-                -->
-               <method name="stopScreenSharingMessage" args="value">
-                       //The onResult-Handler will be called be the 
rtmpconnection
-                       if ($debug) Debug.write("**** closeStream: ",value);
-                       if ($debug) Debug.write(" onResult 
stopScreenSharingMessage : ",value.streamPublishName);
+               ]]>
+               </handler>
+       </netRemoteCallHib>
+       
+       <method name="newStream" args="value">
+               //The onResult-Handler will be called be the rtmpconnection
+               if ($debug) Debug.write("newStream: ",value);
+               if (value == null || value.screenClient) {
+                       return;
+               }
+               canvas.commonVideoViewContent.startStream(value);
+       </method> 
+
+       <method name="closeStream" args="value">
+               //The onResult-Handler will be called be the rtmpconnection
+               if ($debug) Debug.write("**** closeStream: ",value);
+               if (value == null) {
+                       return;
+               }
+               if (value.screenClient) {
+                       if ($debug) Debug.write(" ondata closeStream: 
",value.streamPublishName);
                        canvas.commonVideoViewContent.closeScreenSharing(value);
-               </method> 
-                        
-               <netRemoteCallHib name="clientregisterRoom" 
funcname="clientregisterRoom">
-                       <handler name="ondata" args="value">
-                               if ($debug) Debug.write("**** 
clientregisterRoom::ondata ", value);
-                       </handler>
-               </netRemoteCallHib>
-
-               <method name="roomDisconnectUser" args="value,id">
-                       canvas._videocontainer.disconnectclient(id);
-                       if (canvas.commonVideoViewContent != null) {
-                               
canvas.commonVideoViewContent.disconnectclient(id);
-                               if (canvas.currentModApply != null) 
canvas.currentModApply.rejectUser(value);
-                               if (value.isRecording) {
-                                       canvas._mymod.recordingUser = null;
-                               }
-                               if (value.streamPublishStarted) {
-                                       canvas._mymod.publishingObj = null;
-                               }
-                               canvas._mymod.setMessage();
-                       }
-               </method>
-               
-               <method name="roomDisconnect" args="value">
-               <![CDATA[
-                       //The onResult-Handler will be called be the 
rtmpconnection
-                       if ($debug) Debug.write("roomDisconnect: ", value);
-                       if (value == null || value.screenClient) {
-                               return;
-                       }
-                       if (canvas.currentBaseConferenceRoom != null && 
canvas.currentBaseConferenceRoom._chatPanelStrict != null) {
-                               if ($debug) 
Debug.write("canvas.currentBaseConferenceRoom._chatPanelStrict: ", 
canvas.currentBaseConferenceRoom._chatPanelStrict);
-                               
canvas.currentBaseConferenceRoom._chatPanelStrict.closeprivatechat(["close", 
value.publicSID]);
+               } else {
+                       //free the VideoContainer
+                       
//canvas._videocontainer.closeStreamClient(value.publicSID);
+                       
canvas.commonVideoViewContent.closeStreamClient(value.publicSID);
+                       
canvas.setAttribute('numberofpartners',canvas.numberofpartners-1);
+               }
+               //TODO:check first current tab
+       </method>
+
+       <!---
+               Event is invoked if a red5 stream sharing is closed
+        -->
+       <method name="stopScreenSharingMessage" args="value">
+               //The onResult-Handler will be called be the rtmpconnection
+               if ($debug) Debug.write("**** closeStream: ",value);
+               if ($debug) Debug.write(" onResult stopScreenSharingMessage : 
",value.streamPublishName);
+               canvas.commonVideoViewContent.closeScreenSharing(value);
+       </method> 
+                
+       <netRemoteCallHib name="clientregisterRoom" 
funcname="clientregisterRoom">
+               <handler name="ondata" args="value">
+                       if ($debug) Debug.write("**** 
clientregisterRoom::ondata ", value);
+               </handler>
+       </netRemoteCallHib>
+
+       <method name="roomDisconnectUser" args="value,id">
+               canvas._videocontainer.disconnectclient(id);
+               if (canvas.commonVideoViewContent != null) {
+                       canvas.commonVideoViewContent.disconnectclient(id);
+                       if (canvas.currentModApply != null) 
canvas.currentModApply.rejectUser(value);
+                       if (value.isRecording) {
+                               canvas._mymod.recordingUser = null;
                        }
-                       if (!value.securityCode && canvas.currentActivityList 
!= null) {
-                               
canvas.currentActivityList.addMessageRequest(value, canvas.getLabelName(1367), 
new Date().getTime());
+                       if (value.streamPublishStarted) {
+                               canvas._mymod.publishingObj = null;
                        }
-                       this.roomDisconnectUser(value, value.publicSID);
-               ]]>
-               </method>
-
-               <method name="stopRecordingMessage" args="value">
-                       //The onResult-Handler will be called be the 
rtmpconnection
-                       canvas._mymod.recordingUser = null;
                        canvas._mymod.setMessage();
-               </method>
+               }
+       </method>
 
-               <method name="stopPublishingMessage" args="value">
-                       //The onResult-Handler will be called be the 
rtmpconnection
-                       canvas._mymod.publishingObj = null;
-                       canvas._mymod.setMessage();
-               </method>
+       <method name="roomDisconnect" args="value">
+       <![CDATA[
+               //The onResult-Handler will be called be the rtmpconnection
+               if ($debug) Debug.write("roomDisconnect: ", value);
+               if (value == null || value.screenClient) {
+                       return;
+               }
+               if (canvas.currentBaseConferenceRoom != null && 
canvas.currentBaseConferenceRoom._chatPanelStrict != null) {
+                       if ($debug) 
Debug.write("canvas.currentBaseConferenceRoom._chatPanelStrict: ", 
canvas.currentBaseConferenceRoom._chatPanelStrict);
+                       
canvas.currentBaseConferenceRoom._chatPanelStrict.closeprivatechat(["close", 
value.publicSID]);
+               }
+               if (!value.securityCode && canvas.currentActivityList != null) {
+                       canvas.currentActivityList.addMessageRequest(value, 
canvas.getLabelName(1367), new Date().getTime());
+               }
+               this.roomDisconnectUser(value, value.publicSID);
+       ]]>
+       </method>
+
+       <method name="stopRecordingMessage" args="value">
+               //The onResult-Handler will be called be the rtmpconnection
+               canvas._mymod.recordingUser = null;
+               canvas._mymod.setMessage();
+       </method>
+
+       <method name="stopPublishingMessage" args="value">
+               //The onResult-Handler will be called be the rtmpconnection
+               canvas._mymod.publishingObj = null;
+               canvas._mymod.setMessage();
+       </method>
 
-               <netRemoteCallHib name="setSyncFlag" funcname="setSyncFlag" >
-                       <handler name="ondata" args="value">
-                               if ($debug) Debug.write("setSyncFlag: ",value);
-                       </handler>
-               </netRemoteCallHib>
-
-               <netRemoteCallHib name="logicalRoomLeaveDis" 
funcname="logicalRoomLeaveDis" >
-                       <handler name="ondata" args="value">
-                               if ($debug) Debug.write("logicalRoomLeaveDis: 
",value);
-                               parent.roomDisconnectUser(value, 
value.broadCastID);
-                       </handler>
-               </netRemoteCallHib>
+       <netRemoteCallHib name="setSyncFlag" funcname="setSyncFlag" >
+               <handler name="ondata" args="value">
+                       if ($debug) Debug.write("setSyncFlag: ",value);
+               </handler>
+       </netRemoteCallHib>
+
+       <netRemoteCallHib name="logicalRoomLeaveDis" 
funcname="logicalRoomLeaveDis" >
+               <handler name="ondata" args="value">
+                       if ($debug) Debug.write("logicalRoomLeaveDis: ",value);
+                       parent.roomDisconnectUser(value, value.broadCastID);
+               </handler>
+       </netRemoteCallHib>
+
+       <method name="setUserStatus" args="ctx,user,o">
+       <![CDATA[
+               if (!o || !user) return;
+               //The onResult-Handler will be called be the rtmpconnection
+               if ($debug) {
+                       Debug.write("setUserStatus: ", user);
+                       Debug.write("setUserStatus: ", o.param);
+               }
+               var aObj = o.param[3];
+               var usPoint = null;
+               if ($debug) Debug.write("drawObj: ", aObj[0]);
+               switch(aObj[0]) {
+                       case 'line':
+                       case 'uline':
+                               usPoint = {x: aObj[aObj.length - 5] + aObj[6], 
y: aObj[aObj.length - 4] + aObj[7]};
+                               break;
+                       case 'letter':
+                       case 'rectangle':
+                       case 'ellipse':
+                       case 'clipart':
+                               usPoint = {x: aObj[aObj.length - 3] + 
aObj[aObj.length - 5], y: aObj[aObj.length - 2] + aObj[aObj.length - 4]};
+                               break;
+                       case 'paint':
+                               var points = aObj[1];
+                               //points are empty on 'paint' move
+                               usPoint = {
+                                       x: aObj[aObj.length - 5] + 
(points.length ? points[points.length - 1][3] : aObj[aObj.length - 3])
+                                       , y: aObj[aObj.length - 4] + 
(points.length ? points[points.length - 1][4] : aObj[aObj.length - 2])};
+                               break;
+                       case 'drawarrow':
+                               usPoint = {x: aObj[aObj.length - 5] + aObj[9], 
y: aObj[aObj.length - 4] + aObj[10]};
+                               break;
+               }
+               if (usPoint) {
+                       var us = new lz.userStatus(ctx, {
+                               width:100
+                               , x: usPoint.x
+                               , y: usPoint.y - 25 //little above
+                               , queueable: false
+                               , statusText: user.firstname + " " + 
user.lastname
+                               });
+                       if ($debug) Debug.write("us: ", us, "; usPoint: ", 
usPoint);
+               }
+       ]]>
+       </method>
+
+       <method name="sendVarsToWhiteboardById" args="value">
+       <![CDATA[
+               //The onResult-Handler will be called be the rtmpconnection
+               if ($debug) Debug.write("sendVarsToWhiteboardById : ", value);
+               this.setUserStatus(canvas._drawarea, value[0], value[1]);
+               
canvas._drawarea.parent.parent.parent.sendWatchObjectByWhiteboard(value[1]);
+       ]]>
+       </method> 
+       
+       <method name="loadWmlToWhiteboardById" args="value">
+       <![CDATA[
+               //The onResult-Handler will be called be the rtmpconnection
+               if ($debug) Debug.write("loadWmlToWhiteboardById : ",value);
+               
canvas._drawarea.parent.parent.parent.loadWmlToWhiteboardById(value);
+       ]]>
+       </method>
 
-               <method name="setUserStatus" args="ctx,user,o">
+       <!--
+               Adds this User to the List of current Moderators
+        -->
+       <netRemoteCallHib name="addModerator" funcname="addModerator">
+               <attribute name="publicSIDOfNewModerator" value="0" 
type="string" />
+               <netparam name="vars"><method name="getValue">return 
parent.publicSIDOfNewModerator;</method></netparam>
+               <handler name="ondata" args="value">
                        <![CDATA[
-                               if (!o || !user) return;
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               if ($debug) {
-                                       Debug.write("setUserStatus: ", user);
-                                       Debug.write("setUserStatus: ", o.param);
-                               }
-                               var aObj = o.param[3];
-                               var usPoint = null;
-                               if ($debug) Debug.write("drawObj: ", aObj[0]);
-                               switch(aObj[0]) {
-                                       case 'line':
-                                       case 'uline':
-                                               usPoint = {x: aObj[aObj.length 
- 5] + aObj[6], y: aObj[aObj.length - 4] + aObj[7]};
-                                               break;
-                                       case 'letter':
-                                       case 'rectangle':
-                                       case 'ellipse':
-                                       case 'clipart':
-                                               usPoint = {x: aObj[aObj.length 
- 3] + aObj[aObj.length - 5], y: aObj[aObj.length - 2] + aObj[aObj.length - 4]};
-                                               break;
-                                       case 'paint':
-                                               var points = aObj[1];
-                                               //points are empty on 'paint' 
move
-                                               usPoint = {
-                                                       x: aObj[aObj.length - 
5] + (points.length ? points[points.length - 1][3] : aObj[aObj.length - 3])
-                                                       , y: aObj[aObj.length - 
4] + (points.length ? points[points.length - 1][4] : aObj[aObj.length - 2])};
-                                               break;
-                                       case 'drawarrow':
-                                               usPoint = {x: aObj[aObj.length 
- 5] + aObj[9], y: aObj[aObj.length - 4] + aObj[10]};
-                                               break;
-                               }
-                               if (usPoint) {
-                                       var us = new lz.userStatus(ctx, {
-                                               width:100
-                                               , x: usPoint.x
-                                               , y: usPoint.y - 25 //little 
above
-                                               , queueable: false
-                                               , statusText: user.firstname + 
" " + user.lastname
-                                               });
-                                       if ($debug) Debug.write("us: ", us, "; 
usPoint: ", usPoint);
-                               }
+                       //The onResult-Handler will be called be the 
rtmpconnection
+                       if ($debug) Debug.write(" addModerator : ",value);
+                       ]]>
+               </handler>
+       </netRemoteCallHib>
+       
+       <netRemoteCallHib name="removeModerator" funcname="removeModerator">
+               <attribute name="publicSIDOfNewModerator" value="0" 
type="string" />
+               <netparam name="vars"><method name="getValue">return 
parent.publicSIDOfNewModerator;</method></netparam>
+               <handler name="ondata" args="value">
+                       <![CDATA[
+                       //The onResult-Handler will be called be the 
rtmpconnection
+                       //Debug.write(" onResult setModerator : ",value);
                        ]]>
+               </handler>
+       </netRemoteCallHib>
+       
+       <!--
+       public synchronized Long setBroadCastingFlag(String publicSID, boolean 
value, boolean canVideo, Integer podId) 
+        -->
+       <netRemoteCallHib name="setBroadCastingFlag" 
funcname="setBroadCastingFlag">
+               <attribute name="publicSIDOfNewModerator" value="0" 
type="string" />
+               <attribute name="isAllowedToBroadCastAV" value="false" 
type="boolean" />
+               <attribute name="canVideo" value="false" type="boolean" />
+               <attribute name="avsettings" value="av" type="string" />
+               <attribute name="interviewPodId" value="0" type="number" />
+               <netparam><method name="getValue">return 
parent.publicSIDOfNewModerator;</method></netparam>
+               <netparam><method name="getValue">return 
parent.isAllowedToBroadCastAV;</method></netparam>
+               <netparam><method name="getValue">return 
parent.canVideo;</method></netparam>
+               <netparam><method name="getValue">return 
parent.interviewPodId;</method></netparam>
+               <handler name="ondata" args="value">
+                       <![CDATA[
+                       //The onResult-Handler will be called be the 
rtmpconnection
+                       //Debug.write(" onResult setModerator : ",value);
+                       ]]>
+               </handler>
+       </netRemoteCallHib>
+       
+       <method name="setNewBroadCastingFlag" args="value">
+       <![CDATA[
+               //The onResult-Handler will be called be the rtmpconnection
+               if ($debug) Debug.write(" onResult setNewBroadCastingFlag : ", 
value);
+               
canvas._videocontainer._participants.updateByPublicSID(value.publicSID, value);
+               if (canvas.publicSID == value.publicSID) {
+                       
canvas.commonVideoViewContent.toggleVideo(value.canVideo);
+                       canvas.setAttribute("isBroadCasting", 
value.isBroadcasting);
+                       canvas.setAttribute("canVideo", value.canVideo);
+                       
+                       if ($debug) Debug.write("Its about You ", value);
+                       if (value.isBroadcasting) {
+                               if (canvas.thishib.modus == "interview") {
+                                       
canvas._drawarea.newInterviewStarting(value);
+                               } else {
+                                       
canvas.commonVideoViewContent.createEditRecordStream(false, false, -1);
+                               }
+                       }
+               }
+               canvas.setAttribute("lastBroadCastingUser",value);
+       ]]>
+       </method>
+
+       <netRemoteCallHib name="giveExclusiveAudio" 
funcname="giveExclusiveAudio">
+               <attribute name="publicSID" value="0" type="string" />
+               <netparam><method name="getValue">return 
parent.publicSID;</method></netparam>
+               <method name="setExclusiveAudio" args="tPublicSID">
+                       this.publicSID = tPublicSID;
+                       this.doCall();
                </method>
+       </netRemoteCallHib>
 
-               <method name="sendVarsToWhiteboardById" args="value">
-               <![CDATA[
-                       //The onResult-Handler will be called be the 
rtmpconnection
-                       if ($debug) Debug.write("sendVarsToWhiteboardById : ", 
value);
-                       this.setUserStatus(canvas._drawarea, value[0], 
value[1]);
-                       
canvas._drawarea.parent.parent.parent.sendWatchObjectByWhiteboard(value[1]);
-               ]]>
-               </method> 
+       <method name="receiveExclusiveAudioFlag" args="value">
+       <![CDATA[
+               //The onResult-Handler will be called be the rtmpconnection
+               
canvas._videocontainer.receiveExclusiveAudioFlag(value.publicSID)
+       ]]>
+       </method>
+
+       <netRemoteCallHib name="switchMicMuted" funcname="switchMicMuted">
+               <attribute name="publicSID" value="" type="string" />
+               <attribute name="mute" value="false" type="boolean" />
+               <event name="onMute" />
+               <method name="setMute" args="tPublicSID,tMute">
+                       this.publicSID = tPublicSID;
+                       this.mute = tMute;
+                       var obj = new Array();
+                       obj["mute"] = tMute;
+                       obj["publicSID"] = tPublicSID;
+                       this.onMute.sendEvent(obj);
+                       this.doCall();
+               </method>
+               <netparam><method name="getValue">return 
parent.publicSID;</method></netparam>
+               <netparam><method name="getValue">return 
parent.mute;</method></netparam>
+       </netRemoteCallHib>
+
+       <method name="newRed5ScreenCursor" args="value">
+       <![CDATA[
+               //The onResult-Handler will be called be the rtmpconnection
+               //if ($debug) Debug.write(" onResult newRed5ScreenCursor : 
",value);
+               canvas.commonVideoViewContent.updateCursorScreenSharing(value);
+       ]]>
+       </method>
+       
+       <!--
+               Red5 Screen Sharing
+        -->
+       <method name="newScreenSharing" args="value">
+       <![CDATA[
+               //The onResult-Handler will be called be the rtmpconnection
+               //if ($debug) Debug.write(" onResult newScreenSharing 1 : 
",value);
+               //if ($debug) Debug.write(" onResult newScreenSharing 2 : 
",value.streamid);
+               //if ($debug) Debug.write(" onResult newScreenSharing 3 : 
",canvas.streamid);
+               if ($debug) Debug.write(" onResult newScreenSharing 4 : 
",value.streamPublishName);
+               if ($debug) Debug.write(" onResult newcreenSharing 5 : 
",canvas.publicSID);
                
-               <method name="loadWmlToWhiteboardById" args="value">
+               canvas.commonVideoViewContent.newScreenSharing(value);
+       ]]>
+       </method>
+
+       <netRemoteCallHib name="checkScreenSharing" 
funcname="checkScreenSharing">
+               <handler name="ondata" args="value">
                <![CDATA[
                        //The onResult-Handler will be called be the 
rtmpconnection
-                       if ($debug) Debug.write("loadWmlToWhiteboardById : 
",value);
-                       
canvas._drawarea.parent.parent.parent.loadWmlToWhiteboardById(value);
+                       if ($debug) Debug.write(" onResult checkScreenSharing : 
", value);
+                       if (value != null) {
+                               
canvas.commonVideoViewContent.newScreenSharings(value);
+                       } else {
+                               if ($debug) Debug.warn("Self Screen Sharing");
+                       }
                ]]>
-               </method>
+               </handler>
+       </netRemoteCallHib>
 
-               <!--
-                       Adds this User to the List of current Moderators
-                -->
-               <netRemoteCallHib name="addModerator" funcname="addModerator">
-                       <attribute name="publicSIDOfNewModerator" value="0" 
type="string" />
-                       <netparam name="vars"><method name="getValue">return 
parent.publicSIDOfNewModerator;</method></netparam>
-                       <handler name="ondata" args="value">
-                               <![CDATA[
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               if ($debug) Debug.write(" addModerator : 
",value);
-                               ]]>
-                       </handler>
-               </netRemoteCallHib>
-               
-               <netRemoteCallHib name="removeModerator" 
funcname="removeModerator">
-                       <attribute name="publicSIDOfNewModerator" value="0" 
type="string" />
-                       <netparam name="vars"><method name="getValue">return 
parent.publicSIDOfNewModerator;</method></netparam>
-                       <handler name="ondata" args="value">
-                               <![CDATA[
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               //Debug.write(" onResult setModerator : 
",value);
-                               ]]>
-                       </handler>
-               </netRemoteCallHib>
-               
-               <!--
-               public synchronized Long setBroadCastingFlag(String publicSID, 
boolean value, boolean canVideo, Integer podId) 
-                -->
-               <netRemoteCallHib name="setBroadCastingFlag" 
funcname="setBroadCastingFlag">
-                       <attribute name="publicSIDOfNewModerator" value="0" 
type="string" />
-                       <attribute name="isAllowedToBroadCastAV" value="false" 
type="boolean" />
-                       <attribute name="canVideo" value="false" type="boolean" 
/>
-                       <attribute name="avsettings" value="av" type="string" />
-                       <attribute name="interviewPodId" value="0" 
type="number" />
-                       <netparam><method name="getValue">return 
parent.publicSIDOfNewModerator;</method></netparam>
-                       <netparam><method name="getValue">return 
parent.isAllowedToBroadCastAV;</method></netparam>
-                       <netparam><method name="getValue">return 
parent.canVideo;</method></netparam>
-                       <netparam><method name="getValue">return 
parent.interviewPodId;</method></netparam>
-                       <handler name="ondata" args="value">
-                               <![CDATA[
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               //Debug.write(" onResult setModerator : 
",value);
-                               ]]>
-                       </handler>
-               </netRemoteCallHib>
-               
-               <method name="setNewBroadCastingFlag" args="value">
+       <!--
+       public synchronized Long applyForModeration(String publicSID)
+        -->
+       <netRemoteCallHib name="applyForModeration" 
funcname="applyForModeration"
+                       remotecontext="$once{ canvas.thishib }">
+               <netparam><method name="getValue">return 
canvas.publicSID;</method></netparam>
+               <handler name="ondata" args="value">
                <![CDATA[
                        //The onResult-Handler will be called be the 
rtmpconnection
-                       if ($debug) Debug.write(" onResult 
setNewBroadCastingFlag : ", value);
-                       
canvas._videocontainer._participants.updateByPublicSID(value.publicSID, value);
-                       if (canvas.publicSID == value.publicSID) {
-                               
canvas.commonVideoViewContent.toggleVideo(value.canVideo);
-                               canvas.setAttribute("isBroadCasting", 
value.isBroadcasting);
-                               canvas.setAttribute("canVideo", value.canVideo);
-                               
-                               if ($debug) Debug.write("Its about You ", 
value);
-                               if (value.isBroadcasting) {
-                                       if (canvas.thishib.modus == 
"interview") {
-                                               
canvas._drawarea.newInterviewStarting(value);
-                                       } else {
-                                               
canvas.commonVideoViewContent.createEditRecordStream(false, false, -1);
-                                       }
-                               }
+                       if ($debug) Debug.write("applyForModeration : ",value);
+                       if (value == 1) {
+                               //Do add direct
+                               parent.addModerator.publicSIDOfNewModerator = 
canvas.publicSID;
+                               parent.addModerator.doCall();
+                       } else if (value == 2) {
+                               //Ask the Moderator
+                               var tDate = new Date();
+                               
parent.sendMessageWithClient.sendMessage("applyForModeration",tDate.getTime());
+                       } else if (value == 3) {
+                               new 
lz.labelerrorPopup(canvas,{errorlabelid:696});
                        }
-                       canvas.setAttribute("lastBroadCastingUser",value);
                ]]>
-               </method>
-
-               <netRemoteCallHib name="giveExclusiveAudio" 
funcname="giveExclusiveAudio">
-                       <attribute name="publicSID" value="0" type="string" />
-                       <netparam><method name="getValue">return 
parent.publicSID;</method></netparam>
-                       <method name="setExclusiveAudio" args="tPublicSID">
-                               this.publicSID = tPublicSID;
-                               this.doCall();
-                       </method>
-               </netRemoteCallHib>
+               </handler>
+       </netRemoteCallHib>
 
-               <method name="receiveExclusiveAudioFlag" args="value">
+       <netRemoteCallHib name="setCanDraw" 
funcname="whiteboardservice.setCanDraw"
+                       remotecontext="$once{ canvas.thishib }">
+               <attribute name="publicSID" value="" type="string" />
+               <attribute name="canDraw" value="true" type="boolean" />
+               <netparam><method name="getValue">return 
canvas.sessionId;</method></netparam>
+               <netparam><method name="getValue">return 
parent.publicSID;</method></netparam>
+               <netparam><method name="getValue">return 
parent.canDraw;</method></netparam>
+               <handler name="ondata" args="value">
                <![CDATA[
                        //The onResult-Handler will be called be the 
rtmpconnection
-                       
canvas._videocontainer.receiveExclusiveAudioFlag(value.publicSID)
+                       if ($debug) Debug.write("setCanDraw : ",value);
                ]]>
-               </method>
-
-               <netRemoteCallHib name="switchMicMuted" 
funcname="switchMicMuted">
-                       <attribute name="publicSID" value="" type="string" />
-                       <attribute name="mute" value="false" type="boolean" />
-                       <event name="onMute" />
-                       <method name="setMute" args="tPublicSID,tMute">
-                               this.publicSID = tPublicSID;
-                               this.mute = tMute;
-                               var obj = new Array();
-                               obj["mute"] = tMute;
-                               obj["publicSID"] = tPublicSID;
-                               this.onMute.sendEvent(obj);
-                               this.doCall();
-                       </method>
-                       <netparam><method name="getValue">return 
parent.publicSID;</method></netparam>
-                       <netparam><method name="getValue">return 
parent.mute;</method></netparam>
-               </netRemoteCallHib>
+               </handler>
+       </netRemoteCallHib>
 
-               <method name="newRed5ScreenCursor" args="value">
+       <netRemoteCallHib name="setCanShare" 
funcname="whiteboardservice.setCanShare"
+                       remotecontext="$once{ canvas.thishib }">
+               <attribute name="publicSID" value="" type="string" />
+               <attribute name="canShare" value="true" type="boolean" />
+               <netparam><method name="getValue">return 
canvas.sessionId;</method></netparam>
+               <netparam><method name="getValue">return 
parent.publicSID;</method></netparam>
+               <netparam><method name="getValue">return 
parent.canShare;</method></netparam>
+               <handler name="ondata" args="value">
                <![CDATA[
                        //The onResult-Handler will be called be the 
rtmpconnection
-                       //if ($debug) Debug.write(" onResult 
newRed5ScreenCursor : ",value);
-                       
canvas.commonVideoViewContent.updateCursorScreenSharing(value);
+                       if ($debug) Debug.write("setCanShare : ",value);
                ]]>
-               </method>
-               
-               <!--
-                       Red5 Screen Sharing
-                -->
-               <method name="newScreenSharing" args="value">
+               </handler>
+       </netRemoteCallHib>
+
+       <netRemoteCallHib name="setCanRemote" 
funcname="whiteboardservice.setCanRemote"
+                       remotecontext="$once{ canvas.thishib }">
+               <attribute name="publicSID" value="" type="string" />
+               <attribute name="canRemote" value="true" type="boolean" />
+               <netparam><method name="getValue">return 
canvas.sessionId;</method></netparam>
+               <netparam><method name="getValue">return 
parent.publicSID;</method></netparam>
+               <netparam><method name="getValue">return 
parent.canRemote;</method></netparam>
+               <handler name="ondata" args="value">
                <![CDATA[
                        //The onResult-Handler will be called be the 
rtmpconnection
-                       //if ($debug) Debug.write(" onResult newScreenSharing 1 
: ",value);
-                       //if ($debug) Debug.write(" onResult newScreenSharing 2 
: ",value.streamid);
-                       //if ($debug) Debug.write(" onResult newScreenSharing 3 
: ",canvas.streamid);
-                       if ($debug) Debug.write(" onResult newScreenSharing 4 : 
",value.streamPublishName);
-                       if ($debug) Debug.write(" onResult newcreenSharing 5 : 
",canvas.publicSID);
-                       
-                       canvas.commonVideoViewContent.newScreenSharing(value);
+                       if ($debug) Debug.write("setCanRemote : ",value);
                ]]>
-               </method>
+               </handler>
+       </netRemoteCallHib>
+
+       <method name="setNewModeratorByList" args="value">
+       <![CDATA[
+               if ($debug) Debug.write("setNewModeratorByList ",value);
+               canvas.analyzeModerationList(value);
                
-               <netRemoteCallHib name="checkScreenSharing" 
funcname="checkScreenSharing">
-                       <handler name="ondata" args="value">
+               //The onResult-Handler will be called be the rtmpconnection
+               canvas.currentModeratorList = value;
+               //Update Moderation Flag
+               canvas.updateModerationFlag();
+       ]]>
+       </method>
+
+       <netRemoteCallHib name="sendMessage" funcname="sendMessage">
+               <netparam name="vars"><method name="getValue">return 
canvas.objMessage;</method></netparam>
+               <handler name="ondata" args="value">
                        <![CDATA[
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               if ($debug) Debug.write(" onResult 
checkScreenSharing : ", value);
-                               if (value != null) {
-                                       
canvas.commonVideoViewContent.newScreenSharings(value);
-                               } else {
-                                       if ($debug) Debug.warn("Self Screen 
Sharing");
-                               }
+                       //The onResult-Handler will be called be the 
rtmpconnection
+                       //Debug.write("getValue : ",value);
+                       
                        ]]>
-                       </handler>
-               </netRemoteCallHib>
-               
-               <!--
-               public synchronized Long applyForModeration(String publicSID)
-                -->
-               <netRemoteCallHib name="applyForModeration" 
funcname="applyForModeration"
-                                          remotecontext="$once{ canvas.thishib 
}">
-                       <netparam><method name="getValue">return 
canvas.publicSID;</method></netparam>
-                       <handler name="ondata" args="value">
-                               <![CDATA[
-                                       //The onResult-Handler will be called 
be the rtmpconnection
-                                       if ($debug) 
Debug.write("applyForModeration : ",value);
-                                       if (value == 1) {
-                                               //Do add direct
-                                               
parent.addModerator.publicSIDOfNewModerator = canvas.publicSID;
-                                               parent.addModerator.doCall();
-                                       } else if (value == 2) {
-                                               //Ask the Moderator
-                                               var tDate = new Date();
-                                               
parent.sendMessageWithClient.sendMessage("applyForModeration",tDate.getTime());
-                                       } else if (value == 3) {
-                                               new 
lz.labelerrorPopup(canvas,{errorlabelid:696});
-                                       }
-                               ]]>
-                       </handler>
-               </netRemoteCallHib>
-               
-               <netRemoteCallHib name="setCanDraw" 
funcname="whiteboardservice.setCanDraw"
-                                          remotecontext="$once{ canvas.thishib 
}">
-                       <attribute name="publicSID" value="" type="string" />
-                       <attribute name="canDraw" value="true" type="boolean" />
-                       <netparam><method name="getValue">return 
canvas.sessionId;</method></netparam>
-                       <netparam><method name="getValue">return 
parent.publicSID;</method></netparam>
-                       <netparam><method name="getValue">return 
parent.canDraw;</method></netparam>
-                       <handler name="ondata" args="value">
-                               <![CDATA[
-                                       //The onResult-Handler will be called 
be the rtmpconnection
-                                       if ($debug) Debug.write("setCanDraw : 
",value);
-                               ]]>
-                       </handler>   
-               </netRemoteCallHib>
-               
-               <netRemoteCallHib name="setCanShare" 
funcname="whiteboardservice.setCanShare"
-                                          remotecontext="$once{ canvas.thishib 
}">
-                       <attribute name="publicSID" value="" type="string" />
-                       <attribute name="canShare" value="true" type="boolean" 
/>
-                       <netparam><method name="getValue">return 
canvas.sessionId;</method></netparam>
-                       <netparam><method name="getValue">return 
parent.publicSID;</method></netparam>
-                       <netparam><method name="getValue">return 
parent.canShare;</method></netparam>
-                       <handler name="ondata" args="value">
-                               <![CDATA[
-                                       //The onResult-Handler will be called 
be the rtmpconnection
-                                       if ($debug) Debug.write("setCanShare : 
",value);
-                               ]]>
-                       </handler>   
-               </netRemoteCallHib>
-               
-               <netRemoteCallHib name="setCanRemote" 
funcname="whiteboardservice.setCanRemote"
-                                          remotecontext="$once{ canvas.thishib 
}">
-                       <attribute name="publicSID" value="" type="string" />
-                       <attribute name="canRemote" value="true" type="boolean" 
/>
-                       <netparam><method name="getValue">return 
canvas.sessionId;</method></netparam>
-                       <netparam><method name="getValue">return 
parent.publicSID;</method></netparam>
-                       <netparam><method name="getValue">return 
parent.canRemote;</method></netparam>
-                       <handler name="ondata" args="value">
-                               <![CDATA[
-                                       //The onResult-Handler will be called 
be the rtmpconnection
-                                       if ($debug) Debug.write("setCanRemote : 
",value);
-                               ]]>
-                       </handler>   
-               </netRemoteCallHib>
-               
-               <method name="setNewModeratorByList" args="value">
+               </handler>
+       </netRemoteCallHib>
+
+       <netRemoteCallHib name="sendMessageAll" funcname="sendMessageAll">
+               <netparam name="vars"><method name="getValue">return 
canvas.objMessage;</method></netparam>
+               <handler name="ondata" args="value">
                <![CDATA[
-                       if ($debug) Debug.write("setNewModeratorByList ",value);
-                       canvas.analyzeModerationList(value);
-                       
                        //The onResult-Handler will be called be the 
rtmpconnection
-                       canvas.currentModeratorList = value;
-                       //Update Moderation Flag
-                       canvas.updateModerationFlag();
+                       //Debug.write("getValue : ",value);
                ]]>
-               </method> 
-               
-               <netRemoteCallHib name="sendMessage" funcname="sendMessage">
-                       <netparam name="vars"><method name="getValue">return 
canvas.objMessage;</method></netparam>
-                       <handler name="ondata" args="value">
-                               <![CDATA[
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               //Debug.write("getValue : ",value);
-                               
-                               ]]>
-                       </handler>   
-               </netRemoteCallHib> 
-               
-               <netRemoteCallHib name="sendMessageAll" 
funcname="sendMessageAll">
-                       <netparam name="vars"><method name="getValue">return 
canvas.objMessage;</method></netparam>
-                       <handler name="ondata" args="value">
-                               <![CDATA[
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               //Debug.write("getValue : ",value);
-                               ]]>
-                       </handler>   
-               </netRemoteCallHib> 
-               
-               <method name="sendVarsToMessage" args="value">
+               </handler>
+       </netRemoteCallHib>
+       
+       <method name="sendVarsToMessage" args="value">
+       <![CDATA[
+               //The onResult-Handler will be called be the rtmpconnection
+               //Debug.write("sendVarsToMessage : ", value);
+               if (value[0]=='audioActivity'){
+                       //canvas.currentModApply
+                       //if ($debug) Debug.write("audioActivity Client 
",value[1],value[2]);
+                       
canvas._videocontainer.setSpeakingByPos(value[2],value[1]);
+               } else if (value[0]=='typingActivity'){
+                       if ($debug) Debug.write("!!!typingActivity ::", 
value[1], 
canvas._videocontainer._participants.getUserListItemByPublicSID(value[2]));
+                       
canvas._videocontainer._participants.getUserListItemByPublicSID(value[2]).userTyping(value[1]);
+               } else if (value[0]=='chat'){
+                       // Not Used
+                       //Debug.warn("Not Used");
+                       canvas.addChatHistory(value);
+               } else if (value[0]=='activateWhiteboard'){
+                       // Not Used
+                       //Debug.warn("Not Used");
+                       
canvas._drawarea.parent.parent.parent.activateWhiteboard(value);
+               } else if (value[0]=='newWhiteboard'){
+                       // Not Used
+                       //Debug.warn("Not Used");
+                       
canvas._drawarea.parent.parent.parent.newWhiteboard(value);
+               } else if (value[0] == 'renameWhiteboard'){
+                       // Not Used
+                       //Debug.warn("Not Used");
+                       
canvas._drawarea.parent.parent.parent.renameWhiteboard(value);
+               } else if (value[0]=='removeWindow'){
+                       // Not Used
+                       //Debug.warn("Not Used");
+                       canvas._wbBar.removeObjectSynced(canvas._wbBar['bar' + 
value[1]]);
+               } else if(value[0]=='fileslist'){
+                       
canvas.currentImagesListdraw.parent.onvisible.sendEvent(true);
+               }
+       ]]>
+       </method>
+
+       <netRemoteCallHib name="sendVarsModeratorGeneral" 
funcname="sendVarsModeratorGeneral">
+               <netparam name="vars"><method name="getValue">return 
canvas.VarsModeratorGeneral;</method></netparam>
+               <handler name="ondata" args="value">
                <![CDATA[
                        //The onResult-Handler will be called be the 
rtmpconnection
-                       //Debug.write("sendVarsToMessage : ", value);
-                       if (value[0]=='audioActivity'){
-                               //canvas.currentModApply
-                               //if ($debug) Debug.write("audioActivity Client 
",value[1],value[2]);
-                               
canvas._videocontainer.setSpeakingByPos(value[2],value[1]);
-                       } else if (value[0]=='typingActivity'){
-                               if ($debug) Debug.write("!!!typingActivity ::", 
value[1], 
canvas._videocontainer._participants.getUserListItemByPublicSID(value[2]));
-                               
canvas._videocontainer._participants.getUserListItemByPublicSID(value[2]).userTyping(value[1]);
-                       } else if (value[0]=='chat'){
-                               // Not Used
-                               //Debug.warn("Not Used");
-                               canvas.addChatHistory(value);
-                       } else if (value[0]=='activateWhiteboard'){
-                               // Not Used
-                               //Debug.warn("Not Used");
-                               
canvas._drawarea.parent.parent.parent.activateWhiteboard(value);
-                       } else if (value[0]=='newWhiteboard'){
-                               // Not Used
-                               //Debug.warn("Not Used");
-                               
canvas._drawarea.parent.parent.parent.newWhiteboard(value);
-                       } else if (value[0] == 'renameWhiteboard'){
-                               // Not Used
-                               //Debug.warn("Not Used");
-                               
canvas._drawarea.parent.parent.parent.renameWhiteboard(value);
-                       } else if (value[0]=='removeWindow'){
-                               // Not Used
-                               //Debug.warn("Not Used");
-                               
canvas._drawarea.parent.parent.parent.removeWindow(value);
-                       } else if(value[0]=='fileslist'){
-                               
canvas.currentImagesListdraw.parent.onvisible.sendEvent(true);
-                       }
+                       //Debug.write("sendVarsModeratorGeneral : ",value);
                ]]>
-               </method>
-               
-               <netRemoteCallHib name="sendVarsModeratorGeneral" 
funcname="sendVarsModeratorGeneral">
-                       <netparam name="vars"><method name="getValue">return 
canvas.VarsModeratorGeneral;</method></netparam>
-                       <handler name="ondata" args="value">
-                       <![CDATA[
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               //Debug.write("sendVarsModeratorGeneral : 
",value);
-                               
-                       ]]>
-                       </handler>   
-               </netRemoteCallHib>  
-
-               <netRemoteCallHib name="sendChatMessageWithClient"
-                       funcname="chatservice.sendMessageWithClient" 
remotecontext="$once{ canvas.thishib }">
-                       <attribute name="messageObj" value="null" />
-                       <netparam><method name="getValue">return 
parent.messageObj;</method></netparam>
-
-                       <method name="sendMessage" args="messageObject">
-                               this.messageObj = messageObject;
-                               this.doCall();
-                       </method>
-                       <handler name="ondata" args="value">
-                       <![CDATA[
-                                       //The onResult-Handler will be called 
be the rtmpconnection
-                                       if ($debug) 
Debug.write("chatservice.sendMessageWithClient getValue : ",value);
-                       ]]>
-                       </handler>
-               </netRemoteCallHib>
+               </handler>
+       </netRemoteCallHib>
 
-               <netRemoteCallHib name="sendMessageWithClient" 
funcname="sendMessageWithClient" 
-                               remotecontext="$once{ canvas.thishib }" >  
-                       
-                       <attribute name="messageObj" value="null" />
-                       <method name="sendMessage" 
args="typeName,messageObject">
-                               this.messageObj = new Object();
-                               this.messageObj[0] = typeName;
-                               this.messageObj[1] = messageObject;
-                               this.doCall();
-                       </method>
-                       
-                       <method name="sendAdvMessage" 
args="typeName,messageObject,tStamp">
-                               this.messageObj = new Object();
-                               this.messageObj[0] = typeName;
-                               this.messageObj[1] = messageObject;
-                               this.messageObj[2] = tStamp;
-                               this.doCall();
-                       </method>
-                       
-                       <netparam name="vars"><method name="getValue">return 
parent.messageObj;</method></netparam>
-                       <handler name="ondata" args="value">
-                               //The onResult-Handler will be called be the 
rtmpconnection
-                               //Debug.write("sendMessageWithClient : ",value);
-                       </handler>
-               </netRemoteCallHib>
-                 
-               <method name="sendVarsToMessageWithClient" args="value">
+       <netRemoteCallHib name="sendChatMessageWithClient"
+               funcname="chatservice.sendMessageWithClient" 
remotecontext="$once{ canvas.thishib }">
+               <attribute name="messageObj" value="null" />
+               <netparam><method name="getValue">return 
parent.messageObj;</method></netparam>
+
+               <method name="sendMessage" args="messageObject">
+                       this.messageObj = messageObject;
+                       this.doCall();
+               </method>
+               <handler name="ondata" args="value">
                <![CDATA[
                        //The onResult-Handler will be called be the 
rtmpconnection
-                       if ($debug) Debug.write("sendVarsToMessageWithClient : 
", value, value.message, value.message[0]);
-                       if (value[0] == 'kick' || value.message[0] == 'kick') {
-                               if ($debug) Debug.write("!!!!!! THIS USER GOING 
TO BE KICKED");
-                               this.showKickMessage = true;
-                               this.disconnect();
-                       } else if (value.message[0]=='copiedText'){
-                               //canvas.currentModApply
-                               
-                               if ($debug) Debug.info("copiedText :: 
",value.message[1]);
-                               //System.setClipboard(value.message[1]);
-                               //lz.Browser.setClipboard(value.message[1]);
-                               //LzBrowserKernel.setClipboard 
(value.message[1]);
-                               //import flash.System;
-                               //flash.System.setClipboard(value.message[1]);
-                               
-                               new 
lz.copiedTextPopup(canvas,{error:value.message[1]});
-                       } else if (value.message[0]=='applyforMod'){
-                               //canvas.currentModApply
-                               if (canvas.streamid!=value.client.streamid) {
-                                       new 
lz.responseForModeration(canvas.main_content._content.inner,{
-                                                       userobject:value.client,
-                                                       
clientId:value.client.streamid
-                                               });
-                               }
-                       } else if (value.message[0]=='applyModAnswer'){
-                               canvas.currentModApply.setUserAnswer(value);
-                       } else if (value.message[0]=='privatechat'){
-                               if ($debug) 
Debug.write("privatechat",value.message,value.client);
-                               
canvas._currentChatPanel.privatechat(value.message,value.client);
-                       } else if (value.message[0]=='chat'){
-                               if (canvas._chatcontent) 
canvas._chatcontent.addChatHistory(value.message,value.client);
-                       } else if (value.message[0]=='avsettings'){
-                               
canvas.commonVideoViewContent.setAVSettingsToClient(value.client);
-                       } else if (value.message[0]=='whiteboard'){
-                               if (value.message[1]=='imageloadcomplete'){
-                                       
canvas._drawarea.sendCompleteImageLoadedRClient(value.client);
-                               } else if 
(value.message[1]=='imagesynccomplete'){
-                                       
canvas._drawarea.sendCompleteImageSync(value.client);
-                               } else if (value.message[1]=='imageloaderror'){
-                                       
canvas._drawarea.sendCompleteImageLoadedRClient(value.client);
-                               } else if 
(value.message[1]=='imageloadtimeout'){
-                                       
canvas._drawarea.sendCompleteImageLoadedRClient(value.client);
-                               } else if (value.message[1]=='swfloadcomplete'){
-                                       
canvas._drawarea.sendCompleteSWFLoadedRClient(value.client);
-                               } else if (value.message[1]=='swfsynccomplete'){
-                                       
canvas._drawarea.sendCompleteSWFSync(value.client);
-                               } else if (value.message[1]=='swfloaderror'){
-                                       
canvas._drawarea.sendCompleteSWFLoadedRClient(value.client);
-                               } else if (value.message[1]=='swfloadtimeout'){
-                                       
canvas._drawarea.sendCompleteSWFLoadedRClient(value.client);
-                               } else if (value.message[1]=='inituser'){
-                                       //this message is deprecated and can be 
removed!
-                                       //swagner 12.06.2008
-                                       
//canvas._drawarea.sendCompleteImageSync(value.client);
-                                       if ($debug) Debug.write("inituser 
loadwmlObjectToStage: ",value.message[2]);
-                                       if (!canvas.ismoderator) 
canvas._drawarea.loadwmlObjectToStage(value.message[2],"","","",true,true);
-                               } else if (value.message[1]=='initgetVars'){
-                                       
//canvas._drawarea.sendCompleteImageSync(value.client);
-                                       //Debug.write("initgetVars 
sendVarsToMessageWithClient: ",value.message[2]);
-                                       
canvas._drawarea.sendWatchObject(value.message[1],value.message[2],false);
-                               } else if (value.message[1]=='syncinitLoader'){
-                                       
//canvas._drawarea.sendCompleteImageSync(value.client);
-                                       //Debug.write("syncinitLoader 
sendVarsToMessageWithClient: ",value.message[2]);
-                                       if 
(value.client.streamid!=canvas.streamid) canvas._drawarea.remoteSyncLoader();
-                               } else if (value.message[1][0]=='isSnapToGrid'){
-                                       
canvas._drawarea.setAttribute('isSnapToGrid', value.message[1][1]);
-                                       //Debug.write("syncinitLoader 
sendVarsToMessageWithClient: ",value.message[2]);
-                                       //if 
(value.client.streamid!=canvas.streamid) canvas._drawarea.remoteSyncLoader();
-                               }
-                       } else if (value.message[0]=='updateMuteStatus'){
-                               canvas.setMuteStatus(value.message[1]);
-                       } else if (value.message[0]=='updateDrawStatus'){
-                               canvas.setDrawAllowStatus(value.message[1]);
-                               //Notify all Listeners for change of the item
-                               
canvas.setAttribute("drawAllowStatus",value.message[1]);
-                       } else if (value.message[0]=='updateGiveAudioStatus') {
-                               
canvas.setExclusiveAudioAllowStatus(value.message[1]);
-                               
canvas.setAttribute("exclusiveAudioAllowStatus",value.message[1]);
-                       } else if (value.message[0]=='applyForModeration'){
-                               if ($debug) Debug.write("Somebody wants the 
Moderation ",value.client);
-                               
canvas.currentActivityList.addModerationRequest(value.client,value.message[1]);
-                       } else if (value.message[0]=='applyForScreen'){
-                               if ($debug) Debug.write("Somebody wants to 
share/record Screen ",value.client);
-                               
canvas.currentActivityList.addScreenRequest(value.client,value.message[1]);
-                       } else if (value.message[0]=='applyForRemote'){
-                               if ($debug) Debug.write("Somebody wants to 
remote control screen ",value.client);
-                               
canvas.currentActivityList.addRemoteRequest(value.client,value.message[1]);
-                       } else if (value.message[0]=='applyForWhiteboard'){
-                               if ($debug) Debug.write("Somebody wants to draw 
on Whiteboard ",value.client);
-                               
canvas.currentActivityList.addWhiteboardRequest(value.client,value.message[1]);
-                       } else if (value.message[0]=='applyForA'){
-                               if ($debug) Debug.write("Somebody wants to 
share A ",value.client);
-                               
canvas.currentActivityList.addAudioRequest(value.client,value.message[1]);
-                       } else if (value.message[0]=='applyForAV'){
-                               if ($debug) Debug.write("Somebody wants to 
share AV ",value.client);
-                               
canvas.currentActivityList.addAudioAndVideoRequest(value.client,value.message[1]);
-                       } else if (value.message[0]=='hideActivityObj'){
-                               if ($debug) Debug.write("Somebody wants to 
hideActivityObj ",value.client);
-                               
canvas.currentActivityList.hideActivityObj(value);
-                       } else if (value.message[0]=='applyForMuteOn'){
-                               
canvas.currentActivityList.applyForMuteOn(value.client,value.message[1]);
-                       } else if (value.message[0]=='applyForMuteOff'){
-                               
canvas.currentActivityList.applyForMuteOff(value.client,value.message[1]);
-                       } else if 
(value.message[0]=='applyForGiveExclusiveAudioOn'){
-                               
canvas.currentActivityList.applyForGiveExclusiveAudioOn(value.client,value.message[1]);
-                       } else if (value.message[0] == 'personal') {
-                               var pSID = value.client.publicSID;
-                               var vo = 
canvas._videocontainer._participants.getUserListItemByPublicSID(pSID);
-                               if (vo != null) {
-                                       vo.setAttribute('lastname', 
value.message[2]);
-                                       vo.refObj.lastname = value.message[2];
-                               }
-                               
canvas.commonVideoViewContent.updateFirstLastName(pSID, value.message[1], 
value.message[2]);
-                       } else {
-                               if ($debug) 
Debug.warn("sendVarsToMessageWithClient unkown message ",value);
-                       }
-               ]]>
-               </method>        
-       
-               <method name="newMessageByRoomAndDomain" args="value">
-               <![CDATA[
-                       if (value[0]=='closeprivatechat'){
-                               if ($debug) 
Debug.write("closeprivatechat",value);
-                               
canvas._currentChatPanel.closeprivatechat(value);
-                       } else if (value[0]=='newprivatechat'){
-                               if ($debug) Debug.write("newprivatechat",value);
-                               canvas._currentChatPanel.newprivatechat(value);
-                       } else if (value.message=='desktop'){
-                               canvas._drawarea.incomingScreenSharing(value);
-                       } else if (value.message=='library'){
-                               if (value.action == 'import') {
-                                       
canvas.currentUploadWindow.remoteComplete(value);
-                                       return;
-                               }
-                       } else if (value.message=='startStreaming'){
-                               canvas._drawarea.startStreaming(value);
-                       } else if (value.message=='stopStreaming'){
-                               canvas._drawarea.stopStreaming(value);
-                       } else if (value.message=='roomClosed'){
-                               canvas.roomClosed();
-                       } else {
-                               if ($debug) Debug.warn("Unknown Event 
-newMessageByRoomAndDomain- ",value);
-                       }
+                       if ($debug) 
Debug.write("chatservice.sendMessageWithClient getValue : ",value);
                ]]>
+               </handler>
+       </netRemoteCallHib>
+
+       <netRemoteCallHib name="sendMessageWithClient" 
funcname="sendMessageWithClient" 
+                       remotecontext="$once{ canvas.thishib }" >  
+               
+               <attribute name="messageObj" value="null" />
+               <method name="sendMessage" args="typeName,messageObject">
+                       this.messageObj = new Object();
+                       this.messageObj[0] = typeName;
+                       this.messageObj[1] = messageObject;
+                       this.doCall();
                </method>
                
+               <method name="sendAdvMessage" 
args="typeName,messageObject,tStamp">
+                       this.messageObj = new Object();
+                       this.messageObj[0] = typeName;
+                       this.messageObj[1] = messageObject;
+                       this.messageObj[2] = tStamp;
+                       this.doCall();
+               </method>
+               
+               <netparam name="vars"><method name="getValue">return 
parent.messageObj;</method></netparam>
+               <handler name="ondata" args="value">
+                       //The onResult-Handler will be called be the 
rtmpconnection
+                       //Debug.write("sendMessageWithClient : ",value);
+               </handler>
+       </netRemoteCallHib>
+
+       <method name="sendVarsToMessageWithClient" args="value">
+       <![CDATA[
+               //The onResult-Handler will be called be the rtmpconnection
+               if ($debug) Debug.write("sendVarsToMessageWithClient : ", 
value, value.message, value.message[0]);
+               if (value[0] == 'kick' || value.message[0] == 'kick') {
+                       if ($debug) Debug.write("!!!!!! THIS USER GOING TO BE 
KICKED");
+                       this.showKickMessage = true;
+                       this.disconnect();
+               } else if (value.message[0]=='copiedText'){
+                       //canvas.currentModApply
+                       
+                       if ($debug) Debug.info("copiedText :: 
",value.message[1]);
+                       //System.setClipboard(value.message[1]);
+                       //lz.Browser.setClipboard(value.message[1]);
+                       //LzBrowserKernel.setClipboard (value.message[1]);
+                       //import flash.System;
+                       //flash.System.setClipboard(value.message[1]);
+                       
+                       new lz.copiedTextPopup(canvas,{error:value.message[1]});
+               } else if (value.message[0]=='applyforMod'){
+                       //canvas.currentModApply
+                       if (canvas.streamid!=value.client.streamid) {
+                               new 
lz.responseForModeration(canvas.main_content._content.inner,{
+                                               userobject:value.client,
+                                               clientId:value.client.streamid
+                                       });
+                       }
+               } else if (value.message[0]=='applyModAnswer'){
+                       canvas.currentModApply.setUserAnswer(value);
+               } else if (value.message[0]=='privatechat'){
+                       if ($debug) 
Debug.write("privatechat",value.message,value.client);
+                       
canvas._currentChatPanel.privatechat(value.message,value.client);
+               } else if (value.message[0]=='chat'){
+                       if (canvas._chatcontent) 
canvas._chatcontent.addChatHistory(value.message,value.client);
+               } else if (value.message[0]=='avsettings'){
+                       
canvas.commonVideoViewContent.setAVSettingsToClient(value.client);
+               } else if (value.message[0]=='whiteboard'){
+                       if (value.message[1]=='imageloadcomplete'){
+                               
canvas._drawarea.sendCompleteImageLoadedRClient(value.client);
+                       } else if (value.message[1]=='imagesynccomplete'){
+                               
canvas._drawarea.sendCompleteImageSync(value.client);
+                       } else if (value.message[1]=='imageloaderror'){
+                               
canvas._drawarea.sendCompleteImageLoadedRClient(value.client);
+                       } else if (value.message[1]=='imageloadtimeout'){
+                               
canvas._drawarea.sendCompleteImageLoadedRClient(value.client);
+                       } else if (value.message[1]=='swfloadcomplete'){
+                               
canvas._drawarea.sendCompleteSWFLoadedRClient(value.client);
+                       } else if (value.message[1]=='swfsynccomplete'){
+                               
canvas._drawarea.sendCompleteSWFSync(value.client);
+                       } else if (value.message[1]=='swfloaderror'){
+                               
canvas._drawarea.sendCompleteSWFLoadedRClient(value.client);
+                       } else if (value.message[1]=='swfloadtimeout'){
+                               
canvas._drawarea.sendCompleteSWFLoadedRClient(value.client);
+                       } else if (value.message[1]=='inituser'){
+                               //this message is deprecated and can be removed!
+                               //swagner 12.06.2008
+                               
//canvas._drawarea.sendCompleteImageSync(value.client);
+                               if ($debug) Debug.write("inituser 
loadwmlObjectToStage: ",value.message[2]);
+                               if (!canvas.ismoderator) 
canvas._drawarea.loadwmlObjectToStage(value.message[2],"","","",true,true);
+                       } else if (value.message[1]=='initgetVars'){
+                               
//canvas._drawarea.sendCompleteImageSync(value.client);
+                               //Debug.write("initgetVars 
sendVarsToMessageWithClient: ",value.message[2]);
+                               
canvas._drawarea.sendWatchObject(value.message[1],value.message[2],false);
+                       } else if (value.message[1]=='syncinitLoader'){
+                               
//canvas._drawarea.sendCompleteImageSync(value.client);
+                               //Debug.write("syncinitLoader 
sendVarsToMessageWithClient: ",value.message[2]);
+                               if (value.client.streamid!=canvas.streamid) 
canvas._drawarea.remoteSyncLoader();
+                       } else if (value.message[1][0]=='isSnapToGrid'){
+                               canvas._drawarea.setAttribute('isSnapToGrid', 
value.message[1][1]);
+                               //Debug.write("syncinitLoader 
sendVarsToMessageWithClient: ",value.message[2]);
+                               //if (value.client.streamid!=canvas.streamid) 
canvas._drawarea.remoteSyncLoader();
+                       }
+               } else if (value.message[0]=='updateMuteStatus'){
+                       canvas.setMuteStatus(value.message[1]);
+               } else if (value.message[0]=='updateDrawStatus'){
+                       canvas.setDrawAllowStatus(value.message[1]);
+                       //Notify all Listeners for change of the item
+                       canvas.setAttribute("drawAllowStatus",value.message[1]);
+               } else if (value.message[0]=='updateGiveAudioStatus') {
+                       canvas.setExclusiveAudioAllowStatus(value.message[1]);
+                       
canvas.setAttribute("exclusiveAudioAllowStatus",value.message[1]);
+               } else if (value.message[0]=='applyForModeration'){
+                       if ($debug) Debug.write("Somebody wants the Moderation 
",value.client);
+                       
canvas.currentActivityList.addModerationRequest(value.client,value.message[1]);
+               } else if (value.message[0]=='applyForScreen'){
+                       if ($debug) Debug.write("Somebody wants to share/record 
Screen ",value.client);
+                       
canvas.currentActivityList.addScreenRequest(value.client,value.message[1]);
+               } else if (value.message[0]=='applyForRemote'){
+                       if ($debug) Debug.write("Somebody wants to remote 
control screen ",value.client);
+                       
canvas.currentActivityList.addRemoteRequest(value.client,value.message[1]);
+               } else if (value.message[0]=='applyForWhiteboard'){
+                       if ($debug) Debug.write("Somebody wants to draw on 
Whiteboard ",value.client);
+                       
canvas.currentActivityList.addWhiteboardRequest(value.client,value.message[1]);
+               } else if (value.message[0]=='applyForA'){
+                       if ($debug) Debug.write("Somebody wants to share A 
",value.client);
+                       
canvas.currentActivityList.addAudioRequest(value.client,value.message[1]);
+               } else if (value.message[0]=='applyForAV'){
+                       if ($debug) Debug.write("Somebody wants to share AV 
",value.client);
+                       
canvas.currentActivityList.addAudioAndVideoRequest(value.client,value.message[1]);
+               } else if (value.message[0]=='hideActivityObj'){
+                       if ($debug) Debug.write("Somebody wants to 
hideActivityObj ",value.client);
+                       canvas.currentActivityList.hideActivityObj(value);
+               } else if (value.message[0]=='applyForMuteOn'){
+                       
canvas.currentActivityList.applyForMuteOn(value.client,value.message[1]);
+               } else if (value.message[0]=='applyForMuteOff'){
+                       
canvas.currentActivityList.applyForMuteOff(value.client,value.message[1]);
+               } else if (value.message[0]=='applyForGiveExclusiveAudioOn'){
+                       
canvas.currentActivityList.applyForGiveExclusiveAudioOn(value.client,value.message[1]);
+               } else if (value.message[0] == 'personal') {
+                       var pSID = value.client.publicSID;
+                       var vo = 
canvas._videocontainer._participants.getUserListItemByPublicSID(pSID);
+                       if (vo != null) {
+                               vo.setAttribute('lastname', value.message[2]);
+                               vo.refObj.lastname = value.message[2];
+                       }
+                       canvas.commonVideoViewContent.updateFirstLastName(pSID, 
value.message[1], value.message[2]);
+               } else {
+                       if ($debug) Debug.warn("sendVarsToMessageWithClient 
unkown message ",value);
+               }
+       ]]>
+       </method>        
+
+       <method name="newMessageByRoomAndDomain" args="value">
+       <![CDATA[
+               if (value[0]=='closeprivatechat'){
+                       if ($debug) Debug.write("closeprivatechat",value);
+                       canvas._currentChatPanel.closeprivatechat(value);
+               } else if (value[0]=='newprivatechat'){
+                       if ($debug) Debug.write("newprivatechat",value);
+                       canvas._currentChatPanel.newprivatechat(value);
+               } else if (value.message=='desktop'){
+                       canvas._drawarea.incomingScreenSharing(value);
+               } else if (value.message=='library'){
+                       if (value.action == 'import') {
+                               
canvas.currentUploadWindow.remoteComplete(value);
+                               return;
+                       }
+               } else if (value.message=='startStreaming'){
+                       canvas._drawarea.startStreaming(value);
+               } else if (value.message=='stopStreaming'){
+                       canvas._drawarea.stopStreaming(value);
+               } else if (value.message=='roomClosed'){
+                       canvas.roomClosed();
+               } else {
+                       if ($debug) Debug.warn("Unknown Event 
-newMessageByRoomAndDomain- ",value);
+               }
+       ]]>
+       </method>
+
        <method name="newPoll" args="value">
        <![CDATA[
                //The onResult-Handler will be called by the rtmpconnection
@@ -1404,13 +1403,13 @@
                }
        ]]>
        </method>
-       
+
        <method name="startedRecording" args="value">
                if ($debug) Debug.write("startedRecording: ",value);
                canvas._mymod.recordingUser = value;
                canvas._mymod.setMessage();
        </method>
-       
+
        <netRemoteCallHib name="checkLzRecording" 
funcname="recordingservice.checkLzRecording" >
                <handler name="ondata" args="value">
                        if ($debug) Debug.write("checkLzRecording: ", value);

Modified: 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/popups/confirmationSingle.lzx
URL: 
http://svn.apache.org/viewvc/openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/popups/confirmationSingle.lzx?rev=1774279&r1=1774278&r2=1774279&view=diff
==============================================================================
--- 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/popups/confirmationSingle.lzx
 (original)
+++ 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/popups/confirmationSingle.lzx
 Wed Dec 14 15:55:11 2016
@@ -9,7 +9,7 @@
   with the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICENSE-2.0
-         
+  
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -21,128 +21,109 @@
 <library>
 
 <class name="confirmationSingle" extends="labelExplorerBox" labelid="832"
-    docking="true" resizeable="false" closable="true" height="140" width="300">
-    
-    <attribute name="refObj" value="null" />
-    
-    <attribute name="refReturnMethod" value="null" />
-    
-    <attribute name="showCheckBox" value="true" type="boolean" />
-    
-    <attribute name="labeliderror" value="0" type="number" />
-    
-    <attribute name="doCalcPosition" value="true" type="number" />
-    
+               docking="true" resizeable="false" closable="true" height="140" 
width="300">
+
+       <attribute name="refObj" value="null" />
+       <attribute name="refReturnMethod" value="null" />
+       <attribute name="showCheckBox" value="true" type="boolean" />
+       <attribute name="labeliderror" value="0" type="number" />
+       <attribute name="doCalcPosition" value="true" type="number" />
        <attribute name="iconResource" value="warning_popup_icon_rsc" 
type="string" />
 
        <omImage x="4" src="$once{ canvas.getThemeImage(parent.iconResource) }" 
y="24" />
 
-    <labelText labelid="$once{ parent.labeliderror }" y="24" 
-                  width="$once{ parent.width - 40 }"
-       multiline="true" resize="false" x="30" />
-        
-    <handler name="oninit">
-        <![CDATA[
-        
-               if (!this.doCalcPosition) {
-                       return;
-               }
-        
-            //Set Position of Confirmation Box as Close as possible to the 
Mouse
-            var x = parent.getMouse("x");
-            var y = parent.getMouse("y");
-            var newx = x - (this.width/2);
-            var newy = y - (this.height/2);
-            
-            if ($debug) Debug.write("1",x,y,newx,newy);
-            
-            if (newx < 0) {
-                newx = 20;
-            }
-            if (newy < 0) {
-                newy = 20;
-            }
-            
-            //if ($debug) Debug.write("1.1",(this.width + newx + 
20),parent.width,this.width);
-            
-            var relativeWidth = parent.width;
-            if (relativeWidth > canvas.width) {
-               relativeWidth = canvas.width;
-            }
-            
-            if (this.width + newx + 20 > relativeWidth) {
-               newx = relativeWidth-this.width-20;
-            }
-            
-            if (this.height + newy + 20 > parent.height) {
-               newy = parent.height-this.height-20;
-            }
-            
-            if ($debug) Debug.write("2",newx,newy);
-            
-            this.setAttribute("x",newx);
-            this.setAttribute("y",newy);
-            
-        ]]>
-    </handler>
-    
-    <labelCheckbox name="holddatainSO" visibility="$once{ 
(parent.showCheckBox) ? 'visible' : 'hidden' }" 
-                   labelid="64" x="10" y="$once{ parent.height - 46 }" />
-    
-    <simpleLabelButton labelid="61" width="100" x="$once{ parent.width - 105 
}" y="$once{ parent.height - 26 }">
-       <handler name="onclick">
-               var t = parent.holddatainSO.getValue();
-               this.parent.close();
-               if (parent.refReturnMethod == null) {
-                       if ($debug) Debug.write("refObj ",this.parent.refObj);
-                   this.parent.refObj.sendNoConfirmation(null);
-               } else {
-                       this.parent.refObj[parent.refReturnMethod](false,t);
-               }
-       </handler>
-    </simpleLabelButton>    
-    <simpleLabelButton labelid="60" width="100" x="$once{ parent.width - 210 
}" y="$once{ parent.height - 26 }">
-       <handler name="onclick">
-               var t = parent.holddatainSO.getValue();
-               //if ($debug) Debug.write("t ", t);
-               //if ($debug) Debug.write("parent ", this.parent);
-               //if ($debug) Debug.write("refObj ", this.parent.refObj);
-               this.parent.close();
-               if (parent.refReturnMethod == null) {
-                   this.parent.refObj.sendConfirmation(true,t);
-               } else {
-                this.parent.refObj[parent.refReturnMethod](true,t);
-            }
-       </handler>
-    </simpleLabelButton>    
+       <labelText name="_errorlbl" labelid="$once{ parent.labeliderror }" 
y="24" 
+               width="$once{ parent.width - 40 }" multiline="true" 
resize="false" x="30" />
+
+       <handler name="oninit">
+       <![CDATA[
+               if (!this.doCalcPosition) {
+                       return;
+               }
+               //Set Position of Confirmation Box as Close as possible to the 
Mouse
+               var x = parent.getMouse("x");
+               var y = parent.getMouse("y");
+               var newx = x - (this.width/2);
+               var newy = y - (this.height/2);
+
+               if ($debug) Debug.write("1",x,y,newx,newy);
+               if (newx < 0) {
+                       newx = 20;
+               }
+               if (newy < 0) {
+                       newy = 20;
+               }
+               //if ($debug) Debug.write("1.1",(this.width + newx + 
20),parent.width,this.width);
+               var relativeWidth = parent.width;
+               if (relativeWidth > canvas.width) {
+                       relativeWidth = canvas.width;
+               }
+               if (this.width + newx + 20 > relativeWidth) {
+                       newx = relativeWidth-this.width-20;
+               }
+               if (this.height + newy + 20 > parent.height) {
+                       newy = parent.height-this.height-20;
+               }
+               if ($debug) Debug.write("2",newx,newy);
+
+               this.setAttribute("x",newx);
+               this.setAttribute("y",newy);
+       ]]>
+       </handler>
+
+       <labelCheckbox name="holddatainSO" visibility="$once{ 
(parent.showCheckBox) ? 'visible' : 'hidden' }" 
+                       labelid="64" x="10" y="$once{ parent.height - 46 }" />
+
+       <simpleLabelButton labelid="61" width="100" x="$once{ parent.width - 
105 }" y="$once{ parent.height - 26 }">
+               <handler name="onclick">
+                       var t = parent.holddatainSO.getValue();
+                       this.parent.close();
+                       if (!!parent.refReturnMethod) {
+                               
this.parent.refObj[parent.refReturnMethod](false, t);
+                       } else {
+                               this.parent.refObj.sendNoConfirmation(null);
+                       }
+               </handler>
+       </simpleLabelButton>
+       <simpleLabelButton labelid="60" width="100" x="$once{ parent.width - 
210 }" y="$once{ parent.height - 26 }">
+               <handler name="onclick">
+                       var t = parent.holddatainSO.getValue();
+                       //if ($debug) Debug.write("t ", t);
+                       //if ($debug) Debug.write("parent ", this.parent);
+                       //if ($debug) Debug.write("refObj ", 
this.parent.refObj);
+                       this.parent.close();
+                       if (parent.refReturnMethod == null) {
+                               this.parent.refObj.sendConfirmation(true,t);
+                       } else {
+                               
this.parent.refObj[parent.refReturnMethod](true,t);
+                       }
+               </handler>
+       </simpleLabelButton>
 </class>
 
 <class name="rememberMessage" extends="labelExplorerBox" labelid="832"
-          x="$once{ canvas.width/2 - this.width/2 }" y="100"
-          docking="true" resizeable="false" closable="true" height="140" 
width="300">
-    
-    <attribute name="refObj" value="null" />
-    
-    <attribute name="showCheckBox" value="true" type="boolean" />
-    
-    <attribute name="labeliderror" value="0" type="number" />
-    
-    <view x="4" resource="warning_icon_rsc" y="24" />
-
-    <labelText labelid="$once{ parent.labeliderror }" y="24" 
-               width="$once{ parent.width - 40 }"
-        multiline="true" resize="false" x="30" />
-        
-    <labelCheckbox name="holddatainSO" visibility="$once{ 
(parent.showCheckBox) ? 'visible' : 'hidden' }" 
-                   labelid="64" x="10" y="$once{ parent.height - 46 }" />
-    
-    <simpleLabelButton labelid="642" width="100" x="$once{ parent.width - 105 
}" y="$once{ parent.height - 26 }">
-        <handler name="onclick">
-               var t = parent.holddatainSO.getValue();
-            this.parent.close();
-            this.parent.refObj.sendConfirmation(t, null);
-        </handler>
-    </simpleLabelButton>    
+               x="$once{ canvas.width/2 - this.width/2 }" y="100"
+               docking="true" resizeable="false" closable="true" height="140" 
width="300">
+
+       <attribute name="refObj" value="null" />
+       <attribute name="showCheckBox" value="true" type="boolean" />
+       <attribute name="labeliderror" value="0" type="number" />
+
+       <view x="4" resource="warning_icon_rsc" y="24" />
+
+       <labelText labelid="$once{ parent.labeliderror }" y="24" 
+                       width="$once{ parent.width - 40 }" multiline="true" 
resize="false" x="30" />
+
+       <labelCheckbox name="holddatainSO" visibility="$once{ 
(parent.showCheckBox) ? 'visible' : 'hidden' }" 
+                       labelid="64" x="10" y="$once{ parent.height - 46 }" />
+
+       <simpleLabelButton labelid="642" width="100" x="$once{ parent.width - 
105 }" y="$once{ parent.height - 26 }">
+               <handler name="onclick">
+                       var t = parent.holddatainSO.getValue();
+                       this.parent.close();
+                       this.parent.refObj.sendConfirmation(t, null);
+               </handler>
+       </simpleLabelButton>
 </class>
        
 </library>

Modified: 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/base/baseDrawObject.lzx
URL: 
http://svn.apache.org/viewvc/openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/base/baseDrawObject.lzx?rev=1774279&r1=1774278&r2=1774279&view=diff
==============================================================================
--- 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/base/baseDrawObject.lzx
 (original)
+++ 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/base/baseDrawObject.lzx
 Wed Dec 14 15:55:11 2016
@@ -441,11 +441,17 @@
        </method>
 
        <method name="doDeleteFromDocumentsBar" args="itemRefName">
-               this.getDocumentToolBar().removeDocument(itemRefName);
+               var docToolbar = this.getDocumentToolBar();
+               if (!!docToolbar) {
+                       docToolbar.removeDocument(itemRefName);
+               }
        </method>
 
        <method name="clearDocumentsBar">
-               this.getDocumentToolBar().clearDocumentsBar();
+               var docToolbar = this.getDocumentToolBar();
+               if (!!docToolbar) {
+                       docToolbar.clearDocumentsBar();
+               }
        </method>
 
        <method name="sendCurrentSWFObject" args="objRef">

Modified: 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx
URL: 
http://svn.apache.org/viewvc/openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx?rev=1774279&r1=1774278&r2=1774279&view=diff
==============================================================================
--- 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx
 (original)
+++ 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteBoard.lzx
 Wed Dec 14 15:55:11 2016
@@ -302,7 +302,7 @@
                        </handler>
 
                        <method name="getDocumentToolBar">
-                               return _propPanel._content._documentsPanel;
+                               return !_propPanel || !_propPanel._content ? 
null : _propPanel._content._documentsPanel;
                        </method>
 
                        <method name="getPaintToolBar">

Modified: 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteboardPanel.lzx
URL: 
http://svn.apache.org/viewvc/openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteboardPanel.lzx?rev=1774279&r1=1774278&r2=1774279&view=diff
==============================================================================
--- 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteboardPanel.lzx
 (original)
+++ 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/fixedFileExplorerWhiteboardPanel.lzx
 Wed Dec 14 15:55:11 2016
@@ -168,17 +168,6 @@
                </handler>
        </netRemoteCallHib>
 
-       <method name="removeWindow" args="obj">
-               if ($debug) Debug.write("removeWindow :: ",obj);
-               for (var eg in canvas._wbBar.subviews) {
-                       if (canvas._wbBar.subviews[eg].objRef.whiteboardId == 
obj[1]) {
-                               
canvas._wbBar.removeObjectSynced(canvas._wbBar.subviews[eg]);
-                               canvas.whiteboardCount--;
-                               return;
-                       }
-               }
-       </method>
-
        <method name="renameWhiteboard" args="obj">
                if ($debug) Debug.write("renameWhiteboard :: ", obj);
                for (var eg in canvas._wbBar.subviews) {

Modified: 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/whiteboardBarMenu.lzx
URL: 
http://svn.apache.org/viewvc/openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/whiteboardBarMenu.lzx?rev=1774279&r1=1774278&r2=1774279&view=diff
==============================================================================
--- 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/whiteboardBarMenu.lzx
 (original)
+++ 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/modules/conference/whiteboard/whiteboardBarMenu.lzx
 Wed Dec 14 15:55:11 2016
@@ -37,7 +37,7 @@
                _btn.objRef.destroy();
                _btn.destroy();
                if (this.subviews.length != 0 && removeCurrent) {
-                       
sendActiveWindowSynced(this.subviews[this.subviews.length-1]);
+                       
sendActiveWindowSynced(this.subviews[this.subviews.length - 1]);
                        canvas._drawarea = 
currentBtn.objRef._drawareaMask._drawarea;
                }
        ]]>

Modified: 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/video/editRecordStreamSWF10.lzx
URL: 
http://svn.apache.org/viewvc/openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/video/editRecordStreamSWF10.lzx?rev=1774279&r1=1774278&r2=1774279&view=diff
==============================================================================
--- 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/video/editRecordStreamSWF10.lzx
 (original)
+++ 
openmeetings/application/branches/3.1.x/openmeetings-flash/src/main/swf/video/editRecordStreamSWF10.lzx
 Wed Dec 14 15:55:11 2016
@@ -654,32 +654,32 @@
                        <attribute name="cam_width" value="320" type="number" />
                        <attribute name="cam_height" value="240" type="number" 
/>
                        <handler name="ondata">
-                               <![CDATA[
-                                       // if ($debug) Debug.write("ondata ", 
this);
-                                       var type = 
this.datapath.xpathQuery('@type');
-                                       this.cam_width = 
Number(this.datapath.xpathQuery('@width'));
-                                       this.cam_height = 
Number(this.datapath.xpathQuery('@height'));
-                                       
this.setAttribute("text",""+this.cam_width+"x"+this.cam_height+" ["+type+"]");
-                                       var isDefault = 
this.datapath.xpathQuery('@isDefault') == "true";
-                                       
-                                       var t:SharedObject = 
SharedObject.getLocal('userdata');
-                                       var g = t.data;
-                                       var width = g["width"];
-                                       var height = g["height"];
-                                       if (width!=null && width > 0 && 
height!=null && height>0) {
-                                               if (width == this.cam_width && 
height == this.cam_height) {
-                                                       
parent.selectItemAt(parent.counter);
-                                                       
parent.onselect.sendEvent(this);
-                                               }
-                                       } else {
-                                               if (isDefault) {
-                                                       if ($debug) 
Debug.write("Found default one ",type);
-                                                       
parent.selectItemAt(parent.counter);
-                                                       
parent.onselect.sendEvent(this);
-                                               }
+                       <![CDATA[
+                               // if ($debug) Debug.write("ondata ", this);
+                               var type = this.datapath.xpathQuery('@type');
+                               this.cam_width = 
Number(this.datapath.xpathQuery('@width'));
+                               this.cam_height = 
Number(this.datapath.xpathQuery('@height'));
+                               
this.setAttribute("text",""+this.cam_width+"x"+this.cam_height+" ["+type+"]");
+                               var isDefault = 
this.datapath.xpathQuery('@isDefault') == "true";
+                               
+                               var t:SharedObject = 
SharedObject.getLocal('userdata');
+                               var g = t.data;
+                               var width = g["width"];
+                               var height = g["height"];
+                               if (width!=null && width > 0 && height!=null && 
height>0) {
+                                       if (width == this.cam_width && height 
== this.cam_height) {
+                                               
parent.selectItemAt(parent.counter);
+                                               parent.onselect.sendEvent(this);
                                        }
-                                       parent.counter += 1;
-                               ]]>
+                               } else {
+                                       if (isDefault) {
+                                               if ($debug) Debug.write("Found 
default one ",type);
+                                               
parent.selectItemAt(parent.counter);
+                                               parent.onselect.sendEvent(this);
+                                       }
+                               }
+                               parent.counter += 1;
+                       ]]>
                        </handler>
                </textlistitem>
        </resetCombobox>


Reply via email to