Contents |
|
Syntax | Arithmetic |
A variable is used to store data, such as numbers, text, arrays or true/false values. Variables declared in the general event are available throughout the movie. Variables declared in other events are only available in that event. Declare variables using the 'var' command. Variable names can only contain letters and numbers. No spaces are allowed. They can not start with a number. Each variable name can only be created once.
Example:
Variable can be accessed inside blocks of code.
Variables created in a block of code cannot be accessed outside of that block.
Syntax | Arithmetic |