quote:
Originally posted by:
madmac66
okay so if I understand you now, there is some action embeded
in the LOADED SWF, that you want to control the MAIN TIMELINE.
Or do you want it to control ANOTHER SWF external to this
file?
To do the first, you have to learn about the internal
stacking order of Flash. Loaded SWFs load into a LEVEL, with
_level0 being the maiin root timeline. When you load an external
SWF you load it into a level number. So if you loaded a SWF into
Level 1 in your code, you would target it thus:
_level1.gotoAndPlay(1);
If you load a SWF into an MC it gets more confusing, but lets
start there for now.
Communicating with EXTERNAL SWFs in a web browser requires
setting up the localConnection() Class. Which again gets more
complex. Lets ignore that for now as I dont think it is what you
are after.
HTH
mm66
Im pretty sure it has to do with levels. I have tried
applying the
_level1.gotoAndStop.... tag, and tried it with _level0 as
well, and many different variations of scenes, etc, but I still can
not get it to perform the action on the main stage.
To reiterate, the button I am pressing is inside a movieclip.
I want it to load a .swf on the main stage (Scene1, frame 10).
Now the good news is, i tried making a button on my main
stage to perform the action that I want the button in the movieclip
to perform, and it worked. it very easily went to and stopped at
frame 10, and the .swf played (albeit without the pre-loader but I
think I can figure that out). So it means if I have to, I can
re-make the file and have the menu-tree system on the main canvas
(and not in a mc), though the tutorial recommended that it shouldnt
be done this way, and the timeline would be very cluttered...
so in the meantime I do beleive it is a level issue, i need
the action inside the movieclip (which is 1 level deep) to go to a
frame that is on the main/root canvas (scene 1, frame 10). I am not
sure of the script for this, but the script you recommended did not
do it. You mentioned I should read up on levels, do you have any
idea where. I am trying to find guides for it, but if you have any
recommendations that would be great.
Thank you very much for your advice. It didnt exactly work
(and that could very well be my fault) but it spurned my
realization in several other things. I appreciate forthcoming help
from you and anybody else. Thanks.