Groups | Blog | Home
all groups > flash actionscript > july 2006 >

flash actionscript : loadMovie works afterwards



Mike Eazy
7/9/2006 11:05:25 PM
ok so I loaded 2 swf files into 2 different movies, mc1 + mc2, and when mc1
finished loading i told mc2 to unload, and when the next button is clicked mc1
suppose to unload and mc2 suppose to load the movie and play the song, mc1
unloads fine, and i think mc2 loads fine but the song doesnt start, the song
only plays when i hit the pause or stop button and hit play. So basically the
mc2.loadMovie doesnt play the movie immediately like it suppose to. In the swf
file called song2, the song is set to start when loaded. Any ideas?
JBOY_PLUS
7/10/2006 4:30:47 PM
Hmm... perhaps u should try the MovieClipLoader instead, it has better control
of ur loading process...

Tjeck out this tut:
http://www.actionscript.org/tutorials/intermediate/MovieClipLoader_in_Flash_MX_2
004/index.shtml
kglad
7/11/2006 4:46:09 AM
if you're using mySound.start(), that code must be in song2.swf. if that code
is in song2.swf, you probably are instantiating your sound object using:



mySound=new Sound();

// which should be changed to:

mySound=new Sound(this);
Mike Eazy
7/11/2006 4:50:12 PM
AddThis Social Bookmark Button