Working with Movie Clips > Creating smart clips > Setting clip parameters
Setting clip parameters
You can write actions in the smart clip that use the defined parameters to change the behavior of a smart clip. In a simple example, if you define a clip parameter with the name Frame
, you could write the following script on the smart clip that uses the Frame
parameter:
onClipEvent(load){ gotoAndStop(Frame); }
You can then select the Smart Clip on the Stage and set the value for the Frame
parameter in the Clip Parameters panel to change which frame is played.
To set a smart clip's clip parameters:
1 | Select a smart clip instance on the Stage. |
Smart clips are movie clips, so only the first frame will display in authoring mode. | |
2 | Choose Window > Panels > Clip Parameters to display the Clip Parameters panel. |
3 | In the Clip Parameters panel, do one of the following: |
![]() |
Double-click the Value field to select it and enter a value for each parameter. |
If the parameter has been defined as a List, a pop-up menu will appear. | |
![]() |
If a custom interface has been defined, use the interface elements provided. |
4 | Choose Control > Test Movie to see the smart clip's behavior change. |
![]() |