Or use a resource bundle, same thing... even less to code, but the resource bundle is included at build time, so you cant switch at run-time. But with the XML, you can re-load the file anytime you want and pick up the latest info, if that is important to you. Its not really re-inventing the wheel, not as I see it. <myconfig> <prop1>value1</prop1> <prop2>value2</prop2> </myconfig> <mx:HttpService id="hs" source="conf/myconfig.xml"... /> ... var someProp:String = hs.prop1; All done! Dimitrios Gianninas RIA Developer Optimal Payments Inc.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Grant Davies Sent: Wednesday, February 14, 2007 9:19 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] runtime configuration yeah, that just seems a bit "re-invent the wheel" since you come up with your own xml format, then a helper class to get the data and also something thats environment aware (prod,test.qa etc) via a configmanager like.. ConfigurationManager.getProperty("pizzaService"); I was just hoping there was something already built.. I'll use the XML service.. Grant. ........................................... > b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) > [EMAIL PROTECTED] > http://www.bluetube.com/bti <http://www.bluetube.com/bti> > A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Wednesday, February 14, 2007 9:12 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] runtime configuration Put all the config you want in an XML file and then use the <mx:HttpService> component to load the XML file at any time. Dimitrios Gianninas RIA Developer Optimal Payments Inc. ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Grant Davies Sent: Tuesday, February 13, 2007 8:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] runtime configuration Is there a practice or class for runtime config of flex apps? I'd like to put all my HTTP service call urls in an xml file and then pull out whats needed, is there some practise or class that handles this or am inventing the wheel ? We have a prototype, runs local and on the server and don't have the bandwidth for cairngorm for this release. cheers Grant ........................................... > b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) > [EMAIL PROTECTED] > http://www.bluetube.com/bti <http://www.bluetube.com/bti> > A Tribal Chicken Designs Affiliate <http://www.tribalchicken.com/> AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. -- WARNING ------- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -------------- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
<<attachment: small.jpg>>
<<attachment: small.jpg>>