Actionscript project that loads a Flex SWF, "Could not find resource bundle" Error when using Layout

Posted by Leeron on Stack Overflow See other posts from Stack Overflow or by Leeron
Published on 2010-03-18T16:00:56Z Indexed on 2010/03/18 16:01 UTC
Read the original article Hit count: 385

Filed under:
|
|

Hi guys. I'm using an actionsciprt only project (under FlashDevelop) to load an .swf flex file built by another department of the company I work for. Using the follwing code:

var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest('flexSWF.swf');
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);          
mLoader.load(mRequest); 

That worked fine until I wanted to use Flex's mx.managers.LayoutManager. I've added the this line to my class:

import mx.managers.ILayoutManagerClient;
import mx.managers.LayoutManager;

.
.
.

private var _layoutManager:LayoutManager;

And I get this run time error:

Error: Could not find resource bundle messaging at mx.resources::ResourceBundle$/getResourceBundle()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\resources\ResourceBundle.as:143] at mx.utils::Translator$cinit() at global$init() at mx.messaging.config::ServerConfig$cinit() at global$init() at _app_FlexInit$/init() at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3217] at mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3069]

commenting the LayoutManager line, the swf works fine. But I do want to use LayoutManager.

Any hints?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flex