actionscript - How to control an flash nested movie clip instance with buttons situated in different movie clip (Action Script 2.0)? -
i working on action script 2.0 based flash file. trying control movieclip instance named "xyz" located in different object.
i used:
[code]_root.gotoandplay(4)[/code] now question how control flash nested movie clip instance buttons situated in different movie clip.
the code mentioned above takes me start/root of main animation. want deal particular movieclip.
i have assigned label movie clip "xyz", not find way call object , play/show particular frame.
help please.
say have mcchild nested inside mcparent, situated on main timeline. control mcchild main timeline (or _root), can following:
mcparent.mcchild.gotoandstop(3); in case, you'd need this:
parentinstancename.xyz.gotoandstop(2); //2 example, of course. but, work, need assign instance name movieclip contains xyz movieclip.
also, works multiple levels of nesting. e.g. mc1.mc2.mc3.gotoandstop(5);
Comments
Post a Comment