PDA

View Full Version : loadmovie Loop?


soonerdm
04-13-2003, 01:39 PM
I have a simple audio player where you click play it goes to frame 2 and the code is
loadMovieNum("cr1.swf", 11);

So it plays a song for about a minute and then you can hear the song begin again while it is still playing. wait a bit and you hear it start again. so basically you have it playing over itself indefinatly. I checked the cr1.swf file and when played by itself (not loaded into the player) there is no looping.

Also I have a next button on the player and clicking it will take you to frame 3 where the command loadMovieNum("cr2.swf", 11); but the first song just keeps playing. I thought to maybe unloadmovie but I thought when you used the same level it just overwrote what was in the level.

CyanBlue
04-13-2003, 01:44 PM
Howdy and Welcome... :)

Do you have stop() function specified at the last frame of each sound SWF files??? I think you need it...

At the frame 3 of you movie, your cr2.swf file is not fully loaded, so you are hearing cr1.swf till then, I think...

I think you should take a look at Sound() object to have better control over your sound... Go to Macromedia site and search for the Sound object... There is a good technote for it... ;)

soonerdm
04-14-2003, 01:30 AM
Okay I dont know what I did but I just trashed the cr1.swf and made a new one and it worked.

I also changed it up a bit where it now loads a MovieClip and the movieclip loads thew song and has a preloader.

Check IT
player (http://www.mrgtulsa.com/player/player.html )