Flex :: AIR Application Not Finding Locale Properties File?

Feb 11, 2011

I have the problem that when I use a component from an existing Flex Library in my AIR project, the values that should be loaded from the appropriate locale .properties file are not loaded. The values are always null.

I am using Eclipse and have created an AIR project that refers to the existing Flex Library (of which I have the source code). When I use a component from that library it calls the following code:

var _resourceManager:IResourceManager = ResourceManager.getInstance();
var res:String = resourceManager.getString('resources', str, params);

"str" and "params" have valid values but res is always null.The properties file is located within the assets directory of the Flex library. I am deducing that the properties file is not being loaded (for some reason). This Flex library works for other Flex projects so it has to be something about the way my project is set up.

I have my compiler settings set to: -locale en_US Is there something special that AIR projects need to do to ensure that they can refer to properties files?

View 1 Replies


Similar Posts:


Get Os Locale From Flex 4 Application?

Nov 15, 2011

Does anyone know how I can get operating system locale name from my flex 4 application? I'm just interested in any information about locale.Is it possible?

View 2 Replies

Include Properties File Or Config File In Flex Application?

May 21, 2011

I have a flex application which contains different feature that includes google maps, twitter, facebook etc.

Currently I have hardcoded api keys in the code it self but I want to use a properties file/config file where I can put such things and use anywhere I want in the application.

Is it possible to achieve this in flex? I am using swiz framework. Is it possible to achieve this using this framework?

View 3 Replies

Flex - Get Settings/properties Into A Flex/FlashBuilder Application?

Feb 28, 2012

I have a Flash Builder application which uses URLs within its code and I want to be able to change these URL values without having to recompile my application, i.e. I want to have a plain text file I can edit which is used to populate these URL values when the application begins. I've worked out what feels like a kludge to do this with ResourceBundles, but maybe there's a better or more straightforward way to go about this.

[Code]...

View 3 Replies

ActionScript 3.0 :: File Loading Dependent On Locale

Jul 21, 2011

how i can develop my AS3 code from a previous project, here is the code: -

ActionScript Code:
stop();
import flash.events.MouseEvent;
import flash.filters.GlowFilter;

[Code].....

What i would like to do is load a file depending on the locale, for example if the locale is 'en' load ENGdoc1.exe or if it is 'fr' load FRAdoc1.exe.

View 0 Replies

Flex :: Gui - Switch Between Different Applications(mxml File With Application As The Root Tag) In A Big Application?

May 16, 2010

I'm new to flex. Now I'm writing an flex application. I plan to split my application into some MXML files(Application as the root tag). How can I switch from one mxml to another?BTW, what is the best practice for design large flex application? Just one MXML Application and many MXML component or many MXML Application?

View 1 Replies

Flex :: Install A New Locale In SDK?

Jul 12, 2010

I have a flex application being developed in Spanish, and I'd like to build it using a Spanish locale. However, the only locales installed in my SDK are en_US and ja_JP. Is there a site or resource where I can get other sets of locale files?

View 2 Replies

Flex :: Locale Does Not Get Change In TitleWindow?

Mar 17, 2011

I have some labels in a title window in my application. When i change locale it gets changed but labels in the titleWindow do not change. When I check the locale chain using resourceManager.localeChain it returns the array of locales and newly selected locale is on the zero index of it

View 1 Replies

Flex :: Set Conditional Locale Strings

Oct 21, 2011

I'm trying to localize my Flex app, I have been able to setup the locale specifics and all the stuff inside MXML tags, that works pretty well, my question is, what about if I have for example:

[Code]....

How can I change with ActionScript those two strings to an other locale?

View 1 Replies

Flex :: Locale Nl_NL In My Compiler Options?

Nov 15, 2009

I have to change the "Yes" and "No" buttons in an Alert.show(..), to another language (Dutch, for instance).
Is there a (easy) way to do that?

I forgot to mention - I have a -locale nl_NL in my compiler options, but it is still Yes/No

View 1 Replies

Flex :: Automatically Format Dates According To Locale In 4?

Sep 30, 2010

