>
> > 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.

An itemRenderer is different from a cellRenderer (both property can be set in a 
TileSet for example). If I have understand the itemRenderer goal, it call the 
correct cellRenderer depending from the state of the item (cf 
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/SelectableItem.html
 is the default itemRenderer).

>
> > 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







***********************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont 
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration. Le Groupe France 
Telecom decline toute responsabilite au titre de ce message s'il a ete altere, 
deforme ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire 
immediatement et d'avertir l'expediteur.
***********************************
This message and any attachments (the "message") are confidential and intended 
solely for the addressees. Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. France Telecom Group shall not be 
liable for the message if altered, changed or falsified.
If you are not receiver of this message, please cancel it immediately and 
inform the sender.
***********************************


--
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/
 


Reply via email to