//Nothing 0) { tString = tString.replace("<","<"); } while (tString.indexOf(">") > 0) { tString = tString.replace(">",">"); } this.setAttribute("text",tString); ]]> this.setAttribute('letterObjectIsActive',false); if (this.edittextLetter){ this.edittextLetter = false; this.setModus('hand'); } this.setAttribute('letterObjectIsActive',true); this.currentlayerletter=cl; this.sendNewStyle.sendEvent(); this.currentlayersize=cs; this.sendNewStyle.sendEvent(); this.currentlayerstyle=cs; this.sendNewStyle.sendEvent(); if (this.letterObjectIsActive){ this.currentletterObj.newStyleEvent.sendEvent() } this.italic = b; this.doalterStyle(); this.bold = b; this.doalterStyle(); //Debug.write("drawTextField: ",textforfield,width,x,y); var tempO = this.newTextField(this, 'letter' + this.getCounter(), textforfield, width, height, x, y, this.currentlayersize, this.currentlayerletter, this.currentlayerstyle); this.layers.push(tempO); this.drawTextFieldregister(textforfield, width, x, y, this.currentlayersize, this.currentlayerletter, this.currentlayerstyle, tempO.height, this .getSWFDocumentStatus(), this.getZIndex()); if ($debug) Debug.write("drawTextFieldByName ",txtName,textforfield,width,x,y); //this.checkForChanges(txtName,textforfield,width,x,y,height); this.edittextLetterObject.setAttribute('text',textforfield); this.edittextLetterObject.setTextEncoded(textforfield); this.edittextLetterObject.setAttribute('width',width); this.edittextLetterObject.setAttribute('height',height); this.edittextLetterObject.setAttribute('visible',true); this.edittextLetterObject.setAttribute('fontsize',this.currentlayersize); this.edittextLetterObject.setAttribute('fgcolor',this.currentlayerletter); this.edittextLetterObject.setAttribute('fontstyle',this.currentlayerstyle); this.updateObjectBounds(); this.updateByEditLetterObject(); //this.setModus('hand'); if (oid_name == null) { oid_name = 'letterTemp'+this.getCounter(); } this.currentlayer = new lz.drawViewNew(this,{name:oid_name,width:this.width+2,height:this.height+2}); var editObj = this.getObjectByName(actionObject[actionObject.length-1]); //Debug.write("editTextByHistory: ",editObj,actionObject,actionObject.length); editObj.setAttribute('text',actionObject[1]); editObj.setTextEncoded(actionObject[1]); editObj.setAttribute('width',actionObject[actionObject.length-3]); editObj.setAttribute('height',actionObject[actionObject.length-2]); editObj.setAttribute('fontsize',actionObject[3]); editObj.setAttribute('fgcolor',actionObject[2]); editObj.setAttribute('fontstyle',actionObject[4]); this.newTextField(obj,actionObject[actionObject.length-1],actionObject[1], actionObject[actionObject.length-3],actionObject[actionObject.length-2], actionObject[actionObject.length-5],actionObject[actionObject.length-4], actionObject[3],actionObject[2],actionObject[4]); this.doSWFDocumentStatus(this.currentlayer,actionObject[actionObject.length-7]); this.currentlayer = new lz.whiteBoardTextField(obj, { name : naming, x : x, y : y, height : height, multiline : true, width : width, text : textforfield, fontsize : fontsize, fgcolor : fgcolor, fontstyle : fontstyle }); this.currentlayer.setTextEncoded(textforfield); //Add Layer to global Layer return this.currentlayer; var actionObject = new Array(); actionObject[0] = "letter"; actionObject[1] = textforfield; actionObject[2] = fgcolor; actionObject[3] = fontsize; actionObject[4] = fontstyle; actionObject[5] = zIndex;//-8 actionObject[6] = swfObj;//-7 actionObject[7] = this.counter;//-6 actionObject[8] = x;//-5 actionObject[9] = y;//-4 actionObject[10] = width;//-3 actionObject[11] = height;//-2 actionObject[12] = this.currentlayer.name;//-1 this.baseactionobjectList.push(actionObject); this.checkStepLayers(); this.onsharedMessage('draw',actionObject);