setDimension(550,400); $movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); // put a circle movieclip in library linkage "mc" $c = new SWFShape(); $c->setRightFill(255,255,255); $c->drawCircle(30); $h= new SWFSprite(); $f = $h->add($c); $h->nextFrame(); $movie->addExport($h, 'mc'); $movie->writeExports(); // add some as1 $strAction=<<add(new SWFAction($strAction)); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?>