The Flash command action is only available if a Flash object (.swf) is accessible from the location to which the action is being added.
See also: Working with Flash animations
To execute a Flash command:
Add an action to your title and select Flash Command from the Action list in the Action and Target group.
See also: Adding an action
Select the appropriate Flash animation target to which you want to apply the Flash command from the Target list in the Action and Target group.
Use the Command list to select from the available Flash commands for communicating with your Flash animation:
Call Function |
When executed, the action will execute a function defined within the target Flash animation. Use the Name field to specify the name of the function you want to execute. Use the Value field to optionally specify a string-valued argument for the function. For example, if your Flash animation contains a function myFunction( arg ), that you want to execute, specify myFunction in the Name field and specify the appropriate value (representing arg) that you want passed into the function in the Value field.
|
||
Get Variable |
When executed, the action will retrieve the value of a variable contained within the target Flash animation and save it to a specified variable within your title. Specify the target Flash animation's variable name in the Name field and use the Variable list to select the variable within your title to which you want to save the value. |
||
Go To Frame |
When executed, the action will navigate within the target Flash animation to the frame number specified in the Number field. The frame number specified is 0-based. That is, if you want to navigate to the first frame of the target Flash animation, enter "0" in the Number field. If you want to navigate to the 34th frame of the target Flash animation, enter "33" in the Number field. |
||
Go To Label |
Similar to the Go To Frame option, when executed, the action will navigate within the target Flash animation to the frame label specified in the Name field. The label Name specified must match a frame label within the target Flash animation. |
||
Go To Next Frame |
When executed, the action will navigate within the target Flash animation to the next frame. |
||
Go To Previous Frame |
When executed, the action will navigate within the target Flash animation to the previous frame. |
||
Pause |
When executed, the action will pause the target Flash animation. |
||
Play |
When executed, the action will play the target Flash animation. |
||
Set Variable |
When executed, the action will set the value of a variable contained within the target Flash animation to the value specified in the Value field. Specify the target Flash animation's variable name in the Name field and use the Value field to specify the value to which this variable should be set. You can directly specify a value, specify a random value, or specify the value of an existing variable to which the Flash animation's variable should be set. To specify a random value, enter RAND(min, max) in the Value field. The random number assigned will be greater than or equal to the min value specified and less than or equal to the max value specified. The random number generated will be assigned to the value of the variable specified in the Name field. To specify the value of an existing variable to which Flash animation's variable should be set, enter VAR(Variable_Name) in the Value field, where Variable_Name is the name of the variable within your title whose value will be assigned to the value of the variable specified in the Name field. |
||
Stop |
When executed, the action will stop the target Flash animation. |
The Flash command is set.
© Copyright eLearning Brothers 2021