Lingo Dictionary > S > setFlashProperty()

 

setFlashProperty()

Syntax

sprite(spriteNum).setFlashProperty("targetName", #property, newValue)

Description

Function; allows Lingo to call the Flash action script function setProperty() on the given Flash sprite. Use the setFlashProperty() function to set the properties of movie clips or levels within a Flash movie. This is similar to setting sprite properties within Director.

The targetName is the name of the movie clip or level whose property you want to set within the given Flash sprite.

The #property is the name of the property to set. You can set the following movie clip properties: #posX, #posY, #scaleX, #scaleY, #visible, #rotate, #alpha, and #name.

To set a global property of the Flash sprite, pass an empty string as the targetName. You can set the global Flash properties: #focusRect and #spriteSoundBufferTime.

See the Flash documentation for descriptions of these properties.

Example

This statement sets the value of the #rotate property of the movie clip Star in the Flash member in sprite 3 to 180.

sprite(3).setFlashProperty("Star", #rotate, 180)
getFlashProperty()