This content has been marked as final. Show 6 replies
cast root as a movieclip.
I'm sure that is great advice, and I thank you very much for responding, but I'm new to AS 3.0, so I am unsure of how to cast root as a movieclip. How would I go about doing that? Would it be so simple as renaming the scene as root?
that should work. Sometimes you have to add or take away a .parent depending on what level the movie clip is at.
i want the old syntax back myself.
> i want the old syntax back myself.
Ehh, well ... heavy reliance on _root was never an especially good thing
By the same token, loathsome hatred of _root wasn't good either (my
opinion). It was (is) just a tool in the AS2 toolkit. In any cases, the
_root reference isn't necessary, given how scope works in AS2. Same goes
for AS3, though scope has changed for event handlers like the one shown.
Co-author, Foundation Flash CS3 for Designers
"Luck is the residue of good design."
Thank you very much. That helped a lot. I just can't seem to get used to the new syntax with AS3, but I'm sure it will be worth the effort in the end.
For anyone trying to find the answer to this problem, here is what it came out to be.
MovieClip(this) - We are talking about the current movie clip
.parent - Look up one level, to add more levels simply add more ".parent"
images - name of the movieclip you are looking for
gotoAndPlay("image1") - go to and play the specified point of "image1"
and you could have used: