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(); //if ($debug) Debug.write("loadSWFPresentationSynced",url,fileName,moduleName,parentPath,room,domain,slideNumber,standardFileName); this.addPresentationToLayer(this,url,'swfpresentationobject'+this.getCounter(), 0,0,0,0, true, url,fileName,moduleName,parentPath,room,domain,slideNumber, 100,0,0,0,0, this.startNewObjectSyncProcess.uniqueObjectSyncName, standardFileName,this.fullFit); //this.addPresentationToLayer(this,url,'swfpresentationobject'+this.getCounter(),0,0,0,0,true,url,fileName,moduleName,parentPath,room,domain,slideNumber); this.isWmlLoaderImage = isWmlLoader; this.baseactionobjectList.push(actionObject); this.addPresentationToLayer(refObj,actionObject[1],actionObject[actionObject.length-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],actionObject[16],actionObject[11],actionObject[12],actionObject[9],actionObject[10], actionObject[17],actionObject[18],actionObject[19]); this.baseactionobjectList.push(actionObject); this.startNewObjectSyncProcess.isStarting = false; this.startNewObjectSyncProcess.uniqueObjectSyncName = actionObject[17]; this.startNewObjectSyncProcess.doCall(); this.addPresentationToLayer(refObj,actionObject[1],actionObject[actionObject.length-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],actionObject[16],actionObject[11],actionObject[12], actionObject[9],actionObject[10],actionObject[17],actionObject[18],actionObject[19]); this.baseactionobjectList.push(actionObject); this.addPresentationToLayer(refObj,actionObject[1],actionObject[actionObject.length-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],actionObject[16],actionObject[11],actionObject[12], actionObject[9],actionObject[10],actionObject[17],actionObject[18],actionObject[19]); var actionObject = new Array(); actionObject.push('swf');//0 actionObject.push(urlname);//1 actionObject.push(baseurl);//2 actionObject.push(fileName);//3 actionObject.push(moduleName);//4 actionObject.push(parentPath);//5 actionObject.push(room);//6 actionObject.push(domain);//7 actionObject.push(slideNumber);//8 actionObject.push(innerx);//9 actionObject.push(innery);//10 actionObject.push(innerwidth);//11 actionObject.push(innerheight);//12 actionObject.push(zoomlevel);//13 actionObject.push(initwidth);//14 actionObject.push(initheight);//15 actionObject.push(currentzoom);//16 actionObject.push(uniquObjectSyncName);//17 actionObject.push(standardFileName);//18 actionObject.push(fullFit);//19 actionObject.push(zIndex);//-8 actionObject.push(null);//-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 (doUpdateMessage) this.onsharedMessage('draw',actionObject); this.syncImageRefObj = objRef; this.doRegisterNewSwf(true); this.sendCompletedObjectSyncEvent.uniqueObjectSyncName = this.syncImageRefObj.uniqueObjectSyncName; this.sendCompletedObjectSyncEvent.doCall(); this.syncImageRefObj = objRef; this.doRegisterNewSwf(false); this.sendCompletedObjectSyncEvent.uniqueObjectSyncName = this.syncImageRefObj.uniqueObjectSyncName; this.sendCompletedObjectSyncEvent.doCall(); this.syncImageRefObj = objRef; //this.doRegisterNewSwf(); //this.sendCompleteSWFSync(); //This invokes a Method which is in the remoteWhiteboard.lzx this.sendCompletedObjectSyncEvent.uniqueObjectSyncName = this.syncImageRefObj.uniqueObjectSyncName; this.sendCompletedObjectSyncEvent.doCall(); //now send notifications to connected clients this.setAttribute('drawmodus','hand'); this.registerNewSWF(this.syncImageRefObj.baseurl,this.syncImageRefObj.x, this.syncImageRefObj.y,this.syncImageRefObj._swfView.width, this.syncImageRefObj._swfView.height,this.syncImageRefObj.baseurl, this.syncImageRefObj.fileName,this.syncImageRefObj.moduleName, this.syncImageRefObj.parentPath,this.syncImageRefObj.room, this.syncImageRefObj.domain,this.syncImageRefObj.slideNumber, this.syncImageRefObj._swfView.x,this.syncImageRefObj._swfView.y, this.syncImageRefObj._swfView.width,this.syncImageRefObj._swfView.height, this.syncImageRefObj.zoomlevel,this.syncImageRefObj.currentzoomFactor, this.syncImageRefObj.initwidth,this.syncImageRefObj.initheight, this.syncImageRefObj.uniqueObjectSyncName,doUpdateMessage, this.syncImageRefObj.standardFileName, this.syncImageRefObj.fullFit, this.getZIndex()); //set modus to hand so users can directly select that image this.setModus('swf'); this.imageLoadingCompleteMessage = new Array(); this.imageLoadingCompleteMessage[0] = "whiteboard"; this.imageLoadingCompleteMessage[1] = "swfsynccomplete"; this.sendMessageWithClientSWF.doCall(); 1){ this.ObjectByName._swfView.setAttribute('frame',(this.ObjectByName._swfView.frame-1)); } } else if (action=="doc_next"){ if (this.ObjectByName._swfView.frame0 && this.newSlideNumber<=this.ObjectByName._swfView.totalframes){ if ($debug) Debug.warn("Slide New Number ",this.newSlideNumber); this.ObjectByName._swfView.setAttribute('frame',this.newSlideNumber); } else { if ($debug) Debug.warn("Slide Number out of range of that document TotalFrames: ",this.ObjectByName._swfView.totalframes); } } this.ObjectByName.slideNumber = this.ObjectByName._swfView.frame; this.doUpdateDocumentToolBar(); if ($debug) Debug.info("doDocumentAction :2: sendCurrentSWFObject"); this.sendCurrentSWFObject(this.ObjectByName); } ]]> var docToolbar = this.getDocumentToolBar(); docToolbar.addCurrentObject(this.currentlayer); if (this.boundingIsActive){ if (this.boundingref.objRef.name != itemRefName) { this.boundingref._innerDrag.onmouseup.sendEvent(); } } this.setCurrentDocument(); var t = this.getObjectByName(itemRefName); if (t==null) { return; } this.ObjectByName = t; this.doUpdateDocumentToolBar(); if ($debug) Debug.write("setCurrentDocument ",itemRefName,this.ObjectByName); //not needed anymore //this.sendItemToFront(itemRefName); //this.bringItemToFrontByName(itemRefName); var actionObject = new Array(); actionObject[0] = 'item'; actionObject[1] = itemRefName; this.onsharedMessage('sendItemToFront',actionObject); this.ObjectByName = this.getObjectByName(itemRefName); this.ObjectByName.bringToFront(); this.ObjectByName = this.getObjectByName(itemObjName); this.doUpdateDocumentToolBar(); var docToolbar = this.getDocumentToolBar(); docToolbar.removeDocument(itemRefName); var docToolbar = this.getDocumentToolBar(); docToolbar.clearDocumentsBar(); var actionObject = new Array(); actionObject[0] = 'flv'; actionObject[1] = fileExplorerItemId; actionObject[2] = fileName; actionObject[3] = isPlaying; actionObject[4] = flv_width; actionObject[5] = flv_height; actionObject[6] = zIndex;//-8 actionObject[7] = null;//-7 actionObject[8] = this.counter;//-6 actionObject[9] = x;//-5 actionObject[10] = y;//-4 actionObject[11] = width;//-3 actionObject[12] = height;//-2 actionObject[13] = newName;//-1 this.baseactionobjectList.push(actionObject); this.onsharedMessage('draw',actionObject); var tObj = this.getObjectByName(actionObject[actionObject.length-1]); if (actionObject[3]) { tObj.playRemote(); } if (!actionObject[3]) { tObj.stopRemote(); }