This week you will work, for the first time, with an Interactive timeline. We will use ActionScripting 3.0
Action Script 3.0 should be the type of project you create, NOT an HTML5 Canvas project.

Many of you wanted to have something happening (an animation) AFTER the button was pressed and not limited to the user holding the button.
This week we are going to work with the structure that facilitates just that.

You need to understand how to "name a button" by entering the name in the properties panel of a button already on Stage. You also need to get familiar with functions, how to declare them and name them in the script.

Programmers regularly work with functions to organize their scripts. For us this is a difficult concept.
It makes it even more difficult the fact that functions are use to simplify the code when you have "a list of tasks to accomplish",
but our buttons are right now doing one thing at a time, so using functions is actually complicating our job as beginners.
Later on, when you do much more complex projects, you will see the benefit of functions.
Right now your job is to memorize the structure of the code :(

You also need to pay attention to Flash's "ready-made" functions. They are called "methods", and those are the "Timeline actions" we constantly use in flash.

Stop()
Play()
gotoAndPlay()
gotoAndStop()
nextFrame()
previousFrame()

Check the extra pages that I have given links to in this module.

There is a page on Funcions, another one on variables and a thrid one on how to program a button.

Take advantage of the web: do a search for specific terms, being programming concepts, errors...

ex. I searched for "Actionscripting 3.0 function data type" recently and i got a really good entry in wikipedia for ActionScripting 3.0.
I recommended it as a general introduction. http://en.wikipedia.org/wiki/ActionScript 

My video-tutorials

Video 1: Button structure and instance-names in Flash. http://soma.sbcc.edu/users/ajarabo/F_online/A_MOODLE_FILES/Training_movies/AS_button&name.mov

Video 2: How to program a button in AS3. The first time you do this it might seem like a world to you but this piece of code is something you will always use in this exact way and as you learn more ActionScripting you will realize how valuable and versatile it can be. http://soma.sbcc.edu/users/ajarabo/F_online/A_MOODLE_FILES/Training_movies/AS_program_button.mov

Video3: How to use a movieclip as an answer when the timeline command used is gotoAndStop (frame_number)
http://soma.sbcc.edu/users/ajarabo/F_online/A_MOODLE_FILES/Training_movies/AS_movieclip_answer.mov