luke777 Posted April 14, 2008 Share Posted April 14, 2008 Right ok so basically I own a site girldressupgames.net People can play a variety of games and dress characters up however they like. I would like to add a function to the site so that when they are done they can click a button that says "Capture" and it will then save a screenshot of the game once they have finished dressing up the character so they can show other people online. The image will look somthing like this: There must be a way I can do this, and if I could it would be great! Thanks for your help Luke. Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/ Share on other sites More sharing options...
luke777 Posted April 16, 2008 Author Share Posted April 16, 2008 SO noone has any idea at all???? anyone even know anyone that might, can you point me in the right direction? is this likely to be done with javascript? Luke :-\ ??? Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518474 Share on other sites More sharing options...
jonsjava Posted April 16, 2008 Share Posted April 16, 2008 The only problem I see is this: PHP is server side, and the SWF is downloaded to the client, and then run. The server has no way of knowing what is being displayed on your screen, so it has no way of capturing a screenshot for you. Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518476 Share on other sites More sharing options...
luke777 Posted April 16, 2008 Author Share Posted April 16, 2008 I know its not a simple task. But is there anyway it can be done? Perhaps if some kind of activex tool was created this could be done? I am willing to invest $$ into this... Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518479 Share on other sites More sharing options...
jonsjava Posted April 16, 2008 Share Posted April 16, 2008 Well, I won't flesh it out, but I can give you a concept to work with. Make it so your SWF files "call home", and saves the environment data to a table, then image magik can create the images server side (heavy coding, not for a novice). You would need to keep track of all data for this to work. background, x and y coords for every item on the doll, etc. Then you can have image magik draw one item on to the background, using the x and y coords. I can't help much past that, but....hope this has helped. ( repeated myself there, but I wanted to expound) Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518480 Share on other sites More sharing options...
luke777 Posted April 16, 2008 Author Share Posted April 16, 2008 There are so many different games with different items, this would be impossible. Or would take months to create. I think the active x control idea could work. Im not sure how complexed you can get with active x control but im pretty sure it involves a bit of c++. Im going to look into this. Luke. Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518481 Share on other sites More sharing options...
jonsjava Posted April 16, 2008 Share Posted April 16, 2008 Good luck. you will be limiting your user list to (officially) Internet explorer users that way. Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518484 Share on other sites More sharing options...
luke777 Posted April 16, 2008 Author Share Posted April 16, 2008 Very good point.... hmmm well i cant see any other way around it. Most users do visit with IE, ill just have to let the users with other browsers know that if they want to use the function they need to switch browsers. 1. Internet Explorer 178,358 82.73% 2. Firefox 30,960 14.36% 3. Safari 4,101 1.90% 4. Opera 1,638 0.76% Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518494 Share on other sites More sharing options...
jonsjava Posted April 16, 2008 Share Posted April 16, 2008 That will sate the windows users, but you will still have issues with linux users. The only "fix all" would be a server-side, but if your users are capable of using IE, then that's the way to do it. Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518497 Share on other sites More sharing options...
luke777 Posted April 16, 2008 Author Share Posted April 16, 2008 Little girls dont tend to use linux Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518527 Share on other sites More sharing options...
jonsjava Posted April 16, 2008 Share Posted April 16, 2008 Mine does. (final post on this thread by me) Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518535 Share on other sites More sharing options...
luke777 Posted April 16, 2008 Author Share Posted April 16, 2008 Then you have a very unusual sister Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518536 Share on other sites More sharing options...
poleposters Posted April 16, 2008 Share Posted April 16, 2008 Is there a javascript command for print screen "PrtScn". you could print the screen and somehow cut out the appropriate image. I don't know exactly how, but it might be a step in the right direction. Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518538 Share on other sites More sharing options...
luke777 Posted April 16, 2008 Author Share Posted April 16, 2008 hmmm.... yea javascript would be much better but im not sure if its possible Luke. Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518545 Share on other sites More sharing options...
kirk112 Posted April 16, 2008 Share Posted April 16, 2008 Don't know if this will help http://danielmclaren.net/2008/03/use-javascript-to-take-a-screenshot-of-a-flash-movie http://danielmclaren.net/2008/03/embedding-base64-image-data-into-a-webpage Seems along the same lines of what you aare trying to do Link to comment https://forums.phpfreaks.com/topic/101067-capturing-a-screenshot-of-swf-object/#findComment-518566 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.