Lingo Dictionary > D-F > flashRect |  |

flashRect

Syntax

    member(whichVectorOrFlashMember).flashRect
    the flashRect of member whichVectorOrFlashMember

Description

Cast member property; indicates the size of a Flash movie or vector shape cast member as it was originally created. The property values are indicated as a Director rectangle: for example, rect(0,0,32,32).

For linked Flash cast members, the `FlashRect` member property returns a valid value only when the cast member's header has finished loading into memory.

This property can be tested but not set.

Example

This sprite script resizes a Flash movie sprite so that it is equal to the original size of its Flash movie cast member:

    on beginSprite me
    	sprite(me.spriteNum).rect = sprite(me.spriteNum).member.FlashRect
    end

See also

`defaultRect`, `defaultRectMode`, `state`