 
 use namespace mx_internal;
 
-// TODO:
-//  - load truncation indicator from resource
-//  - verify focusEnabled functionality
-//  - implement heightInLines/widthInChars (or remove)
-//  - implement scrollToRange()
-//  - dispatch isTruncatedChanged
-//
+[ResourceBundle("core")]
+
 //
 // To use:
 //   in createChildren():
-//       var tf:MobileTextField = new MobileTextField();
+//       var tf:MobileTextField = createInFontContext(MobileTextField);
 //       tf.styleProvider = this;
 //       tf.editable = true|false;   // for editable text
 //       tf.multiline = true|false;  // for multiline text

    }
    
    //----------------------------------
    //  selectionActivePosition
    //----------------------------------
    
    /**
     *  The active, or last clicked position, of the selection.
     *  If the implementation does not support selection anchor
     *  this is the last character of the selection.
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10.1
     *  @playerversion AIR 2.0
     *  @productversion Flex 4.5
     */
    public function get selectionActivePosition():int
    {
        // TextField doesn't have selection "active" position
        return selectionEndIndex;
    }
    
 
    ///////
    /// TODO: Figure out if we can implement these properties. If not, they should
    //  be removed from this class and IEditableText.
    ///////
    
    public function get heightInLines():Number
    {
        // TODO: implement me (or remove)
        return 1; 
    }
    
    public function set heightInLines(value:Number):void
    {
        // TODO: implement me (or remove)
    }
    
    public function get widthInChars():Number
    {
        // TODO: implement me (or remove)
        return 1;
    }
    
    public function set widthInChars(value:Number):void
    {
        // TODO: implement me (or remove)
    }
    
    
    
    //--------------------------------------------------------------------------
    //

            //textFormat.leftMargin = getStyleFunction("paddingLeft");
            //textFormat.rightMargin = getStyleFunction("paddingRight");

            // Check for embedded fonts
            embedFonts = isFontEmbedded(textFormat);
            
            defaultTextFormat = textFormat;
            setTextFormat(textFormat);
            invalidateStyleFlag = false;
