PDA

View Full Version : can i not target the parent of a loaded mc?


ashzero
12-22-2005, 04:18 PM
i have a presentation i'm working on that loads swf's into a "loadplace" mc. now there's a button in the swf's that tell the parent to go to a certain frame, and it's not working.

presentation -> load swf. button in loaded swf, tells this._parent._parent gotoAndStop(11). the button is in the root timeline, so it just needs to go up 2 levels, no?

this._parent (button's timeline) ._parent (the main presentation).

i'm trying to get another .exe projector file to run on frame 11 of the main presentation using the .bat process. it should work if i can get this stupid thing to go to the damn frame 11.

sorry, just upset that something so SIMPLE doesn't ****ing work.

ashzero
12-22-2005, 04:23 PM
nm, i got it to work. i was loading the wrong swf (filename) :mad:

oldnewbie
12-22-2005, 04:26 PM
If I understand you correctly, one _parent should be enough...

_parent.gotoAndStop(11); // no this

But if it doesn't, try...

_level0.gotoAndStop(11);

I also suggest that you stop targeting frame numbers, and target labeled frames instead. Thus label frame 11 with an unique label such as my_target11, and target it on your button's script...

on(release){
_level0.gotoAndStop("my_target11");
// Or...
// _parent.gotoAndStop("my_target11");
}