-
Video Replay and Autohide Controls problem..
Hi,
I need some help with video please....
I have a video loading into flash CS4 with the FLVPLayback Component, after it's done playing, I have replay button come up, that re-starts the video upon clicking. I have these 2 problems:
1. The replay button takes too long to come up after the video is done playing..
2. I use Auto-hide option for the FLVPlayback controls, but when I try to click on re-play button (thus mouse-over the video), the controls show up again and I need them to show up only when the video is playing...
any help would be SUUUUPER appreciated... this is the code I'm using:
import fl.video.FLVPlayback;
import fl.video.VideoEvent;
import flash.events.MouseEvent;
bttn.visible = false;
player.addEventListener(VideoEvent.COMPLETE, addPlayAgain, false, 0, true);
function addPlayAgain(e:VideoEvent) {
bttn.visible = true;
bttn.addEventListener(MouseEvent.CLICK, restart);
function restart(e:MouseEvent):void {
player.play();
bttn.visible = false;
}
}
Thank you ahead of time!!!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|