Copy link to clipboard
Copied
I want to loop audio throughout my project, so I have simply placed the audio on the timeline and used Properties to make it loop. However, when I use a button to return to the first frame of my project, the music starts playing over itself. How do I avoid this? I looked for solutions, some suggested forgoing the timeline and using ActionScript to play the audio, but I can't seem to find instructions with the code to do that and make it looping. Would appreciate any help! Thanks
assign your sound a class (or linkage id) in the library panel (eg, Sound1) and use:
var alreadyDefined:Boolean;
if(!alreadyDefined){
alreadyDefined=true;
var sound1:Sound=new Sound1();
sound1.play();
}
Copy link to clipboard
Copied
assign your sound a class (or linkage id) in the library panel (eg, Sound1) and use:
var alreadyDefined:Boolean;
if(!alreadyDefined){
alreadyDefined=true;
var sound1:Sound=new Sound1();
sound1.play();
}
Copy link to clipboard
Copied
Thanks a lot, how do I make the sound loop?
Copy link to clipboard
Copied
Never mind, I figured out the loop part. Thanks a lot!!!!!
Copy link to clipboard
Copied
you’re welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now