Flash projector displays black screen when video played - actionscript-3

I'm creating a desktop executable projector file for use in a presentation.
I have set the fscommand to display the projector in fullscreen on launch.
Everything works fine until we get to the video slide at which point whilst in full screen the video slide is totally blacked out, you can't view anything.
If full screen is exited the slide is view able again but the video does not show unless I go forward a slide and then back.
Does anyone know why this would be?
fscommand("fullscreen", "true");
import flash.media.SoundMixer;
import gs.TweenMax;
import gs.easing.*;
stage.addEventListener(KeyboardEvent.KEY_UP, keyHandler);
this.blendMode = BlendMode.LAYER;
stage.scaleMode = StageScaleMode.SHOW_ALL;

Related

Action Script 3.0 Fullscreen Issue

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

Flash FLVplayback giving issues in fullscreen mode - content dissapears

I am working on a video playing menu set up to work in Flash player as an exe. I have videos playing in the background with buttons hovering above the video with which the user can then play different videos. I am not a programmer but I have an understanding of very basic actionscript3 which I often cut and paste and/or modify in small ways.
My problem: When launching in fullsreen mode:
stage.displayState = StageDisplayState.FULL_SCREEN;
The video seems to make everything else disappear by appearing on top
of it or in other cases just causing a blank black screen.
this."name of FLV playback instance".fullScreenTakeOver = false;
Doesn't seem to be solving the problem.
Any help would be appreciated! :-)
I discovered in many cases it helped to put the "name of FLV playback instance".fullScreenTakeOver = false; code in the same timeline as the FLVPlayback. I still have the black screen issue sometimes, but I am working on that now.
Found the solution for the Blank screen. It's a glitch in Flash. Put the FLVPlayback on the first frame of a movieclip. This might mean converting it to a symbol in order to nest it on the first frame.
I discovered in many cases it helped to put the
"name of FLV playback instance".fullScreenTakeOver = false;
code in the same timeline as the FLVPlayback. I still ahve the black screen issue sometimes, but I am working on that now.

Adobe flash Youtube Video

How would i emded a youtube video into a Flash banner, Without the controlls, just a play and pause button on the video and A link to youtube, (it going to be very small.
This i what it needs to look like:
I am using this code now, but i cant se the video due to the bar at the bottom:
import flash.events.MouseEvent;
import flash.net.URLRequest;
Security.allowDomain("www.youtube.com");
var my_player:Object;
var my_loader:Loader = new Loader();
my_loader.load(new URLRequest("http://www.youtube.com/v/wQ-UltJAjMU?version=2"));
//http://www.youtube.com/watch?v=wfU5Hj3uKZ4
//btn_go
btn_go.addEventListener(MouseEvent.CLICK, onLoaderInit);
function onLoaderInit(e:Event):void{
btn_go.visible=false;
addChild(my_loader);
my_player = my_loader.content;
my_player.setSize(106,56);
my_player.addEventListener("onReady");
}
This is what my code makes me:
You need to load the chromeless player (http://www.youtube.com/apiplayer?version=3). Instructions here.
When it's loaded, tell it to play the video you need using player.loadVideoById("wQ-UltJAjMU"). (API reference.)
Edit: or player.cueVideoById("wQ-UltJAjMU") if you need it to load and display the video thumbnail but not start playing automatically.

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