Well, Accessing in resourceManager object in Flex mxml is easy. You might face difficult accessing it in the action script (.as) files of the project. The easy way to do that is by having a method in the mail mxml file like the following.
public function getRMInstance():IResourceManager
{
return resourceManager;
}
Now, in your action script file , you can access this method in the following way.
Application.application.getRMInstance().getString('$ResourceFileName',$String);
Hope this helps.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment