Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : loadmovie


sdlafhspiufb
3/16/2004 8:00:05 PM
I'm trying to split up a movie that was deemed to large for web deployment, I
love how these specs come up after the project is finished (even though I
warned them many times that this movie was swelling up...).

Anyway, I've got navigation buttons and sound objects on the timeline, etc...

I have successfully split the movie in two, and have a loadmovie action on the
last frame of the first movie that loads the second. All that works. I'm in
search of a way to load my second movie as the first one plays, so the movie
plays seamlessly as one long movie, without the second movie commencing to play
when it's loaded, I'm loading it straight to _root instead of an empty clip so
my nav buttons persist and work correctly.

Any help would be sublime...

Robtown
Head Custodian
Robtown Productions Inc.

verbalgsx
3/16/2004 9:35:23 PM
you're going to have a very hard time doing that if you're loading to root,
essentially you want to make movie 1 the preloader for movie 2 so that by the
time movie 1 has finished movie2 has fully loaded and can start playing. You
really need to load movie 2 into a placeholder movie and stop using _root, its
a bad idea as you have found :)
sdlafhspiufb
3/16/2004 9:51:31 PM
Yes, I see that. I was being lazy and trying to avoid having to change my variables and targets in the second movie to be loaded, looks like I can't avoid it...

Ed Massey
3/17/2004 2:54:00 AM
You can always use _lockroot but this is only available for .swf published
in flashplayer7.
If you use 'this._lockroot = true;' in the 2nd (child) .swf its _root
remains the same as if run by itself, once loaded into the parent(1st)
movie. To call the parent movie's _root, you could try _level0.blahblah but
I haven't tried this whilst using _lockroot.



[quoted text, click to view]
variables and targets in the second movie to be loaded, looks like I can't
avoid it...
[quoted text, click to view]

AddThis Social Bookmark Button