0 Replies Latest reply on Jul 31, 2008 8:12 PM by (Ryan_Frishberg)

    [svn] 2700: With the Marshal Plan, when create an instance of a manager, we need to talk to the system manager.

    Level 1
      Revision: 2700
      Author: rfrishbe@adobe.com
      Date: 2008-07-31 21:12:03 -0700 (Thu, 31 Jul 2008)

      Log Message:
      -----------
      With the Marshal Plan, when create an instance of a manager, we need to talk to the system manager. Unfortunately sometimes these manager instances can be created before the Application class is created and/or before the systemManager property is set on the application. So to get the reference to the system manager from the manager instances, we can't use ApplicationGlobals.application.systemManager. We need to use SystemManagerGlobals.topLevelSystemManagers[0] instead. This property is set in the SystemManager constructor, and fortunately for us, Flash runs your root display object's constructor before anything else, even before static initializers (atleast ones not defined in SystemManager or a dependency of it).

      QE: Yes
      Doc: No
      Bugs: SDK-16207, SDK-16208, SDK-16209
      Reviewer: Alex

      Ticket Links:
      ------------
      http://bugs.adobe.com/jira/browse/SDK-16207
      http://bugs.adobe.com/jira/browse/SDK-16208
      http://bugs.adobe.com/jira/browse/SDK-16209

      Modified Paths:
      --------------
      flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/CursorManagerImpl.a s
      flex/sdk/branches/3.0.x/frameworks/projects/framework/src/mx/managers/ToolTipManagerImpl. as