if (canvas.runtime != 'swf6') { this.setText('canvas.runtime = '+canvas.runtime+', but this example must be run as flash6, make sure to put lzr=swf6 in the URL!'); } else { this.setText('canvas.runtime is swf6, ahh what a great feeling'); } this.makeContainerResource(); Debug.write( 'mcref' , this.__LZmovieClipRef ); this.__LZmovieClipRef.createTextField( "$swf6text" , 0, 0, this.height, this.width, 40 ); this.__LZtext = this.__LZmovieClipRef['$swf6text']; Debug.write( 'swf6text' , this.__LZtext ); this.__LZText.setTextFormat(tf); this.__LZText.setNewTextFormat(tf); return (this.__LZText.getNewTextFormat()); this.__LZText.text = s; var tf = this.__LZText; tf.border = true; tf.embedFonts = false; this.setNewTextFormat(new TextFormat("Arial", 18, 0xffcccc, true)); //this.setNewTextFormat(new TextFormat("\u005f\u30b4\u30b7\u30c3\u30af", 32, 0xff0000, true)); //this.setNewTextFormat(new TextFormat("\u005f\u7b49\u5e45", 32, 0xff0000, true)); //this.setNewTextFormat(new TextFormat("Broadway", 32, 0xff0000, true)); var fmt = new TextFormat(); fmt.size = 30; this.setNewTextFormat(fmt); //this.setText("foobar 三月 四月"); this.setText("Foobar is foo plus bar"); this.__LZText.type = 'input'; Debug.write(this.getNewTextFormat()); var tf = this.__LZText; tf.border = true; tf.embedFonts = true; this.setNewTextFormat(new TextFormat('Helvetica', 18, 0x00ff00, true)); var fmt = new TextFormat(); fmt.size = 30; this.setNewTextFormat(fmt); this.setText("I am default, Oh so flash6-y!"); this.__LZText.type = 'input'; Debug.write(this.getNewTextFormat());