I have a list component in the main timeline of my movie and...
var tf:TextFormat = new TextFormat();
tf.color = xmlData.config.playList.@textColor;
StyleManager.setStyle("textFormat", tf);
the code above works fine but why doesn't this work?
StyleManager.setComponentStyle(List, "textFormat", tf);
The CellRenderer class is adapted.
CustomCellRenderer.as
You have first created a class named
CustomCellRenderer(File > New > ActionSript File).myFla.fla
If you want to apply your textFormat to the instance myList of the class List:
If you want to apply your textFormat to all the instances of the class List:
Adobe help about CellRenderer.