liamthebof Posted October 28, 2009 Share Posted October 28, 2009 Hello once again. My latest en devour requires me to produce an image of a static .swf that is embedded on a page. Unfortunately, it has a selection of variables passed to it. Eg <object width="90" height="175"> <param name="exaple" value="example.swf"> <param name="AllowScriptAccess" value="always"> <param name="FlashVars" value="Lotsofnumbers=lotsofthings"> <param name="scale" value="noscale"> <embed src="example.swf" width="90" height="175" AllowScriptAccess="always" FlashVars="Lotsofnumbers=lotsofthings" scale="noscale"> </embed> </object> Ive had a look at the swf library but nothing stood out as useful. So, my question is, how can I get some form of screenshot image of the swf file using php as my first choice, though if you know a better using some other technique, please say an I will have a look. Thanks. Link to comment https://forums.phpfreaks.com/topic/179287-swf-image-using-php/ Share on other sites More sharing options...
WolfRage Posted October 28, 2009 Share Posted October 28, 2009 Are you stating you want to take a screen shot of a swf file on some other website? Does this swf change from time to time? Link to comment https://forums.phpfreaks.com/topic/179287-swf-image-using-php/#findComment-946295 Share on other sites More sharing options...
liamthebof Posted October 28, 2009 Author Share Posted October 28, 2009 The swf changes based on the FlashVars I pass to it. Furthermore, yes, I do need some form of screenshot of the swf output though I am running off a linux machiine. Link to comment https://forums.phpfreaks.com/topic/179287-swf-image-using-php/#findComment-946537 Share on other sites More sharing options...
WolfRage Posted October 29, 2009 Share Posted October 29, 2009 Well I do not know of a way that PHP could take a screenshot of Flash; HTML and CSS no problem. But what you could do is use an IFrame or a standard frame. Sorry not sure if this is a perfect solution but it may be an option. Link to comment https://forums.phpfreaks.com/topic/179287-swf-image-using-php/#findComment-946842 Share on other sites More sharing options...
Ajdija Posted November 23, 2009 Share Posted November 23, 2009 hey I have same problem but I want to take image of swf file and save it or just show as png. I had read some about it and it should be done with: http://www.phpclasses.org/browse/package/2073.html and with GD library which can be found here: http://www.libgd.org/releases/ can anyone explain me a bit more how to do it and/or post example script which converts swf to f.ex png? Link to comment https://forums.phpfreaks.com/topic/179287-swf-image-using-php/#findComment-964295 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.