[thelist] Flash: Changing Layer Orders

Michael Efford michael at michaelefford.com.au
Mon Dec 16 09:00:01 CST 2002

----- Original Message -----
From: "Frank" <frank at frankmarion.com>
To: <thelist at lists.evolt.org>
Sent: Monday, December 16, 2002 7:07 PM
Subject: [thelist] Flash: Changing Layer Orders

> I've got a flash scene, where on one layer, there are some 18 buttons in
> close proximity to each other.
> When the button is hovered over, it grows in size by about 250%. But as it
> grows, the surrounding buttons overlap it.
> Can someone suggest how I could make the button that I'm hovering over
> "up" above the other buttons?
> If this were HTML/CSS, I would be asking how to change the z-index of a
> particular item.

Hi Frank,

Check out the MovieClip.swapDepths function in the Actionscript reference
that comes with Flash. It does exactly what you want.


m i c h a e l  e f f o r d
f r e e l a n c e  w e b  d e s i g n e r
email: michael at michaelefford.com.au
web: http://www.michaelefford.com.au

More information about the thelist mailing list