Hello (ah! I fo,
I’m creating a flash ad with a very basic control. Press play to play the video and press play again to replay (with the play button turning invisible after clicking on it). But when the video is finished loading, the play button appears but it doesn’t play the video again. Can anybody help? Thanks! Here’s my code
function vid(e:Event){
vidPlayer.source = "2009companyvideo.flv"
}
play_btn.addEventListener(MouseEvent.CLICK, vid);
function hideBtn(event) {
play_btn.visible = false;
}
play_btn.addEventListener(MouseEvent.CLICK, hideBtn);
function showBtn(event) {
play_btn.visible = true;
}
vidPlayer.addEventListener(Event.COMPLETE, showBtn);