I tried that but it did not work? This is my code
Anyone knows why?Code:
mySound = new Sound(mcSound);
mySound.start(300);
Printable View
I tried that but it did not work? This is my code
Anyone knows why?Code:
mySound = new Sound(mcSound);
mySound.start(300);
Hi carbon, Ok, when I do variable sounds in a flash timeline, I use the following code:
That should do it, your problem was that you left out the 's.attachSound("Soundtrack");' line. So basically, you had a variable set up to hold the sound, but you never actually put the sound in the variable. Well, I hope this has been helpful, post here again for any more advice.Code:s = new Sound();
//sets up variable "s" to hold a new sound
s.attachSound("Soundtrack");
//attaches the sound called "Soundtrack" to the variable "s"
s.start(0,100);
//starts "Soundtrack", which will start with a 0 second offset, for 100 loops. As with the example above, even if you do not use one of these variables, you must enter the value 0.
Trmbne2000