View Full Version : basic music embedding
blakstardecever
04-11-2005, 01:19 AM
ok, I'm workin on a school project, and I don't know how to make the sound start automatically with the .swf and then, when the intro is done, and the "Start" button is pushed, switch to another clip.
Thanks for any help,
Blakstar
Hi,
There are several methods for manipulating sound in flash. You could import the sound and play it on a frame. You can use an identifier and attach sound from your library, or you can use a sound object and dynamically import sound(mp3 files) at runtime. It sounds like frame sound might be the easiest for your project. Import a sound into your library. Select the first frame of the movie and open the properties panel. You will see an option for sound. You can play your sound from that frame and loop it. On a button that leads to the next frame or scene..
_root.stopAllSounds();
Next frame or next scene, do the same thing.
Another approach might be to use a sound object. To see all the methods available to the sound object, open the actions panel and type "Sound".... highlight it with your mouse and press the help icon(little book with a ? mark on it).
hope it helps
NTD
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.