height

Usage

-- Lingo syntax
imageObjRef.height
memberObjRef.height
spriteObjRef.height

// JavaScript syntax
imageObjRef.height;
memberObjRef.height;
spriteObjRef.height;

Description

Image, Member, and Sprite property; for vector shape, Flash, animated GIF, RealMedia, Windows Media, bitmap, and shape cast members, determines the height, in pixels, of the cast member displayed on the Stage. Read-only for cast members and image objects, read/write for sprites.

Example

This statement assigns the height of cast member Headline to the variable vHeight:

-- Lingo syntax
vHeight = member("Headline").height

// JavaScript syntax
var vHeight = member("Headline").height;

This statement sets the height of sprite 10 to 26 pixels:

-- Lingo syntax
sprite(10).height = 26

// JavaScript syntax
sprite(10).height = 26;

See also

Member, Sprite, width


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/director/mx2004/release_en/09_pr277.htm