Select Project > Variables.
In the Type menu, select User.
Click Add New, and enter the following information:
- Name
- Specify a unique name for the variable. Ensure that the name is intuitive enough to help users guess its content. For example, a variable storing the version number of a product would have the name ProductVersion or VersionNumber.
- Value
- Specify a value for the variable. The value that you specify occurs at all instances of occurrence of the variable in the document. You can also choose to set the value later by leaving this field blank. Variables with undefined values appear as blank spaces in the project.
- Description
- Optionally, add a description for the variable. For example, you could add a note for the authors instructing them about when to use the variable.
Click Save.
Some of the variable names are reserved by ActionScript. Do not use the following variable names when creating your variable:
alpha currentframe droptarget focusrect ramesloaded height |
buttonMode byte cacheAsBitmap case cast catch |
filters final finally float focusEnabled focusRect |
mouseX mouseY name namespace native new |
switch synchronized tabChildren tabEnabled tabIndex textSnapshot |
highquality lockroot name parent quality rotation |
char class const constructor contextMenu continue |
for forceSmoothing framesLoaded function get goto |
null numChildren opaqueBackground override package parent |
this throw throws to totalFrames trackAsMenu |
soundbuftime target totalframes url visible width |
currentFrame currentLabel currentLabels currentScene debugger default |
graphics height hitArea if implements import |
private protected prototype public return root |
transform transient true try type typeof |
x xmouse xscale y ymouse yscale |
delete do double doubleClickEnabled dropTarget dynamic |
in include instanceof interface internal intrinsic |
rotation scale9Grid scaleX scaleY scenes scrollRect |
use useHandCursor var virtual visible void |
abstract accessibilityProperties as blendMode boolean break |
each else enabled enum export extends false |
is loaderInfo long mask menu mouseChildren mouseEnabled |
set short soundTransform stage static stop super |
volatile while |
