Ok, my fonts are embedded and I'm using TweenMax instead of TweenLite. Still nothing happens.
I'm setting the format for my text this way (maybe that's where the problem is):
ActionScript Code:
subMenuItemText.setTextFormat(setTextFormat()); // this is within a function
ActionScript Code:
private function setTextFormat():TextFormat {
var font:Font = new BoldFont();
var myFormat:TextFormat = new TextFormat();
myFormat.font = font.fontName;
myFormat.size = 10;
myFormat.color = 0x8b8b8b;
myFormat.align = TextFormatAlign.CENTER;
return myFormat;
}
Mouse over and mouse out events:
ActionScript Code:
private function subMenuItemOver(evt:MouseEvent):void {
TweenMax.to(evt.target.getChildAt(0), 1, {tint:0x9ca26e});
TweenMax.to(evt.target.getChildAt(1), 1, {tint:0xffffff});
}
private function subMenuItemOut(evt:MouseEvent):void {
TweenMax.to(evt.target.getChildAt(0), 1, {removeTint:true});
TweenMax.to(evt.target.getChildAt(1), 1, {removeTint:true});
}
Like I said, the submenu is a Sprite with two children, one is the background and the other is a TextField.