Lingo Dictionary > G-K > getFlashProperty() |  |

getFlashProperty()

Syntax

    sprite(spriteNum).getFlashProperty("targetName", #property)

Description

This function allows Lingo to invoke the Flash action script function `getProperty()` on the given Flash sprite. This Flash action script function is used to get the value of properties of movie clips or levels within a Flash movie. This is similar to testing sprite properties within Director.

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

The `#property` is the name of the property to get. These movie clip properties are gettable: `#posX`, `#posY`, `#scaleX`, `#scaleY`, `#visible`, `#rotate` , #`alpha`, `#name`, `#width`, `#height`, `#target`, `#url`, `#dropTarget`, `#totalFrames`, `#currentFrame`, and `#lastframeLoaded`.

To get a global property of the Flash sprite, pass an empty string as the `targetName`. These global Flash properies are gettable: `#focusRect` and `#spriteSoundBufferTime`.

See the Flash documentation for descriptions of these properties.

Example

This statement gets the value of the `#rotate` property of the movie clip Star in the Flash member in sprite 3.

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