Lingo Dictionary > G-K > getVariable()

 

getVariable()

Syntax

getVariable(sprite flashSpriteNum, "variableName")

Description

This function returns the current value of the given variable from the given Flash sprite. Flash variables were introduced in Flash version 4.

Example

This statement returns the value of the variable currentURL from the Flash cast member in sprite 3 and displays it in the Message window:

put getVariable(sprite 3, "currentURL")
-- "http://www.macromedia.com/software/flash/"

See also

hitTest(), setVariable()