简体   繁体   中英

Get local file while in Fullscreen mode

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]);
}

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM