 import flash.display.DisplayObjectContainer;
 import flash.events.Event;
 
+import mx.accessibility.AccConst;
 import mx.containers.Form;
 import mx.containers.FormHeading;
 import mx.containers.FormItem;


    //--------------------------------------------------------------------------
    //
    //  Class constants
    //
    //--------------------------------------------------------------------------

    /**
     *  @private
     */
    private static const STATE_SYSTEM_NORMAL:uint = 0x00000000;

    /**
     *  @private
     */
    private static const STATE_SYSTEM_FOCUSABLE:uint = 0x00100000;
    
    /**
     *  @private
     */
    private static const STATE_SYSTEM_FOCUSED:uint = 0x00000004;
    
    /**
     *  @private
     */
    private static const STATE_SYSTEM_UNAVAILABLE:uint = 0x00000001;
    
    /**
     *  @private
     */
    private static const EVENT_OBJECT_NAMECHANGE:uint = 0x800C;
    
    /**
     *  @private
     */
    private static const EVENT_OBJECT_SHOW:uint = 0x8002;

    /**
     *  @private
     */
    private static const EVENT_OBJECT_HIDE:uint = 0x8003;

    //--------------------------------------------------------------------------
    //
    //  Class methods
    //
    //--------------------------------------------------------------------------

     */
    protected function getState(childID:uint):uint
    {
        var accState:uint = AccConst.STATE_SYSTEM_NORMAL;
        
        if (!UIComponent(master).enabled)
        {
            accState |= AccConst.STATE_SYSTEM_UNAVAILABLE;
        }
        else
        {
            accState |= AccConst.STATE_SYSTEM_FOCUSABLE
        
            if (UIComponent(master) == UIComponent(master).getFocus())
                accState |= AccConst.STATE_SYSTEM_FOCUSED;
        }

        return accState;
