1
完全適合我的意思是它也應該工作在嵌入的大小是有限的。如何在ActionScript3中實現全屏適配全屏模式?
代碼像下面將不會在這種情況下工作:
main.media.videoWidth = event.stage.stageWidth;
main.media.videoHeight = event.stage.stageHeight
這可能嗎?
完全適合我的意思是它也應該工作在嵌入的大小是有限的。如何在ActionScript3中實現全屏適配全屏模式?
代碼像下面將不會在這種情況下工作:
main.media.videoWidth = event.stage.stageWidth;
main.media.videoHeight = event.stage.stageHeight
這可能嗎?
你可以使用swfobject(js庫)來處理swf的大小。你應該使用類似
swfobject.embedSWF(loader, "flashcontent", "100%", "100%", playerMinVersion, null, flashvars, params, attributes);
細看