header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
flexxx
Points:150
Posts:0

1/19/2011 10:22:29 PM

Title: Resource bundle


Hi all
I have a library project in which I am implementing resource bundles.I am trying to load resource swf at run time.
When I use this project in other project I am not able to load resource swf and getting following exception:

Unable to load resource module from locale/pt_Port/pt_Port_resource.swf?r=2613
atFunction/<anonymous>()[E:\dev\4.x\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:473]
atflash.events::EventDispatcher/dispatchEventFunction()
atflash.events::EventDispatcher/dispatchEvent()
atModuleInfoProxy/moduleEventHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1168]
atflash.events::EventDispatcher/dispatchEventFunction()
atflash.events::EventDispatcher/dispatchEvent()
atModuleInfo/errorHandler()[E:\dev\4.x\frameworks\projects\framework\src\mx\modules\ModuleManager.as:782]

I am using the following lines to load swf:

var evtDisp:IEventDispatcher = resourceManager.loadResourceModule("locale/" + selectedLanguage + "/" + selectedLanguage + "_resource.swf?r=" + getTimer());
evtDisp.addEventListener(Event.COMPLETE, completeResourceManagerEventListener);
evtDisp.addEventListener(IOErrorEvent.IO_ERROR, ioErrorLanguage);

The path constructed is right.
Is there any different way to use resource bundles with library projects or I am missing something.




Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions