On 7/5/05, ROUSSELIE David ROSI/SIFAC <[EMAIL PROTECTED]> wrote: > How to create an itemRenderer class that set scaleX and scaleY to the > selected item in the list ?
In the setValue function of your cell renderer, you can query for the item index and compare with the selected item's index and set the scale values accordingly. <mx:VBox xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*"> <mx:Label id="lbl" /> <mx:Script> var listOwner : MovieClip; var getCellIndex : Function; function setValue(str, item, sel) { lbl.text = str; if (getCellIndex().itemIndex == listOwner.selectedIndex) lbl.text = "foo"; } </mx:Script> </mx:VBox> This cell renderer sets the display to "foo" for the selected item. > 2) I use a TileList to display a variable list without scrolling so I update > itemWidth and itemHeight when adding or removing items from that list. How > can I apply a resize effect to those items ? I have made a custom > cellRenderer inherited from a VBox but resizeEffect="Resize" does nothing. Not sure. :-/ (Haven't experimented with this.) -- 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/

