Mega Code Archive
Class selector names must start with a period when using getStyleDeclaration()
.myFontStyle {
fontSize: 15;
color: #9933FF;
}
public function changeStyles(e:Event):void {
StyleManager.getStyleDeclaration('.myFontStyle').setStyle('color',0x0000CC);
}