Renderers in a list are hard to get to because they are transient. If you had enough of them and scrolled one off-screen and back again, it would be re-created or it could even use another old instance of a renderer for that same data item. That's because we only create renderers for the actual visible items to save on memory.
Because of that, they need to be totally data driven. They need to derive every aspect of their display from the .data property and anything else they can pull in from their environment. It is not a good practice to pass them stuff at run-time. So, you have to ask yourself why the width property needs to change. If it is because the icon itself is bigger, the renderer should examine its icon and set an appropriate width. If it is because of some style setting that changes at run-time, then you should invalidate the list and it will create all new renderers and those renderers should query the list for that style setting and set the width correctly. If it is because the icon portion is resizable by user gesture, then you need to store the width either in the collection or in a separate table that the renderers can query. -Alex ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of zul_se7en Sent: Thursday, February 01, 2007 11:27 PM To: [email protected] Subject: [flexcomponents] mx:SetProperty help i'm having trouble solving this problem. trying to change a property of tilelist(id=tl_pictures) item, which is in main.mxml, that has a itemrenderer from a different mxml file (thumbnail_pictures.mxml). <mx:SetProperty target="{___}" name="___" value="___"/> how do i change the image(id=img) width property in the thumbnail_pictures.mxml?
