|
Slider: Constraining One Sprite to Another Quicktime: Controlling a Quicktime Movie |
|
(n.b.: this is a simulation; QT doesn't do well in Shockwave) |
|
slider 1. Create a "Line" castmember in the Paint window, 1 pixel high and however long you would like your slider to be. Then create another Paint castmember as your Slider Handle, with these dimensions: 7 pixel by 20 pixels (use the castmember Property Inspector to determine the size of the castmember). Place these sprites on the Stage. Open the Script window, create a new script, and use the "Script" tab in the property inspector to select the Type of script as "Movie". Put in the following script:
Note that "2" indicates the Line sprite channel number and "16" indicates the Slider Handle sprite channel number. |
|
Quicktime movie control: movieTime/movieRate 2. Place the Quicktime castmember in Sprite channel #1. Play the movie to its end, then use the Message Window to find out the total "movieTime" of the QT movie, by typing in:
Using a Slider to Scroll through Pictures Replace the movieTime/movieRate scripts with a script to replace the cast member in sprite 1: on mouseWithin |