setDimension(550,400); $movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); $strAction=" // the content for the textfield tfcontent=''; for(i=0;i<40;i++){ tfcontent+=' some text to test scrolling'; } // the stylesheet for the textfield mycss=' .basictext { color: #CCCC00; margin-left: 10px; margin-right: 10px; font-size: 18px; }'; // create the textfield _root.createTextField('txtFld',1,20,20,400,200); with(txtFld){ border = true; html = true; wordWrap=true; scrollWheelEnabled=true; } // apply the stylesheet and add the content txf= TextField.StyleSheet; myStyleSheet = new txf(); myStyleSheet.parseCSS(mycss); txtFld.styleSheet = myStyleSheet; txtFld.htmlText = tfcontent; "; $movie->add(new SWFAction($strAction)); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?>