1 Reply Latest reply on Mar 11, 2011 10:13 AM by Flex harUI

    Adding child is costly or changing style is costly?

    saisri2k2 Level 4

      Hello Forum,


      I'm in a situation where I need to change the itemrender Icon depending on the data. I'm thinking to remove the icon and add another icon of differnt image depending on the data. Or should I just change the styleName ="XxX" ?


      I know changing style at run time is costly. But, I'm not sure if removing this and adding anothr one is costly or changing style.


      I even thought about doing linkbutton.icon = embedded asset (last option coz i dont want embeded things in code).