         {
             _layoutDebugHelper = new LayoutDebugHelper();
             _layoutDebugHelper.mouseEnabled = false;
-            ApplicationGlobals.application.systemManager.addChild(_layoutDebugHelper);
+            FlexGlobals.topLevelApplication.systemManager.addChild(_layoutDebugHelper);
         }
         return _layoutDebugHelper;
     } */

				validateDisplayList();

				// The Preloader listens for this event.
				ApplicationGlobals.application.dispatchEvent(
					new Event("validateDisplayListComplete"));
			}
		}

				{
					callLaterObject = new UIComponent();
					callLaterObject.systemManager =
						FlexGlobals.topLevelApplication.systemManager;
					callLaterObject.callLater(waitAFrame);
				}
				else
