Im loading 2 swfs into my main swf. So I have a top swf and a bottom swf being
loaded in externally into my main swf that makes 3 swfs, 1MAIN swf loading TOP
swf & BOTTOM swf.
Is there a way to have the bottom swf control or command the top swf? I need
a button on in the bottom swf to tell the top swf to load a movie.
Travis Newbury - 25 Jul 2008 13:26 GMT
On Jul 25, 7:40 am, "Funks Da Burn" <webforumsu...@macromedia.com>
wrote:
> Im loading 2 swfs into my main swf. So I have a top swf and a bottom swf being
> loaded in externally into my main swf that makes 3 swfs, 1MAIN swf loading TOP
> swf & BOTTOM swf.
> Is there a way to have the bottom swf control or command the top swf? I need
> a button on in the bottom swf to tell the top swf to load a movie.
What version of Flash are you using? you can directly speak to
different movies from any other movie. lets say you have these movies
added:
Clip1 Clip2
| |
Master--------Movie
MasterMovie can talk to clip 1 and clip2 using the "dot"
MasterMovie.Clip1.alpha=.5
MasterMovie.Clip2.alpha=.5
Clip 1 and 2 can talk to their parent
Clip 1.parent.alpha=.5;
Clip1 can talk to clip 2 through the parent
clip1.parent.clip2.alpha=.5;
--
Travis Newbury <http://travisnewbury.blogspot.com/> Flash Crap
Travis Newbury <http://travisnewbury.blogspot.com/> Flash Crap
Travis Newbury <http://travisnewbury.blogspot.com/> Flash Crap
Travis Newbury <http://travisnewbury.blogspot.com/> Flash Crap
rritchey - 25 Jul 2008 20:17 GMT
in AS2 you can point directly from one to the other with the correct pathing.
IE:
_level0.TopSwfLoader.content.FunctionToCall();
or
_level0.TopSwfLoader.content.Property = NewPropertyValue;
_level0 takes you to the main swf (_root, but this works around if lockroot is
set)
TopSwfLoader.content is the content of the Loader component that has your
Top.swf loaded into it. If you are not using a Loader component, then you can
change this to the instance name of the Movie Clip that has the swf loaded into
it.
FunctionToCall()/Property is what you want to control. Either a function call
or a property.
In AS3 this works a bit differently. I would dispatch a custom event from the
Bottom swf. Then the main swf would catch that event, and call the appropriate
function/property in the top swf. I can elaborate more on this if you need.