code it

Fullscreen Mode in AS2

To enable fullscreen mode using AS2 for a SWF file embedded within HTML page, add the parameter allowFullScreen in the object and embed tags in the HTML page and set its value to true.

param name="allowFullScreen" value="true"

1. This only works for SWF files published for Flash Player 9 and above
2. Full-screen mode does not work if wmode is set to opaque or transparent
3. When in full-screen mode, all keyboard input is disabled except for the keyboard shortcuts which exists the full-screen mode.

add a button with the following code which will toggle the browser window between Fullscreen and Normal mode when clicked

if(Stage.displayState == "normal")
Stage.displayState = "fullscreen"
Stage.displayState = "normal"


June 26, 2011 - Posted by | actionscript 2.0, Flash, HTML


  1. Howdy! I just wish to give you a huge thumbs up for your
    great info you’ve got here on this post. I am coming back to your site for more soon.

    Comment by see pictures | September 13, 2012 | Reply

  2. I just like the valuable information you supply to your articles.

    I’ll bookmark your blog and check once more here frequently. I am relatively sure I will be told many new stuff proper here! Best of luck for the next!

    Comment by hcg diets | March 26, 2013 | Reply

  3. I think the admin of this website is genuinely working hard
    in support of his web page, as here every information is quality based material.

    Comment by celebs without makeup | May 21, 2013 | Reply

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: