Loss style when overriding the function 'set data' for a TileList


hi!

in tilelist, set itemrenderer components override function set data in example:

but, doing this, i'm loosing built-in css behavior. onmouseover effect change backgroundcolor , hand pointer. try set programmatically without success.

an idea?

thank you


"flexbin" <webforumsuser@macromedia.com> wrote in message
news:gdaj4r$noj$1@forums.macromedia.com...
> hi!
>
> in tilelist, set itemrenderer components
> override
> function set data in example:
>
> but, doing this, i'm loosing built-in css behavior.
> onmouseover
> effect change backgroundcolor , hand pointer. try set
>
> programmatically without success.
>
> idea?
>
> thank
>
> public override function set data(value:object):void
> {
> var xml:xml = new xml(value);
>
> if(this.backgroundiconname != null &&
> this.ico != null &&
> this.labeltext != null) {
>
> if(xml.backgroundiconname != "") {
>
> this.backgroundiconname.source = "assets/" + xml.backgroundiconname;
> }
>
> this.backgroundiconname.visible = (xml.backgroundiconname != "");
>
> this.ico.source = "assets/" + xml.iconname;
> this.ico.width = number(xml.width);
> this.ico.height = number(xml.height);
>
> this.labeltext.text = resourcemanager.getstring('myresources',
> xml.label);
> }
>
> if(xml.@available == 'false')
> {
> this.enabled = false;
> }
> }


there examples of how implement kind of functionality
in itemrenderers here:
http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html
http://flexdiary.blogspot.com/2008/09/extended-datagrid-with-stylefunction.html




More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62