Highlighted

Looping audio throughout without it overlapping?

New Here ,
May 17, 2019

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

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

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();

}

TOPICS
Discussions

Views

666

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Looping audio throughout without it overlapping?

New Here ,
May 17, 2019

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

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

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();

}

TOPICS
Discussions

Views

667

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 17, 2019 0
Adobe Community Professional ,
May 17, 2019

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();

}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 17, 2019 0
New Here ,
May 17, 2019

Copy link to clipboard

Copied

Thanks a lot, how do I make the sound loop?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 17, 2019 0
New Here ,
May 17, 2019

Copy link to clipboard

Copied

Never mind, I figured out the loop part. Thanks a lot!!!!!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 17, 2019 0
kglad LATEST
Adobe Community Professional ,
May 17, 2019

Copy link to clipboard

Copied

you’re welcome.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 17, 2019 0