I am trying to create a small movie. Now I want to create an effect that once the mouse is in the right half of the movie - then movie should play forward. When the cursor moves to the left half of the movie then movie should play backwards. I have tried following some examples from online but I am kinda lost
Can someone please tell me step by step (or better yet youtube video) of the process?
This is what I have done so far:
- Create the animation named it "mc" of type Movie Clip
- Put it in the "main scene"
- The (first) keyframe at "main scene" has action "stop();"
- <<now i am lost >>
Note: Eventually the right and left part of the movie will link to different webpage.
You can probably just use an ENTER_FRAME event listener that runs continuously and in its event handler function you test the mouseX postion relative to the center of the stage/movie, and use nextFrame() or prevFrame() calls based on that relative position.
Event Listener are beyond me at the moment. Any other simpler way?
Of course, detailed step by step is appeciated
Nope, no simpler way. Event listeners are an absolute necessity for getting by in coding Flash content. If you need detailed step by step help, you should search Google for tiutorials.