Createtextfield (Movieclip.createtextfield Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

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

Advertisement

createTextField (MovieClip.createTextField method)

public createTextField(instanceName:String, depth:Number, x:Number,
y:Number, width:Number, height:Number) : TextField
Creates a new, empty text field as a child of the movie clip on which you call this method. You
can use th e
createTextField()
parameter determines the new text field's depth level (z-order position) in the movie
depth
clip. Each depth level 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 replaces the existing text field. To avoid
overwriting existing text fields, use
whether a specific depth is already occupied, or
determine the highest unoccupied depth. The text field is positioned at (x, y) with dimensions
by
. The
width
height
parameters correspond to the
parameters correspond to the
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
variable = null
maxChars = null
styleSheet = undefined
tabInded = undefined
A text field created with
object settings:
font = "Times New Roman" // "Times" on Mac OS
size = 12
color = 0x000000
bold = false
italic = false
underline = false
url = ""
target = ""
align = "left"
leftMargin = 0
method to create text fields while a SWF file plays. The
MovieClip.getInstanceAtDepth()
and
parameters are relative to the container movie clip; these
x
y
and
properties of the text field. The
_x
_y
and
_width
_height
createTextField()
MovieClip.getNextHighestDepth()
properties of the text field.
receives the following default TextFormat
to determine
, to
and
width
height
MovieClip
455

Advertisement

Table of Contents
loading

Table of Contents