Mega Code Archive
Load three style SWF files, but does not apply them until the third one is loaded
import mx.events.StyleEvent;
public function init():void {
styleManager.loadStyleDeclarations("../assets/ButtonStyles.swf", false);
var myEvent:IEventDispatcher = styleManager.loadStyleDeclarations("../assets/LabelStyles.swf", false);
myEvent.addEventListener(StyleEvent.COMPLETE, doUpdate);
}
public function doUpdate(event:StyleEvent):void {
styleManager.loadStyleDeclarations("../assets/ACBStyles.swf", true);
}