I have a six minute video loading into my flash project.
It is too large to import directly into the timeline.
I want to display graphics and text underneath at key points and have considered using a timer to tell the graphics when to become in/visible.
I’m sure there is a bettere way of doing it than the code I have below, as the timer will start on frame enter won’t it and if the video takes a while to load the timer will be out of sync.
I’m guessing I should be preloading the video anyway but not quite sure how to do it.
var timer:Timer = new Timer(15000, 1);
timer.addEventListener(TimerEvent.TIMER, blah);
timer.start();
var timer2:Timer = new Timer(20000, 1);
timer2.addEventListener(TimerEvent.TIMER, blah2);
timer2.start();
textOne.visible=false;
function blah(e:TimerEvent):void{
textOne.visible=true;
}
function blah(e:TimerEvent):void{
textOne.visible=true;
}
Can anyone give me any tips or advice on how to best do this?