aspose file tools*
The moose likes Flex and the fly likes how to use properties file (j2ee+ flex) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "how to use properties file (j2ee+ flex)" Watch "how to use properties file (j2ee+ flex)" New topic
Author

how to use properties file (j2ee+ flex)

sandy kailash
Greenhorn

Joined: Feb 23, 2010
Posts: 9
how to use properties file


i am working with java and flex.
there are some (flex) service config.xml file where i am wirting the IP Address or Domain Name. also there some mxml file where this ip-address has to be mentioned.
then the respective swf file is been copied in the web content of my project.


i have to change these ip address acccording to my requirments. so i thought better to store all these IP Address in a properties file.
so that a sing change in properties file will help me.

but my question is...

Is it possible to do so. and

if it is, then how to create and use the properties file for the flex.

and is it possible to see the change made in properties file will be reflected to the xml files.???


please help!!!

Thanks in advance


Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Flex finds external resources in the same way a web app does - you just load it from a link.

Are you aware that service-config.xml can use parameters? You shouldn't need to hardcode IP addresses anywhere.


and is it possible to see the change made in properties file will be reflected to the xml files.???

No. You'll need to implement some sort of build process to do this.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to use properties file (j2ee+ flex)