Your renderer is a Canvas. Give the mx:Image an id like id="img" then you should be able to use
itemRenderer.img.content.width. you'll probably need to do some casting to get the compiler to like it. ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Saturday, June 07, 2008 3:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to change the Width and Height of drawHighlightIndicator function? I was tring to retrieve them by itemRenderer.loaderInfo.width OR ( itemRenderer.loaderInfo.content.width. Both them did work property. is there any itemRenderer's property can be used? --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> wrote: > > The renderer is passed into drawHighlightIndicator so you can introspect > it > > > > ________________________________ > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of flexawesome > Sent: Friday, June 06, 2008 6:37 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > 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 flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <mailto:flexcoders% 40yahoogroups.com> > , "flexawesome" <flexawesome@> > 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> > <http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> > "> > > <mx:Image source = "{data.img}"/> > > </mx:Canvas> > > > > > > > > > > > > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <aharui@> wrote: > > > > > > What is pic? > > > > > > > > > > > > ________________________________ > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> ] On > > > Behalf Of flexawesome > > > Sent: Friday, June 06, 2008 9:48 AM > > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> <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> > > > > <http://www.privatepaste.com/1cqtF1O6bW <http://www.privatepaste.com/1cqtF1O6bW> > <http://www.privatepaste.com/1cqtF1O6bW <http://www.privatepaste.com/1cqtF1O6bW> > > > > > > > > Thank you > > > > > >