swapDepths Problem

hey again,

its a similiar question to my previous post…it works fine so far but here is my prob.

  • i click to services page where code on that button has _root.menu_2.swapDepths(2);
  • on home button it has same code but swapDepths(1);
    -once clicked on the services i can only go to pages with higher depths so i can’t go back to home page :frowning:
  • i know the fix would lie somewhere in a if else if statement im pretty sure…

but if anyone knows of short way of writing this if statement or a similiar fix it would be appreciated :smiley:

thanks in advance!! :smiley: