setDimension(550, 400); $movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); $movie->setRate(31); $fontsclip = new SWFPrebuiltClip(fopen("./usingarialfont.swf", "rb")); $clip = $movie->add($fontsclip); $clip->moveto(-30,-80); $strAction=" _root.createTextField('tx1',1111,100,100,300,200); tf = new TextFormat(); tf.color = 0x000066; tf.font = 'Arial Black'; tf.size = 16; with (_root.tx1){ multiline = true; wordWrap = true; border = true; //type = 'dynamic'; embedFonts = true; text = 'This text is in a textfield using Arial Black font which is embedded in usingarialfont.swf which is included using SWFPrebuiltClip. The visual element of that movie could have been parked off screen but has been positioned top left... '; setTextFormat(tf); } "; $movie->add(new SWFAction($strAction)); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?>