I everyone!
I'm new to tweenLite, but.. congrats, very usefull, very simple.
I am having a problem:
I have a box_mc, and inside it i have a btn_mc
I know thati cannot give action to box_mc directly, cause the actions inside will not work, So i give the action to a "animbox_mc" inside box_mc, like this:
//show the box with tweenLite
_root.box_mc_mc.animbox_mc.onRollOver = function() {
TweenLite.to(_root.box_mc, 0.5, {_x:0, ease:Expo.easeInOut});
}
It works great, but when i go and give the actions to the button like this:
//giving actions to the button inside box_mc
_root.box_mc.btn_mc.onRollOver = function() {
_root.box_mc.btn_mc.gotoAndStop(2);
}
it will mess up with the main box_mc (the box will return to it´s original position, the object flikrs, nothing works..
Only until i thought of this crazy idea, to include a tweenlite in the object action fucntion, like this:
//giving actions to the button inside box_mc
_root.box_mc.btn_mc.onRollOver = function() {
//i need to put another tween to the box_mc this time without time, because i dont want the box to move, but this way it works, even if it is a kind of odd way...
TweenLite.to(_root.box_mc, 0, {_x:0, ease:Expo.easeOut});
_root.box_mc.btn_mc.gotoAndStop(2);
}
any ideas?
thanks in advance
zed