Flash CS4 Tutorial: Adding Button Functions HD part 4

Опубликовано: 07 Август 2026
на канале: AdobeTutor12341
6,555
7

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. }