Make a flash button in three steps

Step 1:

You have to Add a button to the first frame of your flash movie and convert it to a MovieClip symbo see here

1

Step 2:

Then Name your button “User defined” using the instance name box at the lower left

2

Step 3:
Then go to layer option or click the new layer button in your working window Create a new layer called script.

3

Add the code provided below to the first frame on the script layer:

"your button name".onPress = function() {     // When button is pressed, go to the provided link     getURL("http://www.iiuniveadds.com"); }

You can also open the link in a same window , child window, new browser window by using..

getURL(”http://www.iiuniveadds.com”,”_blank”);
You have created your first button in flash. But now you want to make it more dynamic and interactive. To achieve this, we will add a rollover effect to the flash button.
  • Open your button and add a second frame to the timeline.
  • Modify the button appearance on the second frame

4

Code to add a rollover to a flash button:

"your button name".onRollOver = function() {     this.gotoAndStop(2); } "your button name".onRollOut = function() {     this.gotoAndStop(1); }

Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

No Responses to “Make a flash button in three steps”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>