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

Recommended Answers

All 4 Replies

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?

commented: Clear response, good suggestion +0

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

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

commented: Very helful answer! +0

Thanks :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.