Day #6 and Day #7 example - read chapter 3 of BGP book
Will be finished up in lab on Tuesday, May 20th (Day #7).
Very useful for your first Flash assignment - 4 question quiz.
//-------------------------------------- Frame #1 code -------------
start_btn.addEventListener(MouseEvent.CLICK, go);
function go(evt:MouseEvent) {
gotoAndStop(2);
}
stop();
//-------------------------------------- Frame #2 code -------------
rect_btn.addEventListener(MouseEvent.CLICK, rect);
function rect(evt:MouseEvent) {
gotoAndPlay(3);
}
circle_btn.addEventListener(MouseEvent.CLICK, circle);
function circle(evt:MouseEvent) {
gotoAndPlay(31);
}
//-------------------------------------- Frame #30 code -------------
stop();
//-------------------------------------- Frame #90 code -------------
stop();
backToStart_btn.addEventListener(MouseEvent.CLICK, startOver);
function startOver(evt:MouseEvent) {
gotoAndStop(1);
}