Hi Coders I am capturing and image from swf to jpg with the following code. It sometimes gives the output. But sometimes cause timeout "A script is causing flash player ". Is there a way to make it not timeout.
I have used http://www.buraks.com/swfsli/ with the cmdline "swfsli index.swf/t200 /b /d /v" Code: who = mixer_mc.holder_mc; var pixels:Array = new Array(); //var snap = new BitmapData(33, 43); var snap = new BitmapData(331.5, 432.9); snap.draw(who); var w:Number = snap.width, tmp; var h:Number = snap.height; var a:Number = 0; while(a<=w) { b = 0 while(b<=h) { tmp = snap.getPixel(a, b).toString(16); pixels.push(tmp); b++ } perc = int((a*100)/w)/2; _root.mixer_mc.outputLoading_mc.bar_mc.gotoAndStop(perc); a++ } outputImage(pixels, h, w, action); snap.dispose(); Berkay _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com