Adobe Flash: AS1 Button Actions

Here are the button actions we use in our class when we are using actionscript 1. Remember we learn both actionscript 1 and 3, which are used differently.

Button actions go on the button, not the keyframe:

Play button:

on(release){
play();
}

Stop button:

on(release){
stop();
}

Go to button:

on(release){
gotoAndPlay(“myMovie”);
}

Take note that myMovie is a frame label.

Actionscript 1+2 vs Actionscript 3

In my multimedia class I am teaching my students AS1 and AS3. I give the students examples of each. Now, what I found is that 20 of my 20 students are doing their final projects using AS1. Even the ones with programming experience. What does this tell me? Nothing that I dont already think. Adobe needs to continue to support AS1 because a lot of people prefer it. Plus those with limited programming experience can be more successful with flash. IMO, AS3 is only more powerful for larger projects, but not small projects.