Two methods for Button Programming in Flash AC 2.0

There is no audio in the video. Sorry!

It’s pretty self-explanatory, but in this video we create and program two buttons in flash with two different methods. The first example shows the code being entered on the button object itself. In the second example we talk to the button on the 1st frame by using its “instance name” and then tell it what to do. Both methods work exactly the same and there is differing opinions on which method is the best. It’s all a matter of opinion and what makes sense to you.

Example One:
on(release){
gotoAndStop(20);
}

Example Two:
frame20_btn.onRelease=function(){
gotoAndStop(20);
}

[flv:/wp-content/media/makingbuttons_2.flv 480 368]

This entry was posted in Uncategorized. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*