/ Published in: ActionScript 3
A simple way to play sounds that are exported from your library
Expand |
Embed | Plain Text
// this is the clip you export from your library private var sndRollover:Rollover = new Rollover; // define a sound channel to play it in private var sndChannel:SoundChannel = new SoundChannel (); public function playSound (soundName:Object):void { sndChannel = soundName.play (0, 1); } // just call playSound and the name of the sound you defined at the top // playSound (sndRollover);
You need to login to post a comment.
