Hello,
I have a video in a flash as2 project using cs4. I have a video that plays with an alpha channel that fades. I want to have a background still under so when it fades it fades to the still that I have text on. This is in a flash game I have made. The problem is when the game goes from question to question it should play the video then fade to the video beneath, but it plays the background for 1/2 second or so, then plays the video which then fades to the background. Is there a way that the background can be under the video but not show initially?
Thanks for your help.
Mark.
click on your background (to select it) and (in the properties panel) assign an instance name (eg, bg_mc). do the same with your flvplayback component (eg, flvpb_mc).
then attaced to the timeline where you want your background to be not visible, use:
bg_mc._visible=false;
var lo:Object = {};
lo.ready = function(eObj:Object):Void {
bg_mc._visible = true;
};
flvpb_mc.addEventListener("ready", lo);
I tried the script. I named my background movie clip bg1, the instance name in the video player is q1. I have the player and the background in the timeline in the same frame. In the actions window of the background I inserted,
bg1._visible=false;
var lo:Object = {};
lo.ready = function(eObj:Object):Void {
bg1._visible = true;
};
q1.addEventListener("ready", lo);
I didn't show either before the video started, played, or ended.
Thanks again,
Mark.
Thank you for your help, I'm sorry, I have limited knowledge. Where do I paste this to? I changed the code to:
trace(bg1);_visible=false;
var lo:Object = {};
lo.ready = function(eObj:Object):Void {
trace(bg1);_visible = true;
};
trace(q1);addEventListener("ready", lo);
and added it to the still movie clip, the video player and the layer above the video player that has the actionscript. I did nothing. I'm sorry, I don't know what I am suppose to do. Can you be more specific?
Mark.
North America
Europe, Middle East and Africa
Asia Pacific