Welcome to Virtual Tutorial World Guest!




Make a Mouse Avoider

 
Post new topic   Reply to topic    VTW Forum Index -> Actionscript
View previous topic :: View next topic  
Author Message
computergeek67
Administrator
Administrator


Joined: 31 Jul 2007
Posts: 144
Tokens: 147
Location: US

PostPosted: Fri Sep 28, 2007 12:25 pm    Post subject: Make a Mouse Avoider Reply with quote

First, 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


_________________



Come to me if you have any questions
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    VTW Forum Index -> Actionscript All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2005 phpBB Group
Virtual Tutorial World ©2007-2008 computergeek67

Affiliates