MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 1090

Director scripting reference
Table of Contents

Advertisement

width
Usage
-- Lingo syntax
memberObjRef.width
imageObjRef.width
spriteObjRef.width
// JavaScript syntax
memberObjRef.width;
imageObjRef.width;
spriteObjRef.width;
Description
Member, Image, and Sprite property; for vector shape, Flash, animated GIF, RealMedia,
Windows Media, bitmap, and shape cast members, determines the width, in pixels, of a cast
member. Read-only for cast members and image objects, read/write for sprites.
This property does not affect field and button cast members.
Example
This statement assigns the width of member 50 to the variable
-- Lingo syntax
theHeight = member(50).width
// JavaScript syntax
var theHeight = member(50).width;
This statement sets the width of sprite 10 to 26 pixels:
-- Lingo syntax
sprite(10).width = 26
// JavaScript syntax
sprite(10).width = 26;
This statement assigns the width of sprite number i + 1 to the variable
-- Lingo syntax
howWide = sprite(i + 1).width
// JavaScript syntax
var howWide = sprite(i + 1).width;
See also
height,
image
1090
Chapter 14: Properties
(Image), Member,
Sprite
:
theHeight
:
howWide

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents