Hi,
I have to load compiled css (swf) inside an application, when I load it like;
1. styleManager.loadStyleDeclarations('/demo/test.swf') - Works
2. styleManager.loadStyleDeclarations('http://ec202.classicinformatics.com/demo/test.swf') - Not Works
[not a loadable content]
What I need it I have a server for storing all styles, themes etc that I want to use for all application on any server.
Thanks,
Premkant
I have crossdomain.xml already on server thats why I can load all other assets, only problem with style.swf.
Here is error I am getting
VerifyError: Error #1014: Class mx.modules::ModuleBase could not be found.
at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/deferredNextFrame()[E:\dev\4.5.1\framework s\projects\framework\src\mx\core\FlexModuleFactory.as:730]
at mx.core::FlexModuleFactory/update()[E:\dev\4.5.1\frameworks\projects\ framework\src\mx\core\FlexModuleFactory.as:503]
at mx.core::FlexModuleFactory/moduleCompleteHandler()[E:\dev\4.5.1\frame works\projects\framework\src\mx\core\FlexModuleFactory.as:828]
Here is how I am loading
var dis:IEventDispatcher = styleManager.loadStyleDeclarations('http://ec202.classicinformatics.com/demo/test.swf',true,false,
ApplicationDomain.currentDomain,SecurityDomain.cu rrentDomain);
dis.addEventListener(StyleEvent.COMPLETE,styleCom plete);
dis.addEventListener(StyleEvent.ERROR,styleError) ;
dis.addEventListener(StyleEvent.PROGRESS,stylePro gress);
That looks right. Does http://e202.classicinformatics.com/crossdomain.xml permit the domain you are running from?
This is not problem of different server but whenever I do use absolute path either on same server or different server same error.
Way 1:
var dis:IEventDispatcher = styleManager.loadStyleDeclarations('http://ec202.classicinformatics.com/demo/test.swf',true,false,
ApplicationDomain.currentDomain,SecurityDomain.cu rrentDomain);
Never works;
Way 2:
var dis:IEventDispatcher = styleManager.loadStyleDeclarations('/demo/test.swf',true,false,
ApplicationDomain.currentDomain,SecurityDomain.cu rrentDomain);
Always work fine.
Note: test.swf working fine if I use like way 2 but not if use like way 1 no matter on same server or different server.
Thanks a ton
North America
Europe, Middle East and Africa
Asia Pacific