Hi
I’m trying to figure out a simple if statement:
var mp3Player:Sound = new Sound();
mp3Player.loadSound(“http://www.mysite.com/audio/01.mp3”, true);
mp3Player.setVolume(75);
if(mp3Player.play == true)
{
playBtn._visible = false;
trace (“playing”);
}else{
playBtn._visible = true;
trace (“not playing”);
}
…I’ve also tried (mp3Player == playing) and (mp3Player == play) and (mp3Player.playing == true), I can’t get it to work.
Please help.
Thanks.