computergeek67
|
Make a Mouse AvoiderFirst, open up Flash. I am using Flash 8. Now create a blank keyframe (F7) and then draw any shape you like. Convert it into a button (F8 then chose button.)
Next, on a new keyframe, make walls around the canvas. They can be any size or shape you like.
Convert the wall into a button. Open the Actions panel (F9) and enter this Actionscript
| Code: |
on(rollOut){
gotoAndStop("lose");
} |
Now put a frame in the 4th frame spot and name it "lose" without the quotes. Now make a red circle and make it a button. Open the Actions panel and enter this Actionscript:
| Code: |
on(rollOver){
gotoAndStop("frame2");
} |
Make a frame in the 3rd frame spot called "frame2" without the quotes.
Test the game out (control+Enter), and when the mouse rolls over the red button, it goes to a blank, new frame
|