Workshop Mission Services Portfolio Content Contact
  bookmark me  
Home > Content

(1) (2) (3) (4) (5)

Tell Target Scripting
Adding interactivity to the VCR buttons STOP and PLAY for this movie clip involves the use of 'Tell Target' action scripting. I selected the 'Play' VCR button and opened the action scripting window (Ctrl+Alt+A). Then I added an 'On Mouse Event' action (located under BASIC ACTIONS), then a 'tellTarget' action typing in the instance name (coupe1) of the movie clip. You can also click the target symbol at the bottom of the "Object Actions' palette and choose the movie clip.

To use 'tellTarget' scripting, the movieclip must have an instance name. Press - Ctrl-I - to bring up the 'Instance Palette.' Select the movie clip and type a name in the text field. I used the name of the file. Finally I gave the button a - Play - or - Stop - command depending on the button. The RETURN VCR button is an action script that unloads (unloadMovieNum) all shockwave animations on 'level 1' (the layer or level in which all other shockwave animations will be loaded) and returns the playhead back to FRAME 1 and stops. The next section will explain more about loading and unloading movies.

Action scripting for - Stop Button


Action scripting for - Play Button


Action script for - Return button


tellTargets must have an instance name. I use the same name.


Of course you can apply any number of other 'actions' to a movieclip. For example, using the 'setProperty' action you can resize the movie clip, reposition it anywhere on the screen, and more. You could add a 'setDrag' action giving visitors the option of dragging the movieclip around the screen. Explore the options.

(1) (2) (3) (4) (5)

 

1.818.509.2649