A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: controlling movie playback with cursor

  1. #1
    Junior Member
    Join Date
    May 2002
    can I control the way a movie plays from play to reverse with a cursor moving left to right. When the cursor is moved off the area the movie stops only to restart when the cursor is back in a hit area.

  2. #2
    Senior Member zoranvedek's Avatar
    Join Date
    Aug 2001
    Wagoner OK
    Here is an example of using the mouse x position to control start and stop of the movie.


    To make it play in reverse is a bit more tricky. You're going to have to map out everything(events at least) to its individual keyframes and then set up any move/morph events twice(once forward and once in reverse). It may actaully be simpler to map out an entire child movie so that it is going in reverse, and set a variable for every keyframe so that when you change direction(hide the forward movie and show the reverse movie) you can match them up to the correct keyframe, this could be done using an 'if' statement based on the keyframes variables.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center