beautypg.com

Element.height, Element.layer – Adobe Extending Flash Professional CS5 User Manual

Page 211

background image

189

EXTENDING FLASH PROFESSIONAL

Element object

Last updated 5/2/2011

Usage

element.hasPersistentData(name)

Parameters

name

A string that specifies the name of the data item to test.

Returns
A Boolean value:

true

if the specified data is attached to the object;

false

otherwise.

Description
Method; determines whether the specified data has been attached to the specified element. Only symbols and bitmaps
support persistent data.

Example
See

element.getPersistentData()

.

element.height

Availability
Flash MX 2004.

Usage

element.height

Description
Property; a float value that specifies the height of the element in pixels.

Do not use this property to resize a text field. Instead, select the text field and use

document.setTextRectangle()

.

Using this property with a text field scales the text.

Example
The following example sets the height of the specified element to 100:

fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].height = 100;

element.layer

Availability
Flash 8.

Usage

element.layer

Description
Read-only property; represents the

Layer object

on which the element is located.

This manual is related to the following products: