Groups | Blog | Home
all groups > flash actionscript > september 2007 >

flash actionscript : sound loop question


cliff roy
9/20/2007 8:10:02 PM
I have a movie that at the end of it, I want the action in the final frame to freeze, but the sound to keep looping for eternity.

kglad
9/20/2007 8:57:08 PM
no. if your sound is attached to a movieclip frame, you'll have very limited
control over it.

if you use the flash sound class, you'll have much more control over your
sound and no issues with timelines (unless you're trying to sync sound and
animation in which case all the issues are solvable but not necessarily
trivial).
cliff roy
9/20/2007 9:09:06 PM
I don't need to sync the sound and animation.

Is there any chance you could post some code?

kglad
9/20/2007 10:16:12 PM
file size should increase by a few bytes when you extend the timeline but add
no new assets to the timeline.



s=new Sound(this);
s.attachSound("yourSoundLinkageID"); //<- assign a linkage id to your sound
in the library
s.start()
s.onSoundComplete=function(){
s.start();
}
AddThis Social Bookmark Button