开发者

`FullScreenTakeOver` property not working: How can I keep an FLVPlayback out of fullscreen mode in a fullscreen projector?

I have a开发者_StackOverflown FLVPlayback component on my timeline (frame 4 or so), and my Flash Projector is running in fullscreen mode. The problem is that I can't seem to make my FLVPlayback component NOT be in fullscreen mode and at the same time, have my stage in fullscreen mode.

Why is this? How do I fix it?

EDIT:

I want the projector to be in fullscreen mode, and the FLVPlayback to not be in fullscreen.

EDIT2:

I'm making an interactive projector in Flash CS5. The projector opens, loads a video into an FLVPlayback component in the first frame. For some reason, that FLVPlayback component does not take over the screen. (I've called flv.fullScreenTakeOver = false; before the video loads. Maybe that's why?)

However, when I try to use an FLVPlayback component in a different frame (frame 4), the video player takes over the screen, showing only a black screen while playing the video. It ignores the fullScreenTakeOver = false.

What could be wrong here and how do I fix it?


it's rather easy to resize the Video instance to e.g. 25% of stage size on FullScreenEvent

UPD: working (but very simple) example on wonderfl.net
i check on enter frame, but it's really too often:

video.addEventListener(Event.ENTER_FRAME, updSize);
private function updSize(e:Event = null):void{
   video.width = stage.displayState == 'fullScreen' ? smallVidWidth : bigVidWidth;
   video.height = stage.displayState == 'fullScreen' ? smallVidHeight : bigVidHeight;
}

imho it's always possible to know when the displayState is changed, but even using a timer would be better then enterframe

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