Hello together,
I played a little bit with tweenMax and im really impressed what it can do so far.
But I have little problem and I cant find a answer for it. I have build a navigation that works with a "onRollOver" function.
Inside that Navigation is a button to navigate. But when I rollover the button the navigation thinks this is a "onRollOut" and the navigation moves away.
Someone an idea to manage this?
Here you can find the Test.FLA to have a look at it.
And here is the script so far:
import com.greensock.*;
import com.greensock.easing.*;
OverwriteManager.init(1)
fadein = function () {
TweenMax.to(slider,1.5,{bezier:[{_x:"+72"}], orientToBezier:true, ease:Bounce.easeOut});
TweenMax.to(headline,1.5,{bezier:[{_x:"+72"}], orientToBezier:true, ease:Bounce.easeOut});
TweenMax.to(inhalt,1.5,{bezier:[{_x:"+72"}], orientToBezier:true, ease:Bounce.easeOut});
};
fadeout = function () {
TweenMax.fromTo(slider,0.5,{_x:85},{_x:13});
TweenMax.fromTo(headline,0.5,{_x:316},{_x:244});
TweenMax.fromTo(inhalt,0.5,{_x:509},{_x:437});
}
};
slider.onRollOver = fadein
slider.onRollOut = fadeout