Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Flash CS4 Tutorial: Adding Button Functions HD part 4

Loading...

Sign in or sign up now!
4,734
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 17, 2009

Rate, Comment, Subscribe please

Script:
1. stop(1);
2.
3. //handle events for buttons...
4. about.addEventListener(MouseEvent.CLICK, clickSection);
5. home.addEventListener(MouseEvent.CLICK, clickSection);
6. pictures.addEventListener(MouseEvent.CLICK, clickSection);
7. contact.addEventListener(MouseEvent.CLICK, clickSection);
8.
9. function clickSection(evtObj:MouseEvent){
10.//trace shows what's happening...in the output window
11.trace("The "+evtObj.target.name+" button was clicked!")
12.//go to the section clicked on...
13.gotoAndStop(evtObj.target.name)
14. }

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (AdobeTutor12341)

  • no problem

see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • great tutorial but the script gives me an error:(

    this part

    9. function clickSection(evtObj:MouseEvent­){

    plz help

  • Great video! is it possible to add the buttons to dreamweaver and still have them linked to the pages?

  • could you put the Script at 6:57 in the description.

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more