0

I have swf that expands to fullscreen:

stage.displayState = StageDisplayState.FULL_SCREEN;

The second I try to select local file, it's collapsing to NORMAL_SCREEN

    file_mask = new FileFilter("Images: (*.jpeg, *.jpg, *.png, *.JPG)","*.jpeg; *.jpg; *.png; *.JPG");
    local_file.browse([file_mask]);

Is it bug, or feature, or the way it used to be ???

import flash.net.*;
import flash.events.*;
import flash.display.*;

expand_btn.addEventListener(MouseEvent.CLICK, openApp)
function openApp(e:MouseEvent) {
    stage.displayState = StageDisplayState.FULL_SCREEN;
}

file_btn.addEventListener(MouseEvent.CLICK, openApp2)
function openApp2(e:MouseEvent) {
    var local_file:FileReference = new FileReference();
    var file_mask:FileFilter = new FileFilter("Images: (*.jpeg, *.jpg, *.png, *.JPG)","*.jpeg; *.jpg; *.png; *.JPG");
    local_file.browse([file_mask]);
}
James.G.D.
  • 29
  • 5

1 Answers1

1

Use fullscreen interactive.

 stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
 //Align top left of the stage.
 stage.align = StageAlign.TOP_LEFT;
 //align swf contents without scale.
 stage.scaleMode = StageScaleMode.NO_SCALE;

and if you are embeding in browser add the below parameters.

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

Ref

Benny
  • 2,250
  • 4
  • 26
  • 39