getInstanceAtDepth for position?

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Post Reply
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

getInstanceAtDepth for position?

Post by Jonah Bron »

Hello, world!

In my latest flash thing, I need to check if there are any objects at any given position. It's coded now to loop through all objects and check _x and _y, but I know that is pretty inefficient. Can you just retrieve an object at a certain position?

User avatar
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: getInstanceAtDepth for position?

Post by Jade »

Did you know there's a getDepth() property?
Post Reply