all groups > flash actionscript > october 2005 >
You're in the

flash actionscript

group:

loadMovie Problems



loadMovie Problems Rincewind The Dumb
10/28/2005 8:37:15 PM
flash actionscript: Okay, I've been using Flash for a number of years but never got into loading
movies......until now.

I have an application that loads various external swf files to perform
functions.

Here is how I am loading them:

loadMovie("newMovie.swf", "_level1");

Once the movie has loaded, it allows users to view information and there are
links to other areas. When a link is clicked, I want to get out of the loaded
swf file and back onto the main Flash movie timeline. The trouble is, it's not
letting me and the loaded movie gets stuck in a loop.

I have four buttons that use the following code:

_level0._parent.gotoAndPlay(11);

But it won't play the main timeline.

I've also tried the following target paths:

_parent._partent
_level0._root
_parent._root.

But nothing wants to give.

Is what I'm doing impossible or just my bad code??
Re: loadMovie Problems kglad
10/29/2005 12:16:56 AM
bad code. first, to load into _level1 use:

loadMovieNum("newMovie.swf",1);

next, use:

_level0.gotoAndPlay(11)

Re: loadMovie Problems Rincewind The Dumb
10/31/2005 12:00:00 AM
Ah, got it. It would appear I need to add an "unloadMov" command to get rid of the movie to display the content on level0.

Doh!!

Re: loadMovie Problems kglad
10/31/2005 12:00:00 AM
Re: loadMovie Problems Rincewind The Dumb
10/31/2005 1:27:55 PM
Hmmmm, tried this yet it still repeats.

AddThis Social Bookmark Button