MovieClip.createTextField()
567
MovieClip.createTextField()
Availability
Flash Player 6.
Usage
my_mc
.createTextField(
instanceName:String
,
depth:Number
,
x:Number
,
y:Number
,
width:Number
,
height:Number
)
: Void
Parameters
instanceName
A string that identifies the instance name of the new text field.
depth
A positive integer that specifies the depth of the new text field.
x
An integer that specifies the
x
coordinate of the new text field.
y
An integer that specifies the
y
coordinate of the new text field.
width
A positive integer that specifies the width of the new text field.
height
A positive integer that specifies the height of the new text field.
Returns
Nothing.
Description
Method; creates a new, empty text field as a child of the movie clip specified by
my_mc
. You can
use
createTextField()
to create text fields while a SWF file plays. The
depth
parameter
determines the new text field’s z-order position in the movie clip. Each position in the z-order can
contain only one object. If you create a new text field on a depth that already has a text field, the
new text field will replace the existing text field. To avoid overwriting existing text fields, use the
MovieClip.getInstanceAtDepth()
to determine whether a specific depth is already occupied,
or
MovieClip.getNextHighestDepth()
, to determine the highest unoccupied depth. The text
field is positioned at (
x
,
y
) with dimensions
width
by
height
. The
x
and
y
parameters are relative
to the container movie clip; these parameters correspond to the
_x
and
_y
properties of the text
field. The
width
and
height
parameters correspond to the
_width
and
_height
properties of the
text field.
The default properties of a text field are as follows:
type = "dynamic"
border = false
background = false
password = false
multiline = false
html = false
embedFonts = false
selectable = true
wordWrap = false
mouseWheelEnabled = true
condenseWhite = false
restrict = null
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...