Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3273738
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:57:49+00:00 2026-05-17T18:57:49+00:00

basically what i want to do is this: I have a flash game on

  • 0

basically what i want to do is this:

I have a flash game on a page (pacman for example)

I want to be able to take a print screen of that game using javascript

Is it possible? I know i can include the game swf in a nother swf and capture the screenshot using flash but i need it to be done in javascript. is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:57:49+00:00Added an answer on May 17, 2026 at 6:57 pm

    If you control both the host page and the flash movie, then you can generate the screenshot in flash, and simply send it to javaScript, and then do whatever you need with it in javaScript.

    In ActionScript:

    import flash.external.ExternalInterface;
    ExternalInterface.call("showBase64Image", generateBase64Screenshot());
    // see this Mario Klingenmann's file for ideas how to do that http://www.quasimondo.com/archives/000572.php
    

    And then in javaScript:

    function showBase64Image(base64data) {
        var img = document.createElement('img');
        img.src = base64data;
        document.body.appendChild(img);
    }
    

    P.S. don’t forget to allowScriptAccess for embedded Flash, to allow Flash movie to access the javaScript on your page (which is definitely not wise if the Flash movie is made by a 3rd party).

    On the other hand, if you do not control the flash movie (for instance if you wanna make a website that’ll host 3rd party Flash games) then you’re out of luck, and what you need is not doable with javaScript alone, and it can only be achieved through use of browser plugins/extensions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I basically want to do this: grep 'example.com' www_log > example.com.YYYY-MM-DD-H:i:S.log ...with of course
I have a Flash .fla file that has SimpleButton. That SimpleButton is basically a
Basically I want to do this: public interface A { void a(); } public
This is an incredibly simple question (I'm new to Python). I basically want a
I'm a bit stuck on this. Basically I want to do something like the
Basically what I want to do it this: a pdb file contains a location
This is a sql newbie question. Basically, I want an extra column to return
So I basically want to have a static method in my AR class to
I have a 2-dimensional array of objects and I basically want to databind each
Basically I want to know how to set center alignment for a cell using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.