[英]Get local file while in Fullscreen mode
我將SWF擴展為全屏顯示:
stage.displayState = StageDisplayState.FULL_SCREEN;
我嘗試選擇本地文件的第二個,它正在折疊為NORMAL_SCREEN
file_mask = new FileFilter("Images: (*.jpeg, *.jpg, *.png, *.JPG)","*.jpeg; *.jpg; *.png; *.JPG");
local_file.browse([file_mask]);
是錯誤,功能還是以前的方式?
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]);
}
使用全屏互動。
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;
如果您要嵌入瀏覽器,請添加以下參數。
<param name="allowFullScreenInteractive" value="true" />
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.