Problem with swapdepth on buttons
Here is the situation. I am attempting to make a simple web navigation bar. I have two buttons that are overlapping each other. On the rollover I want the button that is in the back to be brought to the front. this is the script I have.
on(rollOver)
{
tips_btn.swapDepths(home_btn.getDepth() + 1);
}
I have used trace to see what level they are on before and after but the numbers never change. Both always stay at the same level. This should be something simple and I am probably just overlooking something. Any help would be greatly appreciated, thanks in advance.