2 Replies Latest reply on Sep 16, 2014 2:45 AM by burhanaksendir

    Issue with topLevelApplication...




      I trying bind FlexGlobals.topLevelApplication to some short var e.g:


      private var mainApp:Object = FlexGlobals.topLevelApplication;


      And now i have problem. When I do mainApp.someButton.label got error(referencing to null), but when I do FlexGlobals.topLevelApplication.someButton.label all works fine...


      I have to each time write long "FlexGlobals.topLevelApplication" ?? I can't just bind this to some short variable?