<class home>  <Jscript>   <back   next>

Controlling Shockwave or Flash

You can stop a Flash or Director movie from playing, or have it rewind or go to a specific frame in the movie with Javascript.

I got this to work in Netscape version 4.77, but not in Explorer version 5 for Mac.

example>>>


Controlling a Flash movie---Making a stop and play button.

Insert your flash movie in your Dreamweaver file and name it in the properties inspector and give it an ID name as well.


1. In the behaviors panel, select a browser version 3 and above.

2. In the document window, select the object you want add the behavior to. Most likely this will be a link.

*note: If you are using a link that doesn't need to go anywhere, put in a "#" symbol in the URL box, or the word "Javascript:;"
ex.


3. In the Behaviors Panel select the Control Shockwave or Flash action.

4. In the dialog box that follows, choose what you want to do to the movie, stop, start, rewind, etc. Click o.k.

5. In the Behaviors Panel select an event from the pull down (ex. onLoad, onClick, onMouseOver,etc.).