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

import flash.events.Event;
import flash.events.EventDispatcher;

import mx.core.ApplicationGlobals;
import mx.core.ILayoutElement;
import mx.core.UIComponent;
import mx.core.mx_internal;

				validateSize();

				// The Preloader listens for this event.
				FlexGlobals.topLevelApplication.dispatchEvent(
					new Event("validateSizeComplete"));
			}

