This content has been marked as final. Show 6 replies
it entirely depends on the path that you were trying and the object loactions (of course) If you needed to call to the lowest level, sometimes that is necessary and the easiest way to reach the destination, instead of writing fifteen '_parent's in a row to go down the chain :)
also I prefer to use '_level0' to reach the lowest level as '_root' can be problematic in some situtations, and there's cautions against it.
they are real simple paths:
that works, but for a different clip I had to use:
And, all movie clips are on the root, but when I use the helper to find the target, DC1MC ends up with "this." which does not work, while the lampDS clips get this._parent and that works...
well hmm, I guess I'd have to ask:
if lampDS1, is an instance on the main timeline, then 'this._parent' is in reference to the main timeline, if the calling clip is also located there (main timeline)
could it be that the call for the instance DC1MC.play() was within an on Handler? in this case the 'this' within the handler function refers to the instance the function is operating on, and it may have taken an extra '_parent' to get 'out' of that scope, so to speak. IF it was made from within a handler function try (just for fun) this._parent._parent.DC1MC.play() and see what happens.
it was something about the movie clip the code was in that was causing it. I recreated the clip from scratch and it worked. Even tried copying and pasting frames from the old clip into the new clip it didnt work. guess the clip got corrupted somehow.
thanks for the help tho
The target button in the script window gets a little confused sometimes, it seams to not always be acurate if your not on frame 1 of the MovieClip
Also if you load a movie into an empty movieClip the timeline of the loaded movie replaces the empty movieClips timeline so sometimes you think you might need 2 _parents when in fact you only need 1.
Thats very interesting. Of course, a lot of this wouldnt happen if I would quit being a wuss and hand code it...