 
 	//--------------------------------------------------------------------------
 	//
-	//  Class initialization
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Static variable triggering the hookAccessibility() method.
-	 *  This is used for initializing TitleWindowAccImpl class to hook its
-	 *  createAccessibilityImplementation() method to TitleWindow class 
-	 *  before it gets called from UIComponent.
-	 */
-	private static var accessibilityHooked:Boolean = hookAccessibility();
-
-	/**
-	 *  @private
-	 *  Static Method for swapping the
-	 *  createAccessibilityImplementation method of TitleWindow with
-	 *  the TitleWindowAccImpl class.
-	 */
-	private static function hookAccessibility():Boolean
+	//  Class constants
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
+
+	/**
+	 *  @private
+	 */
+	private static const STATE_SYSTEM_MOVEABLE:uint = 0x00040000;
+
+	/**
+	 *  @private
+	 */
+	private static const EVENT_OBJECT_CREATE:uint = 0x8000;
+
+	/**
+	 *  @private
+	 */
+	private static const EVENT_OBJECT_DESTROY:uint = 0x8001;
+
+	/**
+	 *  @private
+	 */
+	private static const EVENT_OBJECT_LOCATIONCHANGE:uint = 0x800B;
+	
+	//--------------------------------------------------------------------------
+	//
+	//  Class methods
+	//
+	//--------------------------------------------------------------------------
+
+	/**
+	 *  Enables accessibility in the TitleWindow class.
+	 * 
+	 *  <p>This method is called by application startup code
+	 *  that is autogenerated by the MXML compiler.
+	 *  Afterwards, when instances of TitleWindow are initialized,
+	 *  their <code>accessibilityImplementation</code> property
+	 *  will be set to an instance of this class.</p>
+	 */
+	public static function enableAccessibility():void
 	{
 		TitleWindow.createAccessibilityImplementation =
 			createAccessibilityImplementation;
-
-		return true;
-	}
-
-	//--------------------------------------------------------------------------
-	//
-	//  Class constants
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
-
-	/**
-	 *  @private
-	 */
-	private static const STATE_SYSTEM_MOVEABLE:uint = 0x00040000;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_CREATE:uint = 0x8000;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_DESTROY:uint = 0x8001;
-
-	/**
-	 *  @private
-	 */
-	private static const EVENT_OBJECT_LOCATIONCHANGE:uint = 0x800B;
-	
-	//--------------------------------------------------------------------------
-	//
-	//  Class methods
-	//
-	//--------------------------------------------------------------------------
-
-	/**
-	 *  @private
-	 *  Method for creating the Accessibility class.
-	 *  This method is called from UIComponent.
-	 *  @review
+	}
+
+	/**
+	 *  @private
+	 *  Creates a TitleWindow's AccessibilityImplementation object.
+	 *  This method is called from UIComponent's
+	 *  initializeAccessibility() method.
 	 */
 	mx_internal static function createAccessibilityImplementation(
 								component:UIComponent):void

use namespace mx_internal;

/**
 *  The TitleWindowAccImpl class is the accessibility class for TitleWindow.
 *
 *  @helpid 3011
 *  @tiptext This is the TitleWindow Accessibility Class.
 *  @review
 */
public class TitleWindowAccImpl extends PanelAccImpl
{

		Accessibility.sendEvent(titleBar, 0, EVENT_OBJECT_CREATE);

		Accessibility.updateProperties();
	}

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