I have 4 tab btns and what i want is when one is pressed it jumps in front of the other 3. I am using a simple goto frame script right now. But when I place the btn on the timeline in front of another nothing seems to work right. Does it have to do with levels? Any ideas?
Test Link It is the component on the right side of the page
Code:
stop();
btn_registry.addEventListener(MouseEvent.CLICK, buttonNavClick1);
function buttonNavClick1(event:MouseEvent):void{
gotoAndStop("registry");
};
btn_inursery.addEventListener(MouseEvent.CLICK, buttonNavClick2);
function buttonNavClick2(event:MouseEvent):void{
gotoAndStop("inursery");
};
btn_sales.addEventListener(MouseEvent.CLICK, buttonNavClick3);
function buttonNavClick3(event:MouseEvent):void{
gotoAndStop("sales");
};
btn_news.addEventListener(MouseEvent.CLICK, buttonNavClick4);
function buttonNavClick4(event:MouseEvent):void{
gotoAndStop("news");
};