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
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
Post a Comment