The renderer is passed into drawHighlightIndicator so you can introspect it
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Friday, June 06, 2008 6:37 PM To: [email protected] Subject: [flexcoders] Re: How to change the Width and Height of drawHighlightIndicator function? is it possible to retrieve the content information( width, height, x, y....) inside of renderer? Cheers --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "flexawesome" <[EMAIL PROTECTED]> wrote: > > pic is the picture in my itemRenderer, here is my itemRenderer for > the tilelist, this renderer will be used for other tilelist. > > So, I would like to get the image size dynamically in my customize > TileList, uses drawHighlightIndicator function to set the > highlighting 5 more pix height and width. > > does this make sence? :) > > > ====================== itemRenderer ================ > > <?xml version="1.0" encoding="utf-8"?> > <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> "> > <mx:Image source = "{data.img}"/> > </mx:Canvas> > > > > > > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <aharui@> wrote: > > > > What is pic? > > > > > > > > ________________________________ > > > > From: [email protected] <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > > Behalf Of flexawesome > > Sent: Friday, June 06, 2008 9:48 AM > > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] How to change the Width and Height of > > drawHighlightIndicator function? > > > > > > > > Hey, I was working on the customize renderer for the TileList. I > would > > like override the drawHighlightIndicator function to change the > size of > > highlighting. > > > > For example: my pic size was 40x60 and the renderer size was 50x80, > I > > was going to change the highlighting size to 45 x 65 ( adding 5pix > for > > Height and Width ). > > > > Do you know how to get the pic size? if so I could change the width > and > > height in the following code. > > > > http://www.privatepaste.com/1cqtF1O6bW <http://www.privatepaste.com/1cqtF1O6bW> > > <http://www.privatepaste.com/1cqtF1O6bW <http://www.privatepaste.com/1cqtF1O6bW> > > > > > Thank you > > >

