-- Lingo syntaxmemberObjRef.widthimageObjRef.widthspriteObjRef.width // JavaScript syntaxmemberObjRef.width;imageObjRef.width;spriteObjRef.width;
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.
This statement assigns the width of member 50 to the variable theHeight:
-- 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 howWide:
-- Lingo syntax howWide = sprite(i + 1).width // JavaScript syntax var howWide = sprite(i + 1).width;
height, image (Image), Member, Sprite
RSS feed | 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_pr745.htm
Comments
Roti_78 said on Jul 8, 2004 at 4:14 AM :