Skip to main content
Participating Frequently
November 2, 2012
Question

Stage.allowsFullScreenInteractive is not accessible in any display state

  • November 2, 2012
  • 1 reply
  • 3748 views

Flash player v.11.3 introduced new display mode: FULL_SCREEN_INTERACTIVE.

Class Stage now has new property 'allowsFullScreenInteractive'. I tried to acces this property before entering in full screen interactive mode, after display state has become FULL_SCREEN_INTERACTIVE and after a user has accepted this mode. But in every case this property was unaccessible. What am I doing wrong. Can I check if full screen interactive mode is accessible before I try to enter this mode?

I prepared a test flash builder project, so you can check yourself that problem exists. Here is the link to the .zip archive - https://rapidshare.com/files/2804815017/FullScreenInteractiveAs3Test.zip

Any ideas?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
November 2, 2012

copy and paste your embedding html code.

Participating Frequently
November 2, 2012

I'm running my exaple application under flash player plugin v.11.4.402.287. I added corresponding parameters ("allowFullScreen" & "allowFullScreenInteractive") in 'hasRequestedVersion' condition clause.

<html lang="en">

<!--

Smart developers always View Source.

This application was built using Adobe Flex, an open source framework

for building rich Internet applications that get delivered via the

Flash Player or to desktops via Adobe AIR.

Learn more about Flex at http://flex.org

// -->

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!--  BEGIN Browser History required section -->

<link rel="stylesheet" type="text/css" href="history/history.css" />

<!--  END Browser History required section -->

<title></title>

<script src="AC_OETags.js" language="javascript"></script>

<!--  BEGIN Browser History required section -->

<script src="history/history.js" language="javascript"></script>

<!--  END Browser History required section -->

<style>

body { margin: 0px; overflow:hidden }

</style>

<script language="JavaScript" type="text/javascript">

<!--

// -----------------------------------------------------------------------------

// Globals

// Major version of Flash required

var requiredMajorVersion = 11;

// Minor version of Flash required

var requiredMinorVersion = 3;

// Minor version of Flash required

var requiredRevision = 0;

// -----------------------------------------------------------------------------

// -->

</script>

</head>

<body scroll="no">

<script language="JavaScript" type="text/javascript">

<!--

// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)

var hasProductInstall = DetectFlashVer(6, 0, 65);

// Version check based upon the values defined in globals

var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

if ( hasProductInstall && !hasRequestedVersion ) {

          // DO NOT MODIFY THE FOLLOWING FOUR LINES

          // Location visited after installation is complete if installation is required

          var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";

          var MMredirectURL = window.location;

    document.title = document.title.slice(0, 47) + " - Flash Player Installation";

    var MMdoctitle = document.title;

          AC_FL_RunContent(

                    "src", "playerProductInstall",

                    "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",

                    "width", "100%",

                    "height", "100%",

                    "align", "middle",

                    "id", "FullScreenInteractiveAs3Test",

                    "quality", "high",

                    "bgcolor", "#869ca7",

                    "name", "FullScreenInteractiveAs3Test",

                    "allowScriptAccess","sameDomain",

                    "type", "application/x-shockwave-flash",

                    "pluginspage", "http://www.adobe.com/go/getflashplayer"

          );

} else if (hasRequestedVersion) {

          // if we've detected an acceptable version

          // embed the Flash Content SWF when all tests are passed

          AC_FL_RunContent(

                              "src", "FullScreenInteractiveAs3Test",

                              "width", "100%",

                              "height", "100%",

                              "align", "middle",

                              "id", "FullScreenInteractiveAs3Test",

                              "quality", "high",

                              "bgcolor", "#869ca7",

                              "name", "FullScreenInteractiveAs3Test",

                              "allowScriptAccess","sameDomain",

                              "allowFullScreen","true",

                              "allowFullScreenInteractive","true",

                              "type", "application/x-shockwave-flash",

                              "pluginspage", "http://www.adobe.com/go/getflashplayer"

          );

  } else {  // flash is too old or we can't detect the plugin

    var alternateContent = 'Alternate HTML content should be placed here. '

            + 'This content requires the Adobe Flash Player. '

             + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';

    document.write(alternateContent);  // insert non-flash content

  }

// -->

</script>

<noscript>

            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

                              id="FullScreenInteractiveAs3Test" width="100%" height="100%"

                              codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">

                              <param name="movie" value="FullScreenInteractiveAs3Test.swf" />

                              <param name="quality" value="high" />

                              <param name="bgcolor" value="#869ca7" />

                              <param name="allowScriptAccess" value="sameDomain" />

                              <embed src="FullScreenInteractiveAs3Test.swf" quality="high" bgcolor="#869ca7"

                                        width="100%" height="100%" name="FullScreenInteractiveAs3Test" align="middle"

                                        play="true"

                                        loop="false"

                                        quality="high"

                                        allowScriptAccess="sameDomain"

                                        type="application/x-shockwave-flash"

                                        pluginspage="http://www.adobe.com/go/getflashplayer">

                              </embed>

          </object>

</noscript>

</body>

</html>

kglad
Community Expert
Community Expert
November 2, 2012

you need to publish for fp 11.3+.  that code looks like it's from an edited old-version embedding html and contains mixed and incomplete code.

use:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

    <head>

        <title>test1</title>

        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <style type="text/css" media="screen">

        html, body { height:100%; background-color: #ffffff;}

        body { margin:0; padding:0; overflow:hidden; }

        #flashContent { width:100%; height:100%; }

        </style>

    </head>

    <body>

        <div id="flashContent">

            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="test1" align="middle">

                <param name="movie" value="test1.swf" />

                <param name="quality" value="high" />

                <param name="bgcolor" value="#ffffff" />

                <param name="play" value="true" />

                <param name="loop" value="true" />

                <param name="wmode" value="window" />

                <param name="scale" value="showall" />

                <param name="menu" value="true" />

                <param name="devicefont" value="false" />

                <param name="salign" value="" />

                <param name="allowScriptAccess" value="sameDomain" />

                <param name="allowFullscreenInteractive" value="true" />

                <!--[if !IE]>-->

                <object type="application/x-shockwave-flash" data="test1.swf" width="550" height="400">

                    <param name="movie" value="test1.swf" />

                    <param name="quality" value="high" />

                    <param name="bgcolor" value="#ffffff" />

                    <param name="play" value="true" />

                    <param name="loop" value="true" />

                    <param name="wmode" value="window" />

                    <param name="scale" value="showall" />

                    <param name="menu" value="true" />

                    <param name="devicefont" value="false" />

                    <param name="salign" value="" />

                    <param name="allowScriptAccess" value="sameDomain" />

                    <param name="allowFullscreenInteractive" value="true" />

                <!--<![endif]-->

                    <a href="http://www.adobe.com/go/getflash">

                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />

                    </a>

                <!--[if !IE]>-->

                </object>

                <!--<![endif]-->

            </object>

        </div>

    </body>

</html>