我已经创建了一个视频播放器,但需要添加一个按钮,单击该按钮会将视频置于全屏观看模式。我不想缩放舞台上的所有东西 - 只是视频。我似乎找不到如何做到这一点 - 我认为这很容易。
最佳答案
看看这是否有效:
stage.displayState = StageDisplayState.FULL_SCREEN;
videoPlayer.x = 0;
videoPlayer.y = 0;
//save the width and height in temp vars
//for restoring them later.
videoPlayer.width = stage.fullScreenWidth;
videoPlayer.height = stage.fullScreenHeight;
关于actionscript-3 - as3视频全屏模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1457318/