Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

targeting nested mc under a mask

Status
Not open for further replies.

waterox

Programmer
Jul 2, 2006
9
0
0
GB
targeting nested mc under a mask
I managed to get a movie to load into my container mc under a mask.
I load an external menu (from the mask's timeline) to under the mask with no problem (please note this a 'graphic' mask and not something that can be dynamically scripted)

However this appears only to work on the same timeline.

As soon as I try to target that mc from within a nested mc (my menu) then nothing happens!

Isnt there some way to target an mc from another mc using _root or _parent or even some cleverness with levels or depth?

Dynamically creating the mc wasnt working because I need the levels of :

mask
-menu
-content

to be retained.

Please help!!
 
_root or _level0 should work...

_root.mymc.gotoAndStop(10);

_level0.mymc.gotoAndPlay("frame_label");

If you're in to relative paths (which you should...), _parent should also work fine... But you may need more than one, if your menu is made out of several nested mcs...

_parent.mymc.gotoAndStop(10);

_parent._parent.mymc.gotoAndPlay("frame_label");

Regards. Web Hosting - Web Design
03/13/05 -> OLDNEWBIE VS FLASHKIT
 
Under a mask this works

on (release) {
loadMovie("info.swf", holder1);}

these do not

on (release) {
_root.stageflipin.mainwindow.windowmask.loadMovie("clientlist.swf", holder1);}

on (release) {
_parent.loadMovie("clientlist.swf", holder1);}

If I use _parent._parent.loadMovie("clientlist.swf", holder1);}
the movie loads above the mask. Which is no good.

Basically I cant seem to target holder1 from anywhere but the main timeline

I could use levels BUT I need to have

mask
menu
holder1 (content)

If I load to a level under the mask it will just hide the menu, no?
 
Yes it does, Thanks!!
I guess my as syntax sucks :p


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top