Taka Kojima wrote:
You will have to use localToGlobal, but first things first...

You are correct, selectedItem returns an Object, not a DisplayObject,
however I am pretty sure you can do

list.getChildAt(list.selectedIndex) to get the display object, and then go
from there.
That didn't seem to work - I don't think there's a direct relationship between the components that make up the list and the list elements themselves.

Thanks for the suggestion though Taka.

Paul
- Taka

On Mon, Jan 4, 2010 at 12:44 PM, Paul Andrews <[email protected]> wrote:

Cor wrote:

Not sure, but have you looked into : localToGlobal?


Yes, I did, but no luck. I will check again.

Paul

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Paul
Andrews
Sent: maandag 4 januari 2010 21:17
To: Flash Coders List
Subject: [Flashcoders] (x,y) position of selectedItem in a list - AS3

AS3:

Is it possible to find the (x,y) position on the stage of a selectedItem
in a list?

The selectedItem property returns an Object and I don't think it's
DisplayObject.

Any suggestions?

Paul
_______________________________________________

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to