I know that Application.application is replaced by FlexGlobals.topLevelApplication, but I still encounter some problem when using it.
Main.mxml is my main application and now it is top level tag is <s:Application> .
I have defined a public function populateUserList() in it. I used to be able to invoke this method inside an action script class using Application.application.populateUserList(). But now when I invoke it by using FlexGlobals.topLevelApplication.populateUserList(), such an error message comes up : ReferenceError: Error #1069: Property populateUserList not found on Main and there is no default value.
Does any one encounter such a problem and have a solution for it?