2 Replies Latest reply on Jan 18, 2012 2:22 PM by jetrased

    FlexGlobals

    jetrased

      Hi

       

      I am looking at code developed using Flex 3, I am using Flex 4.6. I know that application was depreciated and I need to use FlexGlobals instead, however I am having problems firuging out the errors

       

      So in Flex 3 this was an original code snippet

      serverURL = com.test.commons.application.Application.application.url;

       

      I've messed around with FlexGlobals in a numer of ways

       

      serverURL = com.test.commons.application.Main(FlexGlobals.topLevelApplication).application.url;

      serverURL = com.test.commons.application.FlexGlobals.topLevelApplication.application.url;

      serverURL = com.test.commons.application.Appication.FlexGlobals.topLevelApplication.url;

       

      Can anyone tell me where I am going wrong?

       

      Thanks