Flash function help
Out of context: Reply #4
- Started
- Last post
- 10 Responses
- koriner0
Well actually, _parent will access the timeline of the clip that is one level higher than where you're calling it from. If you want to call a function on the root level there's nothing wrong with using "_root.myfunction();"
And the reason that your function is affecting other objects is because your function is on the _root level, and you are applying Tweens to the "this" keyword, which will be referring to the entire root level.
If you want to target the specific clip, do something like this - just for an example this will change the X position:
onClipEvent (load) {
_root.mymotion(this, 100);
}//and the function:
function mymotion(clip, newxpos) {
clip._x = newxpos;
}p.s. it's not Flash's fault that you don't know how to code, so don't be too harsh.