I understand that one can use local-specific ResourceBundles in combination with DateFormatters to format dates according to locale. However this is a manual process - is there an automatic way to do this or to set a default for the application?

In Java for example, all your dates will automatically appear in dd/mm/yy or mm/dd/yy format simply by setting the locale. In Flex, a default date output will always be in US format unless manually formatted otherwise. I'm looking for a way to get closer to the Java functionality.

View 3 Replies

Flex :: New Locale In Flash Builder (czech)?

Apr 18, 2011

is any site where can i get sdk locale files for flash builder? i need czech locale

View 1 Replies

Flex :: ArrayCollection Sort By Czech Locale

Apr 29, 2011

how can i sort String field in ArrayCollection by czech locale... a á b c č d ď e é ě f g h ch i í .....

alike as Collator("cs-CZ", CollatorMode.MATCHING); for Array

View 1 Replies

Actionscript 3 :: Getting User's Locale In Adobe Flex?

Aug 6, 2011

I am working on an AIR desktop application, and am trying to get the user's locale string. I basically need to know whether the user's locale is English or French. Capabilities.language doesn't seem to work for me, as it only displays the OS's UI language.

How can I get the user's current locale?

Once determined, I intend to set it to resourceManager.localeChain, so that the appropriate 'properties' files are used to display my UI literals.

View 2 Replies

Actionscript 3 :: Flex : Unable To Open 'locale/en_US'

Jun 22, 2009

Using Flex Builder : I have created a new Actionscript Project. I want to use mx.controls.Button class in it, so I did the following :

Added '-locale=en_US -source-path=locale/{locale}' to the Actionscript compiler arguments Added 'framework.swc' to the library path

But now I get this error: unable to open 'locale/en_US' I looked up and I do have the following directory inside my Flex Builder 3 installation:

./sdks/3.0.0/frameworks/locale/en_US

View 4 Replies

Flex :: Force A ComboBox's LabelFunction To Be Called For The Selected Item When Locale Changes?

Sep 3, 2009

I have a ComboBox with a label function like this one:

private function fieldLabelFunction(item:Object):String {
return resourceManager.getString('dashboard',"SS." + item);
}

When I change locales, the labels display correctly in the ComboBox's dropdown list, or if I change a selection. However, the currently selected item's label doesn't refresh at first. Is there a way to force the labelFunction to get called again?

View 1 Replies

ActionScript 2.0 :: Finding The Window / Application Size?

Jan 19, 2009

I have a flash app that is 1000 wide 800 height.When i open it in a webpage or full screen it things obviously get bigger but also i see more to the left and right of the screen and up and down.

Is there a way to find out the new size? as i want things to float to the very edge of the screen so i can perform a wrap around function making them appear on the other side of the screen.

View 0 Replies

Java :: Load A .properties File From A Client Using Adobe Flex?

Feb 28, 2011

Is it possible to load a .properties file from a client computer using adobe flex? I have a flex app that needs to access a server and multiple URLs but the URLs may change frequently. So I think modifying and loading the URLs from a .properties file would be the easiest way update the URLs

I was able to use florians suggestion and I've added the code below if anyone else is interested. I used the example here URLLoader.

