PDA

View Full Version : sound from internal library



GrndMasterFlash
September 19th, 2007, 10:30 AM
im trying to make a self contained game, sound and all i want people to just be able to play it by opening the swf, and not need any other files such as .as imports and sound files.
every thing i have read so far about sound in AS3 requires an external package that extends the sound class or have the sound file be loaded externally. so what i need to know is....

how the heck do you play a sound from the library plain and simple without using external files!

GrndMasterFlash
September 20th, 2007, 01:02 PM
the awnser is so simple, ahh why did everything i read not explain it

var ur_sound:Sound = new musicfromlibrary();
ur_sound.play(0 , 0);

gezz, i can't belive it took me so long to find a decent example:be: