User Guide
287
This statement displays the list of handlers in the parent script member CarParentScript in the
Message window:
put member(“CarParentScript”).script.handlers()
-- [#accelerate, #turn, #stop]
See also
handler(), script
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.
Examples
This statement assigns the height of cast member Headline to the variable vHeight:
vHeight = member("Headline").height
This statement sets the height of sprite 10 to 26 pixels:
sprite(10).height = 26
This statement assigns the height of sprite (i + 1) to the variable vHeight:
vHeight = sprite(i + 1).height
See also
height, rect (sprite), width
height (3D)
Syntax
member(whichCastmember).modelResource(whichModelResource).height
member(whichCastmember).texture(whichTexture).height
Description
3D #box model resource, #cylinder model resource, and texture property; indicates the height
of the object.
The height of a
#box or #cylinder model resource is measured in world units and can be tested
and set. The default value for this property is 50.