Hi there! Hopefully someone can help me with this . . . it seems simple enough.
I have a movieclip that tweens when you roll over or out it, which in turn is supposed to call a function from another class which adjusts clips according to the first clip’s position.
For some reason I can’t get any function to call from inside the onMotionChanged function? It will trace fine, but will not execute any function (regardless of where it is declared). What am I doing wrong?
Here’s the roll out function:
private function menuRollOut() {
var thisObj = this;
var thisObj = thisObj._parent;
if (!thisObj.hitTest(_xmouse, _ymouse)) {
var menu_tween:Object = new Tween(thisObj, "_x", Regular.easeOut, thisObj._x, 0-thisObj._width+15, 0.5, true);
menu_tween.onMotionChanged = function() {
trace("tweening");
tweenFunc();
};
}
}