View Full Version : Load Movie issues
diggy
November 10th, 2002, 01:21 AM
Ok I am having a serious forgetful spell...
Im am loading a movie into the main swf
The man question is how do i control button swf loaded into the main swf
how can it goto play the next frame on a load movie
andr.in
November 10th, 2002, 03:01 AM
hum... gotta make a tute about this or sumthin'... too many Qs about this..
ok I didn't fully understand!
Do you have a button inside your main movie with what you want to control the loaded on?
or
Do you have a button inside the loaded movie with what you want to control the loaded one (the same movie).
:pirate:
slayerment
November 10th, 2002, 03:29 AM
say u want to go to the place _root.clip1.clip2.gotoAndPlay(1);
on the swf being loaded in. what i would do is load it into a movie clip on the main timeline. then call the mc thats its being loaded into like "container". then to get to a certain path on that swf u would put like _root.container.clip1.clip2.gotoAndPlay(1);
make sense?
kdzines
November 10th, 2002, 05:00 PM
i am not 100% sure what you mean, but:
the bset advice i ever got was that when loading external movies, keep everything inside the loaded movie relative NOT absolute!
therefore never use the _root snytax inside an external file you want to load.
instead keep it realtive i.e. _parent.
so if you've got a button inside the child swf, and you want it to play a movieclip called bouncingBall which is within the child swf then:
[on the button]
on(press){
_parent.bouncingBall.gotoAndPlay();
}
Get it?
in more complex scripting, it is necessary to have_parent._parent etc.
if you know html, then try and think of it kinda like ../ (which takes out of the folder you are in.
the _parent takes you out 1 stage
play around with it. put a button inside a movieclip, inside another movieclip, and then try and get the button (which is two sublevels insde the main timeline) to trigger something on the main timeline. If you can get it work, then you're sorted!
good luck
JMOxx75
December 28th, 2004, 10:41 PM
I sort of understand this however I hope to elaborate on my situation a little to see if it is possible. (NOTE: I'm new at flash).
I have a Main Movie with a button that on release creates a mc container at a specific location and loads a swf movie in that container.
The child movie that was loaded in the main movies mc container is a list of links. What I need is for those links to refer back to the main movie so when clicked they will be able to create a mc container and load another swf in that container. I am trying to do this so I can have sub menus.
On the button for the child swf that was first loaded on the main movie I used the _parent thinking that it would refer me back to the main movie so it could create the mc container to load the other swf. This isn't working and I don't know if it is possible since I am new.
Any help would be appreciated my msn is m_jonathon@hotmail.com.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.