Mega Code Archive
Using Embedded gif image with StyleManager
[Embed("a.gif")]
public var os:Class;
[Embed("a.gif")]
public var ds:Class;
[Embed("a.gif")]
public var us:Class;
private function init():void {
styleManager.getStyleDeclaration("mx.controls.Button").setStyle("upSkin", us);
styleManager.getStyleDeclaration("mx.controls.Button").setStyle("overSkin", os);
styleManager.getStyleDeclaration("mx.controls.Button").setStyle("downSkin", ds);
}