             Singleton.getInstance("mx.managers::ILayoutManager"));
         UIComponentGlobals.layoutManager.usePhasedInstantiation = true;
 
-        if (!ApplicationGlobals.application)
-            ApplicationGlobals.application = this;
+        if (!FlexGlobals.topLevelApplication)
+            FlexGlobals.topLevelApplication = this;
 
         super();
 

     *  used to access the sub-Application in which that UIComponent lives,
     *  and to walk up the hierarchy to the top-level Application.</p>
     *  
     *  @langversion 3.0
     *  @playerversion Flash 9
     *  @playerversion AIR 1.1

     *  Therefore we decided to dispense with strict typing for
     *  'application'.
     */
    [Deprecated(replacement="FlexGlobals.topLevelApplication", since="4.0")]
    
    public static function get application():Object
    {
        return FlexGlobals.topLevelApplication as Application;
    }

    //--------------------------------------------------------------------------
