# Checking to see if the FLV Playback component is playing

**URL:** <https://forum.kirupa.com/t/checking-to-see-if-the-flv-playback-component-is-playing/280021>\
**Category:** flash\
**Created:** [January 21, 2009, 6:01pm UTC](https://forum.kirupa.com/t/checking-to-see-if-the-flv-playback-component-is-playing/280021 "2009-01-21T18:01:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brostd](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@brostd](https://forum.kirupa.com/u/brostd)\
**Post date:** [January 21, 2009, 6:01pm UTC](https://forum.kirupa.com/t/checking-to-see-if-the-flv-playback-component-is-playing/280021/1 "2009-01-21T18:01:33Z")

</div>

I have a FLV Playback component set up on my stage with a video chooser under it. I need to see if the player is playing because if I click the same video that already playing my play button comes up and the video starts to play again. I am including the code that I have on the chooser button:

```auto
thumb2.onPress = function () {
    vidPlayer.removeEventListener("complete", shareLinks);
    videoToPlay = box2;
    vidPlayer.seek(0);
    vidPlayer.stop();
    checkAd();
    if(textAdVisible == true && textAdType[videoToPlay] == "full"){
        closeAdFull();
    }else if(textAdVisible == true && textAdType[videoToPlay] == "half"){
        closeAdHalf();
    }
}

```

It seems that as long as I choose a different different video than what is playing it works fine.

thanks in advanced for any help

brostd
