Re: [flexcoders] how can i get a columnIndex from an item in my TileList?

2008-12-04 Thread Aaron Hardy
Just a thought (though not an answer), it might be a better idea if within
your custom tooltip component you evaluated the space needed by your tooltip
compared to the space between your cursor and the side of the stage, then
move the tooltip accordingly.  That way you're taken care of regardless of
the position or size of your tilelist or the items inside the tilelist.
Hope that's relevant.

Aaron

On Wed, Dec 3, 2008 at 11:21 AM, blc187 [EMAIL PROTECTED] wrote:

   I have a TileList that displays images.
 I'd like to be able to mouseover one of the images and get the index
 of the column it's in.
 Is there any way to get a row or column index on MouseOver?

 For context, I am displaying a custom tooltip on mouseover and I'd
 like to be able to tell if I'm mousing over the last image in the row
 so that I can prevent my tooltip from displaying offscreen.

  



[flexcoders] how can i get a columnIndex from an item in my TileList?

2008-12-03 Thread blc187
I have a TileList that displays images.
I'd like to be able to mouseover one of the images and get the index 
of the column it's in.
Is there any way to get a row or column index on MouseOver?

For context, I am displaying a custom tooltip on mouseover and I'd 
like to be able to tell if I'm mousing over the last image in the row 
so that I can prevent my tooltip from displaying offscreen.



RE: [flexcoders] how can i get a columnIndex from an item in my TileList?

2008-12-03 Thread Alex Harui
Then you don't want the index, you just want to know position.  Using 
localToGlobal and globalToLocal will help you compute where the renderer is 
relative to the TileLIst.  You may also need to factor in viewmetrics.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of blc187
Sent: Wednesday, December 03, 2008 10:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how can i get a columnIndex from an item in my TileList?


I have a TileList that displays images.
I'd like to be able to mouseover one of the images and get the index
of the column it's in.
Is there any way to get a row or column index on MouseOver?

For context, I am displaying a custom tooltip on mouseover and I'd
like to be able to tell if I'm mousing over the last image in the row
so that I can prevent my tooltip from displaying offscreen.