Mega Code Archive
Class selector names must start with a period when you access them with the getStyleDeclaration() method
.myFontStyle {
fontSize: 15;
color: #9933FF;
}
public function changeStyles(e:Event):void {
styleManager.getStyleDeclaration(".myFontStyle").setStyle("color",0x3399CC);
}