Hi Tracy

Thanks. Yes, I tried localToGlobal, however it's not really as helpful as I hoped it might be. It doesn't seem to work within an embedded module, for instance (it gives you the coordinates relative to the module container by the look).

I thought Flash would know the stage.x and y of everything and so there'd be some way to readily access this but I guess not...will I have to roll my own solution?

Guy

On 03/04/2009, at 12:39 PM, Tracy Spratt wrote:


You want the coordinate system methods like localToGlobal and globalToLocal. Look for “coordinate system” in the docs for a full explanation.



Tracy Spratt,

Lariat Services, development services available

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Guy Morton
Sent: Thursday, April 02, 2009 9:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Finding the stage xy of a nested object



Hello

I though this ought to be easy but can't figure out how to do it. I
have controls that are nested in layout containers and I want to find
their xy in stage coordinates. Their x and y values are relative to
their containers, so that doesn't give me what I want. There must be
an easy way to find their stage x and y...is there?

Guy




Reply via email to