help with FLVPlayback (as3)
Hi There,
I hope someone can save me with this.
I am currently working on a project (AS3), where I have 2 frames, with 2 videos (using the FLVPlayback component).
and I want to switch from one video to the next video, however the catch is when i switch to the next video I want the new video to play at the previous video time.
example:
Video 1 plays, 10 sec later, you click a button to go and see the next video (in another frame) and that new Video starts 10 sec into it.
This is the codes I been using so far:
------------------------------
import fl.video.VideoEvent;
import fl.video.MetadataEvent;
video1.addEventListener(VideoEvent.PLAYHEAD_UPDATE, timer);
function timer(e:VideoEvent):void {
var newTime = video1.playheadTime;
};
nextFrame_btn.addEventListener( MouseEvent.MOUSE_UP, nextFrame);
function nextFrame (MouseEvent):void
{
gotoAndStop(2);
video2.playheadTime = newTime;
}
--------------------
This doesn't work
and I do not know what I am doing wrong.
many thanks if you can help.