Note that there are some explanatory texts on larger screens.

plurals
  1. POactionscript full screen not allowed
    primarykey
    data
    text
    <p>This is my code to add the button onto stage </p> <pre><code>private function add_fullScreenBtn(height:Number):void { button_fullScr = new Sprite(); button_fullScr.useHandCursor = true; button_fullScr.buttonMode = true; button_fullScr.mouseChildren = false; button_fullScr.x = height; button_fullScr.y = btn_y; var fullScr_Btn:Bitmap = new fullScreenImage(); button_fullScr.addChild(fullScr_Btn); button_fullScr.addEventListener(MouseEvent.CLICK, fullScreenHandler); addChild(button_fullScr); } </code></pre> <p>This is the code for handling the event when the user clicks on fullscreen button</p> <pre><code>private function fullScreenHandler(event:MouseEvent):void { trace("Here"); // stage.displayState = StageDisplayState.FULL_SCREEN if (this.stage.displayState== StageDisplayState.NORMAL) { //stage.displayState="fullScreen"; this.stage.displayState=StageDisplayState.FULL_SCREEN_INTERACTIVE; stage.scaleMode = StageScaleMode.NO_SCALE; } else { //stage.displayState="normal"; this.stage.displayState=StageDisplayState.NORMAL; } } </code></pre> <p>This is the code of html page</p> <pre><code> &lt;html&gt; &lt;head&gt;This is the Test Page &lt;/head&gt; &lt;body&gt; &lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://.../swflash.cab#version=9,0,0,0" width="550" height="400" id="sample" align="middle"&gt; &lt;param name="allowScriptAccess" value="sameDomain" /&gt; &lt;param name="allowFullScreen" value="true" /&gt; &lt;param name="movie" value="sample.swf" /&gt; &lt;param name="quality" value="high" /&gt; &lt;param name="bgcolor" value="#333333" /&gt; &lt;embed src="sample.swf" quality="high" bgcolor="#333333" width="550" height="400" name="sample" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" allowFullScreen="true" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt; &lt;/embed&gt; &lt;/object&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>When I am running this page I am getting error that full screen mode is not allowed. security exception. When I am tracing it on console its printing "here"</p> <p>can anyone suggest how can i solve the error</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload