Section 1
//MainTimeline (epicquest7_fla.MainTimeline)
package epicquest7_fla {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.ui.*;
public dynamic class MainTimeline extends MovieClip {
public var finalboss:MovieClip;
public var timer:Timer;
public var cursor:MovieClip;
public var failface:MovieClip;
public var beginadventure:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 9, frame10, 29, frame30);
}
public function win(_arg1:MouseEvent):void{
gotoAndPlay(3);
}
public function restart(_arg1:MouseEvent):void{
gotoAndPlay(1);
}
function frame10(){
cursor.visible = true;
}
function frame3(){
stop();
Mouse.show();
cursor.visible = false;
}
public function startgaem(_arg1:MouseEvent):void{
gotoAndPlay(2);
}
function frame4(){
Mouse.hide();
stage.addEventListener(MouseEvent.MOUSE_MOVE, follow2);
finalboss.addEventListener(MouseEvent.MOUSE_DOWN, win2);
}
function frame1(){
stop();
beginadventure.addEventListener(MouseEvent.MOUSE_DOWN, startgaem);
}
public function functionName(_arg1:TimerEvent):void{
gotoAndPlay(4);
}
function frame30(){
stop();
Mouse.show();
cursor.visible = false;
failface.addEventListener(MouseEvent.MOUSE_DOWN, restart);
}
public function follow2(_arg1:MouseEvent){
cursor.x = mouseX;
cursor.y = mouseY;
}
public function follow(_arg1:MouseEvent){
cursor.x = mouseX;
cursor.y = mouseY;
}
function frame2(){
stop();
Mouse.hide();
stage.addEventListener(MouseEvent.MOUSE_MOVE, follow);
finalboss.addEventListener(MouseEvent.MOUSE_DOWN, win);
timer = new Timer(2000, 1);
timer.addEventListener(TimerEvent.TIMER, functionName);
timer.start();
}
public function win2(_arg1:MouseEvent):void{
gotoAndPlay(3);
}
}
}//package epicquest7_fla