Lingo Dictionary > G-K > height |  |

height

Syntax

    member(whichCastMember).height
    the height of member whichCastMember
    imageObject.height
    sprite(whichSprite).height
    the height of sprite whichSprite

Description

Cast member, image object and sprite property; for vector shape, Flash, animated GIF, bitmap, and shape cast members, determines the height, in pixels, of the cast member displayed on the Stage.

| For cast members, works with bitmap and shape cast members only. This property can be tested but not set.
| For image objects, this property can be tested but not set.
| For sprites: setting the sprite's height automatically sets the sprite's `stretch` property to `TRUE`. For the value set by Lingo to last beyond the current sprite, the sprite must be a puppet. This property can be tested and set.

Example

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

    vHeight = member("Headline").height

Example

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

    sprite(10).height = 26

Example

This statement assigns the height of sprite (i + 1) to the variable `vHeight`:

    vHeight = sprite(i + 1).height

See also

`rect (sprite), width`