Hi, Just for the case someone else runs into this error:
During the usage of the StyleManager I´ve found a bug which I can reproduce all the time. It throws an Error, if it is not able to load a runtime-style.swf even if you implement the StyleEvent.ERROR handler. Steps to reproduce: 1. Load runtime stylesheet which doesn´t exists. _styleEventDispatcher = StyleManager.loadStyleDeclarations("notexisting.swf"); 2. Add error eventlistener. e.g. _styleEventDispatcher .addEventListener(StyleEvent.ERROR, onLoadFailed); 3. In onLoadFailed method remove event listener: _styleEventDispatcher .removeEventListener(StyleEvent.ERROR, onLoadFailed); Does anyone else got this error? I just checked the source code and I think I´ve found the bug. Because of the order of the added Module.Error event listener in StyleManager and StyleEventDispatcher the check for error handler isn ´t working. The StyleEvent.Error event is fired two times. One time from StyleEventDispatcher in method moduleInfo_errorHandler(event:ModuleEvent):void and the other time in StyleManager in the anonymous function errorHandler in line 842. Looks like two different guys were developing this classes - communication is everything ;-) I´ve added it to the bug base https://bugs.adobe.com/jira/browse/SDK-14699 cheers, Christoph