Action Script

The action script used in my Flash video is Action Script 3. I used the Action Script to make the video play forward and backward when moused onto or off of respectively.

The first line imports the event shortcuts into the animation so naming the remaining commands will be shorter and easier.

The stop(); acton as well as the Boolean = False makes the video stand still in the beginning, so that it will not start playing until the mouseover action defined by the following script comes into play.

The function moveMovieclip script contains an else script that declares that if the mouse is over the video the movie will move foreward to the next frame of the animatin and if the mouse is not over the video, then the script will move the animation to the previous frame.

The next part of the script is an Event Listener defined by an Event.ENTER_FRAME and two mouse events: MouseEvent.MOUSE_OVER and MouseEvent.MOUSE_OUT. Basically these events declare that when the mouse enters the frame, then the moveForeward is set to true so the animation plays foreward and when the mouse exits the frame it sets the moveForeward to false which makes the animation play in reverse.