Skip to main content
This topic has been closed for replies.

2 replies

Participating Frequently
October 23, 2012

Hi!

I discovered a very strange thing. Application with allowsFullScreenInteractive is compiled correctly, but when trying to read this property an error is occured:

ReferenceError: Error #1069: Property allowsFullScreenInteractive not found on flash.display.Stage and there is no default value. I'm compiling with Adobe® Flash® Builder™ 4.6, flex sdk 3.6A with playerglobasl.swc v. 11.4 (also tried with v.11.3). This property could not be accessed before entering full screen interactive, after entering full screen interactive and after user has accepted full screen interactive (pressed "Allow" button). You can take a look at my test application at https://rapidshare.com/files/438718333/FullScreenInteractiveTest.zip. Please, let me know what you think about this strange behaviour.

Participating Frequently
October 23, 2012

Forgot to attach source code:

package

{

          import flash.display.Sprite;

          import flash.display.StageDisplayState;

          import flash.events.Event;

          import flash.events.FullScreenEvent;

          import flash.events.MouseEvent;

          public class FullScreenInteractiveAs3Test extends Sprite

          {

                    public function FullScreenInteractiveAs3Test()

                    {

                              var but:Sprite = new Sprite();

                              but.graphics.beginFill(0xff0000, 1);

                              but.graphics.drawRect(0, 0, 100, 30);

                              but.graphics.endFill();

                              but.addEventListener(MouseEvent.CLICK, this.butClickHandler);

                              this.addChild(but);

                              this.addEventListener(Event.ADDED_TO_STAGE, this.stageAddedHandler);

                    }

                    private function stageAddedHandler(evt:Event):void

                    {

                              this.stage.addEventListener(FullScreenEvent.FULL_SCREEN, this.fullScreenHandler);

                              this.stage.addEventListener(FullScreenEvent.FULL_SCREEN_INTERACTIVE_ACCEPTED, this.fullScreenInteractiveHandler);

                    }

                    private function fullScreenHandler(evt:FullScreenEvent):void

                    {

                              trace("=== full screen mode changed");

                              switch(this.stage.displayState)

                              {

                                        case StageDisplayState.FULL_SCREEN_INTERACTIVE:

                                                  trace("----- now in full screen interactive mode");

                                                  try

                                                  {

                                                            trace("--- user allows full screen interactive '" + this.stage.allowsFullScreenInteractive + "'");

                                                  }

                                                  catch(e:Error)

                                                  {

                                                            trace("--- property 'allowsFullScreenInteractive' is NOT accessible!");

                                                  }

                                                  break;

                                        case StageDisplayState.FULL_SCREEN:

                                                  trace("--- now in full screen mode");

                                                  break;

                                        case StageDisplayState.NORMAL:

                                                  trace("--- now in normal mode");

                                                  break;

                              }

                    }

                    private function fullScreenInteractiveHandler(evt:FullScreenEvent):void

                    {

                              trace("=== full screen interactive accepted, allows full screen '" + this.stage.allowsFullScreenInteractive + "'");

                    }

                    private function butClickHandler(evt:MouseEvent):void

                    {

                              trace("=== but click handle");

                              try

                              {

                                        this.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

                                        trace("--- set to full screen interactive");

                              }

                              catch(e:Error)

                              {

                                        this.stage.displayState = StageDisplayState.FULL_SCREEN;

                                        trace("--- set to full screen");

                              }

                    }

          }

}

Participant
October 1, 2012

This document refers to a property stage.allowsFullScreenInteractive from FP 11.3. When I include the below code, the movie compiles without errors.

if(stage.allowsFullScreenInteractive)

However, when I play the movie in the browser debug player (11.4), I keep getting the following error:


ReferenceError: Error #1069: Property allowsFullScreenInteractive not found on flash.display.Stage and there is no default value.

Could someone please advice if this property can be retrieved in the activeX and plugin versions of FP 11.4?

Also, setting the stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE seems to only work for the Plugin on Firefox and Chrome browsers but has no effect in the IE ActiveX plugin. Is this a known bug?

Thanks,
Saravanan

jrunrandy
Adobe Employee
Adobe Employee
October 2, 2012

@Saravanan,

Let me ask around.

Regards,

Randy Nielsen

Senior Content and Community Manager

Adobe