Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / August 2005



Tip: Looking for answers? Try searching our database.

Button Z-Order

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
EZoolander - 31 Aug 2005 19:33 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.