setRate(20.000000); $movie->setDimension(550, 400); $movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); $circleshape = new SWFShape(); $circleshape->setRightFill(33,66,99); $circleshape->drawCircle(40); $circlesprite= new SWFSprite(); $circlesprite->add($circleshape); $circlesprite->nextFrame(); $f1 = $movie->add($circlesprite); $f1->setName("circle"); $f1->moveTo(100,100); $movie->add(new SWFAction(" circle.onPress=function(){ this.startDrag('');}; circle.onRelease= circle.onReleaseOutside=function(){ stopDrag();}; ")); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?>>