Hey, I have 4 mc, lying under each other. How can I do so that when I press a button3, mc3 will be shown on top? And if I press button1, mc1 will be on top.
Thanks,
fatnslow
Hey, I have 4 mc, lying under each other. How can I do so that when I press a button3, mc3 will be shown on top? And if I press button1, mc1 will be on top.
Thanks,
fatnslow
Check out the swapDepths tutorials on kirupa.com
:hr:
Oki, thanks.
Didnt know what it was named, so didnt get anything on search.
Yeah, it’s not totally intuitive, but it’s easy once you get it!
:thumb:
Ok, I never actually found the tutorial. But i found the swapDepth thingy in AS, so worked this out:
_root.profile_page.profile_btn.onRelease = function() {
_root.profile_page.swapDepths(5); //Didnt know what to set there, so just chose 5…
tellTarget (profile_page) {
gotoAndStop (“up”)
}
};
And it works, so when i press profile_btn the profile_page goes to the top and switches its “state”. But how can i get it to switch back to down state when one of the other buttons are pressed?
Thanks,
fatnslow
Not sure what you mean - do you mean the state of the button?
:hr:
and by the way:
:: Copyright KIRUPA 2024 //--