Action Script 3.0 Fullscreen Issue - actionscript-3

stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE
I'm using this command to make my flash application fullscreen, and on that frame I have a video and a button to skip and pause the video and go to next frame,
PROBLEM I'm Facing:-
when I open flash application it launch's in fullscreen but my buttons are not visible at all.
I want to make only canvas fullscreen but not the video.
please help

Related

chrome extension for YouTube video playback

I wrote an extension for YouTube which among other things, pauses YouTube's video play back when page is opened. The problem is the video pauses but the video tool bar is not updating so it shows the pause button instead of the play button.
this is my code:
html5Videos = document.querySelectorAll("video");
for (var v = 0; v < html5Videos.length; v++)
html5Videos[v].pause();
I can't find a way to update the video tool bar.
This is how it looks, I need to hit play but the pause button is shown.
thanks.
Find the pause button element and click it:
document.querySelector('.ytp-play-button').click();

Why does my AS3 Video scrubber work in Preview and FP10 but not when published to Air?

I have coded an as3 class in Flash Pro to make an flv video pan backwards and forwards as the user drags the mouse left and right over the video sprite. (The video is an orbit of a building so the effect is to spin the building around with the mouse). The video has been loaded to a DisplayObject using Greensock's LoaderMax.
It all works fine in Flash Player 10 and the preview, but won't pan when published to Air 2 for desktop on windows. Video just jumps to the final position on mouseUp. Would this most likely be a limitation of Air? if so, why does the preview work? Any suggestions greatly appreciated.

How to use Stage and Stage.stageVideos to play the currenty playing video

I have developed a mobile AIR app in which a swf is placed over the video and when it (swf) clicked pause the main video and start a new video linked to swf over the main video and play/pause button appear on the swf linked video and when the play/pause button clicked it play/pause the main video which is in the background.
Can I use the stage and its property stage.stageVideos to play pause the video which is currently playing. My onPlayButtonis only have mediaPlayer.play();.
I have a fullScreen button which have following code:
private function onFSClicked(e:MouseEvent):void
{
switch(stage.displayState)
{
case "normal":
stage.displayState = "fullScreen";
break;
case "fullScreen":
default:
stage.displayState = "normal";
break;
}
}
The fullScreen button works with main video and when swf linked video play over main video then it also works for that swf linked video .
Can I able do same with the play/pause button using Stage as happen in the fullScreen button. I am new to AS3 and I start learning about the stage but find confusing. How could replace mediaPlayer.play(); and mediaPlayer.pause(); to Stage so that any video currently playing can be play/pause by button.

Flash FLVPlayBack Video goes FULLSCREEN instead of the Application

I am working on a Flash App and its a presentation. I want the App to go full screen but there is an FLVPlayBack component playing a video now instead of the App the StageDisplayState.FULL_SCREEN turns the video to full screen.
When I remove the video it works fine but I need that video there.
Any idea what is going wrong here ?
_Iza
set the fullScreenTakeOver parameter of your FLVPlayback Component to false before the FULL_SCREEN Code. Hope that will resolve that Video takeover issue.
var yourFLVPlaybackComp:FLVPlayback = new FLVPlayback();
yourFLVPlaybackComp.fullScreenTakeOver = false;

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

I have an 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