954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Use action script to make a screenshot of a site

Hello,

Is there a way to make a swf that is loading on a page, to make that swf create a screenshot of the page he is running on?

Thnx

theighost
Junior Poster
103 posts since Jan 2009
Reputation Points: 8
Solved Threads: 15
 

Any chance you could clarify this a bit further? I don't really understand what you're trying to achieve here!

Do you mean as soon as the swf has loaded, you want it to take a screenshot of the entire web-page??

If so, it sounds a bit unlikely to me as the swf will not be able to see anything external to itself. So it wouldn't be possible to take a screenshot of the entire web-page directly from Flash/AS3 (at least as far as I'm aware!)

You MAY be able to connect your swf to an external server-side script (javascript/php) which could retrieve the HTML for the page and generate an image of it. But again, I'm really not sure!

If it is possible, it would probably require quite a lot of work and resources to set up. What do you intend to do with the screenshot after you've got it?

JasonHippy
Master Poster
772 posts since Jan 2009
Reputation Points: 590
Solved Threads: 125
 

Thanks for your response, it is what I need.

The idea is to use this image in the swf. the swf is actually an overlayer that will cover the whole page and using the screenshot we will add the illusions that the page is being torn or kicked or whatever.

Can you tell me more about the server side languages I can use? I doubt that php would be a good choice. please give me more details if possible.

About the resources, it's not necessary to have a new screenshot every time the swf is loaded, so I guess a server side script would be perfect to make a screenshot every hour lets say.

Thank you

theighost
Junior Poster
103 posts since Jan 2009
Reputation Points: 8
Solved Threads: 15
 

To get a screenshot of a site you would actually have to have something load the site that does render it and then take a screenshot of the site. You are correct though, PHP would probably not be the best for this task. The best to use would be something like C++ or C# depending on the server you host on. I guarantee you that it would be no easy task though.

Here is a forum thread from another site that went round and round with the question. You may be able to get something out of it.

http://forums.digitalpoint.com/showthread.php?t=76454

pixelsoul
Junior Poster
124 posts since Feb 2011
Reputation Points: 54
Solved Threads: 23
 

Thanks :)

theighost
Junior Poster
103 posts since Jan 2009
Reputation Points: 8
Solved Threads: 15
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: