简体   繁体   English

在全屏模式下获取本地文件

[英]Get local file while in Fullscreen mode

I have swf that expands to fullscreen: 我将SWF扩展为全屏显示:

stage.displayState = StageDisplayState.FULL_SCREEN;

The second I try to select local file, it's collapsing to NORMAL_SCREEN 我尝试选择本地文件的第二个,它正在折叠为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 参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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