pseudo.TextArea class
View Sample :: Return to index  
pseudo.TextArea.TextArea(pThis:MovieClip)
TextArea constructor. You never use the constructor to create this component.

Parameters None
Returns Nothing
Example
    None


pseudo.TextArea.create(pOwner:MovieClip, strName:String, nDepth:Number):pseudo.TextArea
Use this static function to create new TextArea on the specified movie clip. Never use constructor directly to do it.

Parameters pOwner The movie clip on which the new TextArea will be drawn.
strName The new TextArea instance name.
nDepth The new TextArea instance depth.
Returns The reference to new TextArea instance
Example
    var textArea = pseudo.TextArea.create(this, "textArea", 1);
    textArea.setSize(100, 100);

    //Apply the skin to the text area

    textArea.setLook(pseudo.look.XPLook.getInstance());

    //Set some default text
    textArea.setText("Can edit ");


    //Calling these functions will finally draw the component

    textArea.update();
    textArea.draw();

    // This code will draw the text area using XP look and feel skin.
    // Please notice that you should always use some skin to create the component,
    // this can be done like in this example, and the skin will be complied into the swf file,
    // or you can use another technique and load the skin at a run time.
           


pseudo.TextArea.setText(strText:String):Void
Sets the text of the text area.

Parameters strText String value
Returns Nothing
Example
    None


pseudo.TextArea.getText():String
Reruns the text area, so that the user types into the text area.

Parameters None
Returns String value
Example
    None
Flash UI Components (c)TUFaT.com, All Rights Reserved.