Quick Tip -Type Coercion failed: cannot convert mx.managers::BrowserManagerImpl to mx.managers.IBrowserManager
OKay. This is a real quick post. You may find this error (or error of similar nature) occurring when you try loading a Flex application in another Flex application.
e.g. TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::BrowserManagerImpl@2ee8581 to mx.managers.IBrowserManager.
FIX: Import the class to which the compiler is trying to cast to in the parent application. In this case
import mx.managers.IBrowserManager;
private var bm:IBrowserManager;
Hope this will save some of your time.
Recent Comments