Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LoadMovie Help

0 views
Skip to first unread message

SL

unread,
Nov 5, 2002, 8:43:44 PM11/5/02
to
Hello,

I think this is a really simple question but it has been bothering me for a
while.

In my main movie I call this:
loadMovie("flash/intro.swf?nocache="+getTimer(), "cont");
which loads a movie into an empty movie clip called cont. This works great!

When the movie intro.swf is finished it calls this command to reload the
movie.
(I want another movie to load but am using the same movie for test
purposes).
_parent.loadMovie("flash/intro.swf?nocache="+getTimer(), "cont");

The movie loads fine the second time except it loads on top of everything in
my
main movie. In other words the toolbar and controls for the main movie and
covered
with empty black space, so all I see is intro.swf. This doesn't happen
when I call intro.swf initially.

Can anyone help with this?

Thanks,

--SL


Byron Canfield

unread,
Nov 5, 2002, 11:07:40 PM11/5/02
to
The first one, you are using loadMovie as a function, supplying it with a second
parameter that represents the target movie clip.

In the second one, you're using loadMovie as a method, loading to the _parent
timeline, which causes the second parameter to be ignored.

In other words, you're not loading it to the same place the second time.

--

Byron "Barn" Canfield
Lead Flash Developer
Headsprout Beginning Reading
http://www.headsprout.com


"SL" <S...@the10thfloor.com> wrote in message
news:aq9s3v$qah$1...@forums.macromedia.com...

SL

unread,
Nov 7, 2002, 5:25:45 PM11/7/02
to
I consider this and tried _parent.cont.loadMovie("flash/intro.swf") and
_root.cont.loadMovie("flash/intro.swf") but these didn't work either.

Could you help me out with the correct syntax?

Thanks for your reply,

--SL


"Byron Canfield" <byronc@_NO_SPAM_byronc.com> wrote in message
news:aqa4im$6fv$1...@forums.macromedia.com...

Byron Canfield

unread,
Nov 7, 2002, 6:35:54 PM11/7/02
to
I cannot unless you tell me where (pathwise) the instance named "cont" is in
relation to the timeline from which the loadMovie() command is issued.

--

Byron "Barn" Canfield
http://www.headsprout.com
Flash examples: http://www.canfieldstudios.com/flash5
[I do not respond to private emails regarding issues for which the
appropriate venue is this newsgroup, nor do I reply to posts by email.]


"SL" <S...@the10thfloor.com> wrote in message

news:aqep99$8fn$1...@forums.macromedia.com...

SL

unread,
Nov 7, 2002, 7:33:28 PM11/7/02
to
Ok,

I have this:

In shell.swf(Main Movie Clip) in layer "container" is the empty movie clip
with instance name "cont". When shell.swf loads it calls


loadMovie("flash/intro.swf?nocache="+getTimer(), "cont") which loads

intro.swf into this empty movie clip. Next I would like for intro.swf to
unload itself and load a different movieclip or even itself back into the
movieclip labeled "cont".

Hope this is clearer.

Thanks again,

--SL

"Byron Canfield" <barnN...@byronc.com> wrote in message
news:aqetag$dta$1...@forums.macromedia.com...

Byron Canfield

unread,
Nov 8, 2002, 12:03:17 AM11/8/02
to
Why would you have a movie load itself back into the same timeline? That doesn't
make sense to me.

And you don't need to unload the current movie before loading another into the
same timeline. And you SHOULD NOT do so if the command is coming from the
timeline that is also the load target.

--

Byron "Barn" Canfield
Lead Flash Developer
Headsprout Beginning Reading
http://www.headsprout.com


"SL" <S...@the10thfloor.com> wrote in message

news:aqf0oq$i9c$1...@forums.macromedia.com...

SL

unread,
Nov 10, 2002, 11:05:07 AM11/10/02
to
Hello,

Perhaps a better explanation would be in order.

Intro.swf is a small movie which includes a slideshow of different pictures.
It is located in the movie clip instance cont. Once it is done. I would
like it to load logo.swf(reload was only to test) into the same movie clip
instance. The problem was though it did load logo.swf, logo.swf took over
the whole screen.

Is this better,

I am sorry to waste your time on what should be a simple question.

Thanks,

SL

PS. I realize the unload isn't necessary. I just thought it would make my
explanation clearer. (Guess not.)

"Byron Canfield" <byronc@_NO_SPAM_byronc.com> wrote in message

news:aqfgon$6du$1...@forums.macromedia.com...

Byron Canfield

unread,
Nov 10, 2002, 12:23:36 PM11/10/02
to
Then, if the command is issued from within the clip "cont", simply:

this.loadMovie("logo.swf")

--

Byron "Barn" Canfield
Lead Flash Developer
Headsprout Beginning Reading
http://www.headsprout.com


"SL" <S...@the10thfloor.com> wrote in message

news:aqm02j$ied$1...@forums.macromedia.com...

SL

unread,
Nov 12, 2002, 6:17:57 PM11/12/02
to
My problem has now been resolved,

Thank you.

"Byron Canfield" <byronc@_NO_SPAM_byronc.com> wrote in message

news:aqm5ib$p5d$1...@forums.macromedia.com...

0 new messages