setRate(31); $movie->setDimension(400,300); $movie->setBackground(0xCC,0xCC,0xCC); $filesrc1="_Danc-Liam_D_N-10956.wav"; $filecontents1=file_get_contents($filesrc1); $soundobject=new SWFSound($filecontents1,SWF_SOUND_44KHZ|SWF_SOUND_16BITS|SWF_SOUND_STEREO); $gradient=new SWFGradient(); $gradient->addEntry(0.2,215,215,250); $gradient->addEntry(0.5,25,25,25); $gradient->addEntry(0.8,25,25,200); $circleshape=new SWFShape(); $fill=$circleshape->addFill($gradient, SWFFILL_RADIAL_GRADIENT); $fill->scaleTo(0.1); $circleshape->setLeftFill($fill); $circleshape->drawcircle(30); $sp = new SWFSprite(); $f1 = $sp->add($circleshape); $soundinstance=$sp->startSound($soundobject); $soundinstance->loopcount(999); $sp->nextFrame(); $f1=$movie->add($sp); $f1->setName("soundclip"); $f1->moveto(200,150); $strAction=<<110 || scale<90){ inc=-inc; } soundclip._xscale=soundclip._yscale=scale; }; EOT; $movie->add(new SWFAction($strAction)); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?>