The colour property of the Label in ActionScript is a uint
so you have to use this type
(only in MXML you can use colour codes like #000000)
and since you're binding a ActionScript property to the colour of your label you have to use the uint type
Also you have to set it back to the 'normal' colour when the condition is not meet in the case the itemRenderer will be reycled..
e.g.
override public function prepare(hasBeenRecycled:Boolean):void {
super.prepare( hasBeenRecycled );
if(data) {
if(data.shapeColor == "purple"){
myTextColour = 0x7a11f1;
} else {
myTextColour = 0x000000;
}
}
}
why your hole UI is not showing up, it can't be told without more code Your exemple is running fine when I try it just with the Grid component