Where is the click event? Obviously you have access to it inside Thumbnail.mxml, so are you saying that if you put a click handler on the TileList how can you get the templateIdSel from the listItemRenderer? The itemClick event that gets fired provides a reference to the cell that was clicked, so you could then pull it off that way.
Matt -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sufibaba Sent: Wednesday, February 08, 2006 12:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tilelist event question Hi All, I have the following: -------------TilelistContainer.mxml ---------------------- (contains a tilelist with listItemRenderer = "Thumbnail" <mx:TileList dataProvider="{artSvc.GetLibraryTemplates.result}" width="100%" listItemRenderer="Thumbnail" columnWidth="200" height="50%" dragEnabled = "false" xmlns:mx="http://www.macromedia.com/2005/mxml" > ----------- Thumnail.mxml ------------------------------- <?xml version="1.0"?> <mx:VBox xmlns:mx="http://www.macromedia.com/2005/mxml" horizontalAlign="center" verticalGap="0" horizontalGap="0" borderStyle=".5" width="100" height="150"> <mx:Script> <![CDATA[ public var templateIdSel:Number; ]]> </mx:Script> <mx:Zoom id="zoomIn" zoomTo="1.2"/> <mx:Zoom id="zoomOut" zoomTo=".7"/> <mx:Label text="{dataObject.data.ID}.{dataObject.label}" textAlign="left" fontWeight="bold"/> <mx:Image id="image" x="{image.width/2}" y="{image.height/2}" horizontalAlign="center" source="http://xKc.seg2.net{dataObject.data.URL}" click="templateIdSel= dataObject.data.ID" scaleX=".7" scaleY=".7" mouseOverEffect="zoomIn" mouseOutEffect="zoomOut"/> </mx:VBox> ---------------------------------------- Question: when the user clicks on a thumnail, how does one get the templateIdSel. Any help on this is greatly appreciated, Cheers, Tim -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/