Lingo Dictionary > S > setVariable() |
![]() ![]() ![]() |
setVariable()
Syntax
setVariable(sprite
flashSpriteNum
,
"variableName"
,
newValue
)
Description
Function; sets the value of the given variable in the given Flash sprite. Flash variables were introduced in Flash version 4.
Example
This statement sets the value of the variable currentURL in the Flash cast member in sprite 3. The new value of currentURL will be "http://www.macromedia.com/software/flash/".
setVariable(sprite 3, "currentURL", "http://www.macromedia.com/software/flash/")
See also
![]() ![]() ![]() |