Flash.SetFlashVariable

Flash.SetFlashVariable ( 

string ObjectName,

string FlashVariable,

string Value )

Example 1

Flash.SetFlashVariable("Flash1", "UserName", FirstName .. " " .. LastName);

Sets the value of the Flash variable named "UserName" inside the Flash movie that is currently loaded in the "Flash1" Flash object to be equal to the contents of the variable "FirstName," followed by a space, followed by the contents of the variable "LastName."

Note: The concatenation operator (..) is used in this example to combine three different strings (one in FirstName, one in LastName, and a literal string between quotes) into a single string value.

Example 2

Flash.SetFlashVariable("Flash Progress Display", "UserMyDocumentsPath", MyDocumentsDir);

Sets the value of a Flash variable called "UserMyDocumentsPath" inside a Flash object called "Flash Progress Display" to the contents of a variable called "MyDocumentsDir."

See also:  Related Actions