PDA

View Full Version : how do i say "if a sound is already playing...



danielthelion
August 23rd, 2004, 01:37 AM
hey guys, can someone tell me how to say

on (release) {
if myLoop is playing;
dont play myLoop;
and if its not playing ;
then play myLoop;
}

danielthelion
August 23rd, 2004, 03:44 AM
ok, so heres what ive figured out so far, in my timeline ive got :


myLoop = new Sound(this);
myLoop.loadSound("piano.mp3");
myLoop.start(0,999);

if (_root.emptyMC == "animationwork.swf") {
myLoop.stop;
}



could someone please help me figure out how to say that if any other mc is loaded into "emptyMC" then Dont Stop myLoop.

danielthelion
August 23rd, 2004, 05:11 PM
dudes, i been up all night trying to figure this out. i know it cant be hard, but im not a actionscript guy yet...im learning but i need some help. someone please???

danielthelion
August 23rd, 2004, 06:24 PM
well, after 2 and a half days straight, i finally figured it out on my own. this conversation with myself has been wonderous. trip trap trout, this tale is told out.

2big2
August 23rd, 2004, 10:29 PM
Yay? :h: