On 5/5/05, sanjayd <[EMAIL PROTECTED]> wrote:

> Is there a formal/elegant way to read start-up properties via a
> java-style-properties-file/windows-style-ini-file/xml-config-type-file ?

XML, yes.  You can store the configuration properties in an XML file
on the server.  See this file, cfg.xml:

<root>
  <boxWidth>50</boxWidth>
  <boxHeight>300</boxHeight>
</root>

Load it into your MXML (compiled in):

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";>
  <mx:Model id="cfg" source="cfg.xml" />
  <mx:Box width="{cfg.boxWidth}" height="{cfg.boxHeight}"
    borderStyle="solid" />
</mx:Application>

If the cfg.xml file is modified, the SWF will be recompiled.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to