# Play Button Doesn't work after flv

**URL:** <https://forum.kirupa.com/t/play-button-doesnt-work-after-flv/298689>\
**Category:** flash\
**Created:** [October 23, 2009, 3:51am UTC](https://forum.kirupa.com/t/play-button-doesnt-work-after-flv/298689 "2009-10-23T03:51:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeGainer](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@MikeGainer](https://forum.kirupa.com/u/MikeGainer)\
**Post date:** [October 23, 2009, 3:51am UTC](https://forum.kirupa.com/t/play-button-doesnt-work-after-flv/298689/1 "2009-10-23T03:51:46Z")

</div>

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

```auto
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);

```
