725
width
Syntax
member(
whichCastMember
).width
the width of member
whichCastMember
imageObject
.width
sprite(
whichSprite
).width
the width of sprite
whichSprite
Description
Cast member, image object and sprite property; for vector shape, Flash, animated GIF, bitmap, and
shape cast members, determines the width, in pixels, of the cast member specified by
whichCastMember
,
imageObject
or
whichSprite
. Field and button cast members are not affected.
For cast members and image objects, this property can be tested; for sprites, this property can be
both tested and set.
Setting this property on bitmap sprites automatically sets the sprite’s
stretch of sprite
property to
TRUE
.
Examples
This statement assigns the width of member 50 to the variable
height
:
height = member(50).width
This statement sets the width of sprite 10 to 26 pixels:
sprite(10).width = 26
This statement assigns the width of sprite number i + 1 to the variable
howWide
:
howWide = sprite(i + 1).width
See also
height
width (3D)
Syntax
member(
whichCastmember
).modelResource(
whichModelResource
).width
modelResourceObjectReference
.width
Description
3D property; allows you to get or set the width of the plane for a model resource whose type is
#box
or
#plane
. This property must be greater than 0.0, and has a default setting of 1.0. For
objects whose type is
#box
, the default value of
width
is 50.0. For objects whose type is
#plane
,
the default setting is 1.0.
width
is measured along the X axis.
Example
This statement sets the width of the model resource Grass plane to 250.0:
member("3D World").modelResource("Grass plane").width = 250.0
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...