Hi,
The following code is nice which hovers on my buttons when it is moved to the corresponding button. But got problem that I am not able to click the button behind Hover_mc. I am in a strange position now. The Hover_mc has transparency set to 25% so that the button behind can be seen.
The following is the code to move Hover_mc to the corresponding buttons:
import com.greensock.*;
import com.greensock.easing.*;
Hover_mc.buttonMode =true;
Home.addEventListener(MouseEvent.MOUSE_OVER, HoverMethod);
Projects.addEventListener(MouseEvent.MOUSE_OVER, HoverMethod);
function HoverMethod(me:MouseEvent):void{
TweenLite.to(Hover_mc, .5,{x:me.currentTarget.x, y:me.currentTarget.y, width:me.currentTarget.width, height:me.currentTarget.height});
}
It looks very nice when the Hover_mc button moves onto the buttons, but the code written for the “Home_mc” button doesn’t work because the Hover_mc covers it.
What is the solution for this strange problem. I want to use “Hover_mc” since it looks nice.
Thanks in advance for any help.