View Full Version : Simple one on sound
Martha Tabram
11-28-2001, 05:57 AM
Wotcha, folks.
Simple one, this.
How do I play a sound from the library with actionscript ?
Much ta.
Martha.
first get the sound ready to use
open your library
right click on the sound
go to 'linkage' in the popup menu
select export this symbol
give the symbol a name (this is the name you will use in your as - i will use 'loop' - )
second start your script
//create your sound object
var mySound = new Sound(this);
//attach your sound object from the library
mySound.attachSound("loop");
//start your sound and loop it 1000 times
mySound.start(0,1000);
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.