Hi -
I'm pretty new to Flash - so forgive me if I'm posting a lame question...
I've got a project I'm working on - that has numerous buttons on the stage -
all in close proximity to each other. When the user rolls over the button - it
grows. I need the active/rolled over button to become the foremost item - so
it isn't obscured by anything else. I'm figuring that's a Z-order issue. How
do I "bring to front" the rolled over button?
Thanks in advance,
E
juiceofthousandcows - 31 Aug 2005 20:03 GMT
This will only work in version 7.
on(rollOver)
{
this.swapDepths(this._parent.getNextHighestDepth());
}
FlashTastic - 31 Aug 2005 20:58 GMT
Take a look at the MovieClip.swapDepths() method in the Flash Documentation.
A simple solution might be to swap the buttons with a set depth... like
myButton.onRollover = function(){
this.swapDepths(15000);
}
Cheers,
FlashTastic