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:
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