I tried using Flashvars for it, worked fine for me.
Thank you, Oleg. On Tue, Sep 13, 2016 at 3:14 AM, Christofer Dutz [via Apache Flex Users] < [email protected]> wrote: > Hi Oleg, > > > I use Defines in the Maven build for exactly this. I am sure the Defines > work the same way in an Ant build as the FlexJS build relies on these. > > > I use them for feature toggles, injecting root-url's for local > development/testing/production and it works just perfeclty. Have a look > here [1] > > > Chris > > > [1] http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0b > f69084-7abd.html#WS2db454920e96a9e51e63e3d11c0bf67670-7fe2 > > ________________________________ > Von: olegkon <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=13538&i=0>> > Gesendet: Montag, 12. September 2016 16:38:33 > An: [hidden email] <http:///user/SendEmail.jtp?type=node&node=13538&i=1> > Betreff: Pass data from build to Flex web app > > Hi, > > Is there a way to pass some variables from ANT build to the actual Flex > web > app? > > I have seen that old post regarding passing SVN build number: > https://mampersat.wordpress.com/2009/03/31/display- > versionrevision-number-in-flexactionscript/ > > I need to pass an environment Type (DEV / UAT / PROD) from Ant. > Is there a way to do it in Flex 4.6 ? > > Please help. > > TIA, > Oleg. > > > > > -- > View this message in context: http://apache-flex-users. > 2333346.n4.nabble.com/Pass-data-from-build-to-Flex-web-app-tp13535.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://apache-flex-users.2333346.n4.nabble.com/Pass- > data-from-build-to-Flex-web-app-tp13535p13538.html > To unsubscribe from Pass data from build to Flex web app, click here > <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=13535&code=b2xlZ2tvbkBnbWFpbC5jb218MTM1MzV8MTE5NTIxMzcyOA==> > . > NAML > <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- Thank you, Oleg. -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Pass-data-from-build-to-Flex-web-app-tp13535p13548.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
