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 positive integer that specifies the depth of the new text field.
depth
An integer that specifies the x coordinate of the new text field.
x
An integer that specifies the y coordinate of the new text field.
y
A positive integer that specifies the width of the new text field.
width
A positive integer that specifies the height of the new text field.
height
Returns
Nothing.
Description
Method; creates a new, empty text field as a child of the movie clip specified by
use
createTextField()
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()
or
MovieClip.getNextHighestDepth()
field is positioned at (
to the container movie clip; these parameters correspond to the
field. The
width
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
A string that identifies the instance name of the new text field.
to create text fields while a SWF file plays. The
to determine whether a specific depth is already occupied,
,
) with dimensions
x
y
and
parameters correspond to the
height
, to determine the highest unoccupied depth. The text
by
. The
width
height
_width
my_mc
parameter
depth
and
parameters are relative
x
y
and
properties of the text
_x
_y
and
properties of the
_height
MovieClip.createTextField()
. You can
505
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers