if ($debug) Debug.write("urlname: ",urlname); var now = new Date(); //This invokes a Method which is in the remoteWhiteboard.lzx this.startNewObjectSyncProcess.isStarting = true; this.startNewObjectSyncProcess.uniqueObjectSyncName = fileName + now.getTime(); this.startNewObjectSyncProcess.doCall(); this.addNewImage(urlname,posx,posy,baseurl,fileName, moduleName,parentPath,room,domain, this.startNewObjectSyncProcess.uniqueObjectSyncName,false); if ($debug) Debug.write("urlname posx: ",urlname,posx); this.addImageToLayer(this,'image'+this.getCounter(),urlname, posx,posy,0,0, true, baseurl,fileName,moduleName,parentPath,room,domain,uniqueObjectSyncName,isLocalSync); if (this.screenImageRefNumber==1){ if (this.screenImageRef1) this.screenImageRef1.destroy(); this.screenImageRef2.setAttribute('visible',true); } else if (this.screenImageRefNumber==2){ this.screenImageRef1.setAttribute('visible',true); if (this.screenImageRef2) this.screenImageRef2.destroy(); } this.isScreenImageLoading = false; if ($debug) Debug.write("addImageToLayerHistory: ",actionObject,refObj); //start sync process using the remote uniqueObjectSyncName as identifier //This invokes a Method which is in the remoteWhiteboard.lzx this.startNewObjectSyncProcess.isStarting = false; this.startNewObjectSyncProcess.uniqueObjectSyncName = actionObject[8]; this.startNewObjectSyncProcess.doCall(); this.addImageToLayer(refObj,actionObject[actionObject.length-1],actionObject[1], actionObject[actionObject.length-5],actionObject[actionObject.length-4], actionObject[actionObject.length-3],actionObject[actionObject.length-2], false, actionObject[2],actionObject[3],actionObject[4],actionObject[5], actionObject[6],actionObject[7],actionObject[8],false); this.doSWFDocumentStatus(this.currentlayer,actionObject[actionObject.length-7]); if ($debug) Debug.write("addImageToLayerHistoryToLocal: ",actionObject,refObj); this.addImageToLayer(refObj,actionObject[actionObject.length-1],actionObject[1], actionObject[actionObject.length-5],actionObject[actionObject.length-4], actionObject[actionObject.length-3],actionObject[actionObject.length-2], false, actionObject[2],actionObject[3],actionObject[4],actionObject[5], actionObject[6],actionObject[7],actionObject[8],true); if ($debug) Debug.write("addImageToLayerHistoryToLocal: ",objRef); this.syncImageRefObj = objRef; this.registerNewImage(this.syncImageRefObj.src, this.syncImageRefObj.x,this.syncImageRefObj.y, this.syncImageRefObj.width,this.syncImageRefObj.height, this.syncImageRefObj.baseurl,this.syncImageRefObj.fileName, this.syncImageRefObj.moduleName,this.syncImageRefObj.parentPath, this.syncImageRefObj.room,this.syncImageRefObj.domain, false,this.syncImageRefObj.uniqueObjectSyncName,this.getSWFDocumentStatus(), this.getZIndex()); this.isWmlLoaderImage = isWmlLoader; this.addImageToLayerRecorded(refObj, actionObject[actionObject.length-1],actionObject[1], actionObject[actionObject.length-5],actionObject[actionObject.length-4], actionObject[actionObject.length-3],actionObject[actionObject.length-2], false, actionObject[2],actionObject[3],actionObject[4],actionObject[5], actionObject[6],actionObject[7]); if ($debug) Debug.write("registerNewImage doCallUpdate: ",doCallUpdate); if ($debug) Debug.write("registerNewImage swfObj: ",swfObj); var actionObject = new Array(); actionObject.push('image'); actionObject.push(urlname); actionObject.push(baseurl); actionObject.push(fileName); actionObject.push(moduleName); actionObject.push(parentPath); actionObject.push(room); actionObject.push(domain); actionObject.push(uniqueObjectSyncName); actionObject.push(zIndex);//-8 actionObject.push(swfObj);//-7 actionObject.push(this.counter);//-6 actionObject.push(posx);//-5 actionObject.push(posy);//-4 actionObject.push(width);//-3 actionObject.push(height);//-2 actionObject.push(this.currentlayer.name);//-1 this.baseactionobjectList.push(actionObject); this.checkStepLayers(); if (doCallUpdate) this.onsharedMessage('draw',actionObject); if ($debug) Debug.write("storeTempValsAndLoadSyncList: ",objRef); this.syncImageRefObj = objRef; //This invokes a Method which is in the remoteWhiteboard.lzx this.sendCompletedObjectSyncEvent.uniqueObjectSyncName = this.syncImageRefObj.uniqueObjectSyncName; this.sendCompletedObjectSyncEvent.doCall(); this.registerNewImage(this.syncImageRefObj.src, this.syncImageRefObj.x,this.syncImageRefObj.y, this.syncImageRefObj.width,this.syncImageRefObj.height, this.syncImageRefObj.baseurl,this.syncImageRefObj.fileName, this.syncImageRefObj.moduleName,this.syncImageRefObj.parentPath, this.syncImageRefObj.room,this.syncImageRefObj.domain, true,this.syncImageRefObj.uniqueObjectSyncName,this.getSWFDocumentStatus(), this.getZIndex()); if ($debug) Debug.write("########### storeTempValsAndLoadSyncListRecording: ",objRef); this.syncImageRefObj = objRef; this.doRegisterAfterLoadingOrRecording(); this.sendCompleteImageSync(); if ($debug) Debug.write("sendLoadNotificationImage: ",objRef); this.syncImageRefObj = objRef; this.registerNewImage(this.syncImageRefObj.src, this.syncImageRefObj.x,this.syncImageRefObj.y, this.syncImageRefObj.width,this.syncImageRefObj.height, this.syncImageRefObj.baseurl,this.syncImageRefObj.fileName, this.syncImageRefObj.moduleName,this.syncImageRefObj.parentPath, this.syncImageRefObj.room,this.syncImageRefObj.domain, false,this.syncImageRefObj.uniqueObjectSyncName,this.getSWFDocumentStatus(), this.getZIndex()); //This invokes a Method which is in the remoteWhiteboard.lzx this.sendCompletedObjectSyncEvent.uniqueObjectSyncName = this.syncImageRefObj.uniqueObjectSyncName; this.sendCompletedObjectSyncEvent.doCall(); if ($debug) Debug.write("########### doRegisterAfterLoadingOrRecording"); this.imageSyncMessageText = canvas.getLabelName(this.imageSyncMessageId); //now send notifications to connected clients this.setAttribute('drawmodus','image'); this.registerNewImage(this.syncImageRefObj.src, this.syncImageRefObj.x,this.syncImageRefObj.y, this.syncImageRefObj.width,this.syncImageRefObj.height, this.syncImageRefObj.baseurl,this.syncImageRefObj.fileName, this.syncImageRefObj.moduleName,this.syncImageRefObj.parentPath, this.syncImageRefObj.room,this.syncImageRefObj.domain, this.getSWFDocumentStatus(), this.getZIndex());