public function URLLoaderDataFormatExample(event:Event):void
{
var request:URLRequest = new URLRequest("file:///c:/temp/prop.properties");
var variables:URLLoader = new URLLoader();

[Code]...

View 3 Replies

Flex :: File Write Permission To Application Directory In Windows 7 In Flex?

Aug 11, 2010

I am creating an AIR application using Flex. In it I use a file in application directory to store some data in it.Its working very well to read and write data to this file with various OS except windows 7. In windows 7 it is not working. May be its a permission problem.

How can i write file in the application directory with Windows 7 ?

View 2 Replies

Flex :: Reset/reload A Flex Application Without Refreshing The HTML Page Or Reloading The SWF File?

Jan 12, 2011

I have a flex application that has a home button. I need to reset the application when this button is clicked. I can't use navigateToURL or ExternalInterface.call("window.location.reload"); as its not acceptable to reload the swf file.

View 5 Replies

Flex :: Executing A Local File From An Intranet Flex Application

Apr 12, 2010

I am creating a Flex application for intranet use.I need the application to execute files, with different file types (txt, emails, etc.) at specific known locations on the clients computer.Is it possible to give permissions to the Flex application to execute local files? (I have administrative rights on the clients computer)

View 1 Replies

Xml :: Using A Flex Web Application In Another HTML File?

Mar 30, 2012

i'am developing a flex media player that will be include in a simple html file. my project plane is:

1-loading a xml file (using HTTPService)
2-find the sound address in the xml (Using E4x)
3-load the sound
4- ...

when i run it with adobe flash builder or generate a release version, it works fine. but when i use the flash file in my html file it's xml loading process doesn't work!

after some try , i realized that if the swf file be in the flash builder workspace directory, it work , else it doesn't work.

note that my OS is Microsoft Windows 7 32-bit

what is the different between the workspace directory and usual directories?

View 1 Replies

Flex :: Download A File In An AIR Application?

Jun 15, 2009

Is it possible download a file in an AIR application, store it on the user's system, and prohibit access to the files by applications other than the one with which it was downloaded?

View 3 Replies

ActionScript 3.0 :: Pass A Var From Flex Application To A Swf File?

Jun 10, 2009

how to pass a var from flex application to a swf file that is on my server?

[code]....

how to GET the VAR THat is passed into the swf file some get method from FLEX?

View 1 Replies

Flex :: Start Application From A Simple AS File?

Oct 27, 2009

I want to use vkontakte's new wrapper feature, that enhances your application abilities by running under SWF wrapper. This is a sample application that uses this mechanism. It uses pure action script to display it's contents rather than an mx:Application.

Using the wrapper on my mx:Application failed due to the following error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.managers::FocusManager/activate()[C:autobuildgalagaframeworksprojectsframeworksrcmxmanagersFocusManager.as:702]
at mx.managers::SystemManager/activateForm()[C:autobuildgalagaframeworksprojectsframeworksrcmxmanagersSystemManager.as:2493]
at mx.managers::SystemManager/activate()

[Code]...

Unfortunately - it also failed, and the question remains, how to start Application from a simple AS file?

View 2 Replies

Flex :: Delete A File In The Application Directory?

Nov 19, 2009

We are writing log files to File.applicationDirectory and want to clean out old log files. The question is how do you delete files out of that directory? When I try and delete old log files out of this directory it gives a security exception. Is there anyway around this? I know you are not supposed to write to File.applicationDirectory, but we are writting are logs there anyways.

View 2 Replies

Flex :: Write A File To Application Directory?

Dec 28, 2009

how to write a file to File.applicationDirectory in flex. i am getting security filewrite resource error.

View 2 Replies

Flex :: Preload A File Before The Application Initializes?

May 5, 2010

Problem: An XML configuration file needs to be loaded at runtime and be ready when the application's createChildren() gets called. At the latest, because configuration values are needed to properly initialize child components. Preferably, I would like the configuration loading be complete before the application even gets created. In short, I want to do this: load configuration, then initialize the application using the loaded configuration.

I created a custom preloader to help solve this. But as it turns out, the application's createChildren() method already gets called during preloading, when the configuration is not yet guaranteed to be loaded. That is, before the custom preloader dispatches the COMPLETE event.

View 2 Replies

Flex :: Copy File To Application Directory?

Oct 26, 2010

I have trouble getting it to copy file from src to destination.

var asMsg_path:String = fileRef.nativePath;
var origFileLoc:File = File.applicationDirectory.resolvePath(asMsg_path);
var newFileLoc:File = File.applicationDirectory.resolvePath("/java/"+asMsg);

[code]....

View 1 Replies

Flex :: Opening And Getting File Contents In 4 - Air Application

Jan 23, 2011

I'm wondering how I can display an Open File dialog box, select a text file, put the contents of the text file into a textarea component via a button... I'm not really used to Flex so I don't know where to start or exactly how I'd go about doing it? I'm doing this for an Air application.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved