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

  • Home
  • SEARCH
  • 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 have this form. Basically what I want is to send a auto-response with
This is what I'm talking about: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx basically I want to have a drop
I've Googled for this but must be using the wrong keywords. Basically I want
I've created a small pixel-font that I want to use in a Flash game.
I have created a UserControl using a DevExpress XtraTreeList. Basically in this user control
I basically want to do this in code: PersonList myPersonList; //populate myPersonList here, not
Basically i want to do this. aa causes a bad cast exception. NOTE: o
I just want to design this very simple website. Basically there are multiple pages
Basically i got this for loop and i want the number inputed (eg. 123)
Basically, I want to do something like this (in Python, or similar imperative languages):

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.