Apr 07 2008
Using Webservice classes in a “actionscript-only” Flex3 project
When using webservice classes in an "actionscript-only" Flex project, you have to make sure to include these lines of code before anything else in you class:
var resourceManagerImpl:Object = ApplicationDomain.currentDomain.getDefinition("mx.resources::ResourceManagerImpl"); Singleton.registerClass("mx.resources::IResourceManager", Class(resourceManagerImpl));
If you don't include this code you will get an error like this:
Error: No class registered for interface 'mx.resources::IResourceManager'. at mx.core::Singleton$/getInstance() at mx.resources::ResourceManager$/getInstance()
This is due to a bug in Flex3 compiler, read more info on this bug here: http://bugs.adobe.com/jira/browse/SDK-12205

Posts