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 5968943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:09:39+00:00 2026-05-22T20:09:39+00:00

Previously I’d worked on a flash application that would be embedded into a webpage

  • 0

Previously I’d worked on a flash application that would be embedded into a webpage at 100×20 that loaded a graphic for a button based on XML. When the button was clicked, the application would go full-screen via AS3.

stage.displayState = StageDisplayState.FULL_SCREEN;

This worked great – the application went full-screen as expected.

Today I need to redevelop the application so that the SWF will launch full-screen via JavaScript (so that they can add the launch functionality to a link and whatnot).

I moved the above code from the _click(e:MouseEvent) function and placed it straight into the constructor of the application document class. However this doesn’t work when it’s embedded on a web page? When I open the SWF on my PC it works fine (launches into full-screen straight away). Just doesn’t wanna happen when it’s on a web-page.

Here is the JS that I am using to load my SWF.

// vars
var xml = <?php echo $_GET["xml"]; ?>;

/**
 * Launch fullscreen flash slideshow
 */
function launch()
{
    var object = '<object width="1" height="1"><param name="allowfullscreen" value="true" />';
    object += '<param name="wmode" value="transparent" /><param name="flashvars" value="xmllocation=http%3A%2F%2Fimagetrack.com.au%2Fsc%2Fsc.xml%3Fid%3D' + xml + '" />';
    object += '<embed width="1" height="1" src="application.swf?xmllocation=http%3A%2F%2Fimagetrack.com.au%2Fsc%2Fsc.xml%3Fid%3D' + xml + '" wmode="transparent" allowfullscreen="true" />';
    object += '</object>';

    var e = $(object);
    var p = $("body");

    p.append(e);
}

Which obviously just appends the object to the page. Is there another way I can go about this? Or am I just missing something simple? I’m guessing the reason is that full-screen is blocked unless it’s user-initiated.

  • 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-22T20:09:39+00:00Added an answer on May 22, 2026 at 8:09 pm

    This is a flash security restriction. You absolutely cannot launch flash into fullscreen without explicitly doing so from a click event.

    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7c5d.html

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

Sidebar

Related Questions

Previously, when I first design a stock application related software, I decide to use
Previously when covering events I've typed my reports into an html file and ftp'd
Previously I used to piddle around with VB6 to develop a couple of personal
Previously I ordered my posts as this: @posts = Post.find(:all, :order => created_at DESC)
Previously, while I am looking for the data structure with the following characteristic. Avoid
Previously I get an answer to the linking of an element. My next question
Previously, when running a Code Analysis on my project, I thought the context men
Previously I was not using an interface for my generic repository. When I extracted
Previously I was not using an interface for my generic repository. When I extracted
Previously to implementing filtering on the CollectionView, i used this to display the number

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.