Hello there! First of all, I`d like to say thanks to those who made this therific as3 library, which makes things so easy. Because of the wide opportunities the basic tweeining can give (i`m beginner with AS3), I started to make web navigation, but, unfortunately, I faced one problem, where I need your help..
I can`t figure out how to make that after mouse click, the animation "freezes", so it would be easier for users to indicate in which section they are.
Here you can look at my work so far - http://megaswf.com/serve/92607/
I tried to apply MouseEvent.CLICK to portfolio button, but it doesn`t freeze. I assume it`s because ROLL_OUT event, but I need it anyway.
Any suggestions?
Code so far..
portfolio_btn.addEventListener(MouseEvent.CLICK, pClick);
function pClick(event:MouseEvent):void{
var homeLink:URLRequest = new URLRequest("#jquery");
navigateToURL(homeLink, "_self");
TweenMax.to(portfolio_mc, 0, {scaleY:10, ease:Bounce.easeOut, tint:0x0099CC});
}
portfolio_btn.addEventListener(MouseEvent.ROLL_OVER, manageMouseOver, false, 0, true);
function manageMouseOver(event:MouseEvent):void{
TweenMax.to(portfolio_mc, 0.5, {scaleY:10, ease:Bounce.easeOut, tint:0x0099CC});
TweenMax.to(seperator_mc, 0.5, {tint:0x0099CC});
TweenMax.to(dot_mc, 0.5, {tint:0x0099CC});
}
portfolio_btn.addEventListener(MouseEvent.ROLL_OUT, manageMouseOut, false, 0, true);
function manageMouseOut(event:MouseEvent):void{
TweenLite.to(portfolio_mc, 0.5, {scaleY:0,ease:Bounce.easeOut, removeTint:true});
TweenLite.to(seperator_mc, 0.5, {removeTint:true});
TweenMax.to(dot_mc, 0.5, {removeTint:true});
}