Hello i am having problems with a simple if statement.. i have a project with
some sound, and i have different frames for the content of the project. there
is a background music, and i made the background music stop on one frame. i
want the background music to continue when i click on the link for the other
frames, and i had a mysound.start(); function, but everytime i clicked on a
link the music started from the begining. i want to make an if function that
works something like this:
if mysound = stop, then, play mysound.... else do nothing. PLEASEEEE HELP ME!
apodkolinska - 30 Sep 2005 16:50 GMT
sound.stop is not a property but a method. I would try using position... if
the sound is not playing position should be at 0... otherwise it will specify a
millisecond position.
if(_level1.mysound.position == 0){
_level1.mysound.play();
}