Intro to Interactivity (Programming) for Design
Look at the code
stop();
Object(this).MyButton.addEventListener(MouseEvent.CLICK, MyFunction1a);
function MyFunction1a(event:MouseEvent):void
{
gotoAndStop(1, "MySecondScene");
}
The important stuff for our purposes
Reference: ActionScript 3 fundamentals: Functions
Further Reading
Next: Planning!!! WE LOVE PLANNING!!!
Here's an example of a simplified flow chart. Your flow chart should be more detailed than the example bellow.