;

PDA

Click to See Complete Forum and Search --> : Playing music - problem


dniezby
11-22-2006, 10:59 PM
I put this code into my first frame:

mySound = new Sound(); // Create new sound variable
mySound.loadSound("come.mp3",true); // Load the sound
mySound.start(); // Begin playing the loaded sound
mySound.setVolume(50); // Set the volume level at 50

But for some reason, the sound only plays a 2nd or two then loops back making is sound as if the sound is skipping.

Any thoughts? (I've checked the file. It works fine. 3 min long)

tmoore935
11-22-2006, 11:22 PM
Can you post the fun file. Sounds like the swf is looping. (a guess). Thats why I use movie clips myself. Looping means that the frames are looping and keep repeating the frame were the music starts over and over. A stop(); action on the last frame should help.

dniezby
11-23-2006, 10:30 AM
OMG! I didn't even think of that. I forgot that I was just building the site in one frame to get the graphical elements into place. LOL..