Click Project > Variables. The Variables dialog-box displays.
Like all programming languages, Captivate uses variables to temporarily store values, which can be used by other components of Captivate. In Captivate, there are two types of variables, system and user-defined.
System variable: System variables come pre-defined with your copy of Captivate. For example, cpCmndMute , which mutes the audio in a slide. For a list of all system variables, see Captivate variables list.
User-defined variable: These are variables that you can create and assign them to customized actions. The name you assign to a user variable must not conflict with Captivate’s internal functions, reserved keywords, exposed system variables, or other hidden variables.
There are some conventions while naming a variable. They are:
In this example, we will create a user-defined variable and associate the variable with a button. When you click the button, a name displays.
Click Project > Variables. The Variables dialog-box displays.
To add a variable, click Add New, and enter the variable information in the Name, Value, and Description fields.
To save the changes, click Save.
In the Captivate project, insert a button, a text entry box and a text caption, as shown below:
In the text entry box, you insert the variable you had created, as shown below:
With the cursor after the “:”, click [X] in the Property Inspector, as shown below:
Also, make the text caption hidden.
After you click Insert Variable or [X], in the Insert Variable dialog, click the Variables drop-down list, and choose the variable you created.
After you insert the variable, the variable name gets enclosed within $$...$$, as shown below:
İndir
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 |
Hesabınıza giriş yapın