Groups | Blog | Home
all groups > flash (macromedia) > june 2004 >

flash (macromedia) : How to: Go to frame until sound is done?



creativearts4kids
6/18/2004 11:26:04 PM
creativearts4kids
6/19/2004 7:47:48 AM
urami_
6/19/2004 8:07:13 AM


[quoted text, click to view]

With sound object and on Sound Complete .
Import sound to flash , open library CTRL L , right click sound and go to Linkage.
Check Export For Action Script, key in some ID name .

Now on timeline

_root.stop();
s = new Sound(this);
s.attachSound("IDnameHERE");
s.start(0, 1);
s.onSoundComplete = function() {
_root.play();
};

this will stop timeline and attach and play the sound , and once done call the
root (timeline) to play.....
s.start(0, 1); <---- 1 define number of loops

--

Regards


urami_*



<no>
http://flashfugitive.com/
</no>

AddThis Social Bookmark Button