MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference page 456

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

rightMargin = 0
indent = 0
leading = 0
blockIndent = 0
bullet = false
display = block
tabStops = [] // (empty array)
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
instanceName:String
- A positive integer that specifies the depth of the new text field.
depth:Number
- An integer that specifies the x coordinate of the new text field.
x:Number
- An integer that specifies the ycoordinate of the new text field.
y:Number
- A positive integer that specifies the width of the new text field.
width:Number
- A positive integer that specifies the height of the new text field.
height:Number
Returns
-
TextField
Example
The following example creates a text field with a width of 300, a height of 100, an x
coordinate of 100, a y coordinate of 100, no border, red, and underlined text:
this.createTextField("my_txt", 1, 100, 100, 300, 100);
my_txt.multiline = true;
my_txt.wordWrap = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
my_txt.text = "This is my first test field object text.";
my_txt.setTextFormat(my_fmt);
456
ActionScript classes
- A string that identifies the instance name of the new text field.

Advertisement

Table of Contents
loading

Table of Contents