the userconfig.xml file using HTTPService seems to be the best
solution (fast and simple)...unfortunately the HTTPService asyncronous
nature make this solution not working!:-( the request need some time
to give the result...in this time flex has already setted the loaded
parameters as null and I give an error!

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Or have the app load a userconfig.xml file using HTTPService.  This
> takes only a few lines of client-side code and no server-side code.
> 
> Tracy
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Muzak
> Sent: Thursday, April 12, 2007 5:29 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: user configuration file
> 
>  
> 
> Look into FlashVars
> 
> http://livedocs.adobe.com/flex/2/docs/00001001.html
> <http://livedocs.adobe.com/flex/2/docs/00001001.html> 
> http://livedocs.adobe.com/flex/2/docs/00001005.html
> <http://livedocs.adobe.com/flex/2/docs/00001005.html> 
> http://ray.camdenfamily.com/index.cfm/2006/12/11/FlashVars-in-Flex
> <http://ray.camdenfamily.com/index.cfm/2006/12/11/FlashVars-in-Flex> 
> http://yakovfain.javadevelopersjournal.com/passing_parameters_to_flex_th
> at_works.htm
> <http://yakovfain.javadevelopersjournal.com/passing_parameters_to_flex_t
> hat_works.htm> 
> 
> regards,
> Muzak
> 
> ----- Original Message ----- 
> From: "Tony Obermeit" <[EMAIL PROTECTED] <mailto:hey.you%40mac.com> >
> To: <flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> >
> Sent: Thursday, April 12, 2007 9:30 PM
> Subject: [flexcoders] Re: user configuration file
> 
> > For the flex application, the configuration of which URLs to access
> > etc can come from a single, server side configuration. That can be
> > done however you need to with your server side language. To pass
> > these configuration values in to your swf file, you need to
> > dynamically generate the html which calls your swf. Make sure the
> > generation creates javascript variables which have the configuration
> > values. The flex application can read these values. I don't recall
> > the syntax to do this but there have been relatively recent posts
> > that show how.
> >
> > Tony
> >
> > Posted by: "simonjpalmer" [EMAIL PROTECTED]
> <mailto:simonjpalmer%40yahoo.com>  simonjpalmer
> > Thu Apr 12, 2007 6:33 am (PST)
> >
> > check out flex sharedobject
> >
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "lruinelli" <lruinelli@>
> wrote:
> > >
> > > Hello!
> > >
> > > I'm developing an application which need some configuration
> parameter
> > > to run correctly. E.g. the url of servlet used change frequently
> (the
> > > application is in develop!)...and I have to update every time all
> the
> > > MXML file and recompile the application:-(
> > > ...in desktop win application for this kind of configuration I
> > usually
> > > use somthing like file ".ini" where I put my configuration, wich are
> > > loaded by the application:
> > > e.g.
> > > config.ini:
> > > SERVLET_PATH=http://localhost:8080/servlethome/
> <http://localhost:8080/servlethome/> 
> > >
> > > what is the flex-as best pratices for this kind of stuff?
> > >
> > >
> > > thanks
> > > Lorenzo
> > >
> >
>


Reply via email to