T-W > _width

_width

Syntax

instancename._width
instancename._width =value;

Arguments

value The width of the movie in pixels.

instancename An instance name of a movie clip for which the _width property is to be set or retrieved.

Description

Property; sets the width of the movie. In previous versions of Flash, _height and _width were read-only properties; in Flash 5 they can be set as well as retrieved.

Player

Flash 4 as a read-only property. In Flash 5 or later, this property can be set as well as retrieved.

Example

The following code example sets the height and width properties of a movie clip when the user clicks the mouse:

onclipEvent(mouseDown) {
	_width=200;
	_height=200;
}

See also

_height