0 Replies Latest reply on Aug 10, 2010 6:10 AM by ice9_us

    Data binding for mx.core.FlexGlobals.topLevelApplication

    ice9_us

      in my application i have defined in the main mxml file:

       

      <code>

      [Bindable]
      public var SelectedEnv:Array = new Array();

      </code>

       

      Later in another component I have a function which sends out an http request and fills up the array..

      that data is later transmitted as the info below...

       

      <code>

      <SelectedEnv>{mx.core.FlexGlobals.topLevelApplication.SelectedEnv}</SelectedEnv>

      </code>

       

      I was doing this calling Application.application.SelectedEnv with no problem..

      Now i get errors in flex4 saying data binding will not be able to detect assignments..

      Anyone know how to fix this?

       

      Thanks in advanced for any help. I am not able to find anything on the web.