Section 1
//MainTimeline (FoMv1_fla.MainTimeline)
package FoMv1_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
public dynamic class MainTimeline extends MovieClip {
public var channelGameOver:SoundChannel;
public var rNumber:TextField;
public var nextBtn:SimpleButton;
public var reTry:int;
public var startBtn:SimpleButton;
public var lastQuestion:int;
public var channelBg:SoundChannel;
public var choiceB:SimpleButton;
public var choiceC:SimpleButton;
public var firstQuestion:int;
public var choiceA:SimpleButton;
public var bgSnd:backMusic;
public var qNumber:TextField;
public var myMenu:ContextMenu;
public var pausePosition:int;
public var contextMessage:String;
public var menuItem1:ContextMenuItem;
public var rPBtn:SimpleButton;
public var startScreen:int;
public var lossScreen:int;
public var winScreen:int;
public var gameOverSnd:goSnd;
public var rP2Btn:SimpleButton;
public var musicBtn:MovieClip;
public function MainTimeline(){
addFrameScript(1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25);
}
public function rePlay(_arg1:MouseEvent):void{
gotoAndStop(startScreen);
trace("replay");
}
public function rClick(_arg1:MouseEvent):void{
if (currentFrame == lastQuestion){
gotoAndStop(winScreen);
trace("win");
} else {
gotoAndStop((currentFrame + 1));
qNumber.text = String((int(qNumber.text) + 1));
trace("correct");
};
}
public function startClick(_arg1:MouseEvent):void{
gotoAndStop((currentFrame + 1));
trace("start");
}
function frame10(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, rClick);
stop();
}
function frame14(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, rClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
function frame16(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, rClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
function frame15(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, rClick);
stop();
}
function frame17(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, rClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
public function musicClick(_arg1:MouseEvent):void{
if (channelBg != null){
pausePosition = channelBg.position;
channelBg.stop();
channelBg = null;
musicBtn.gotoAndStop(2);
trace("musicStop");
} else {
channelBg = bgSnd.play(pausePosition);
musicBtn.gotoAndStop(1);
trace("musicStart");
};
}
function frame11(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, rClick);
stop();
}
function frame3(){
nextBtn.addEventListener(MouseEvent.CLICK, nextClick);
musicBtn.addEventListener(MouseEvent.CLICK, musicClick);
stop();
channelBg = bgSnd.play();
}
function frame13(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, rClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
function frame5(){
stop();
channelBg.stop();
rPBtn.addEventListener(MouseEvent.CLICK, rePlay);
}
function frame7(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, rClick);
stop();
}
function frame8(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, rClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
function frame21(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, rClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
function frame22(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, rClick);
stop();
}
function frame4(){
stop();
channelBg.stop();
channelGameOver = gameOverSnd.play();
rP2Btn.addEventListener(MouseEvent.CLICK, rePlay);
}
function frame24(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, rClick);
stop();
}
function frame6(){
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, rClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
musicBtn.addEventListener(MouseEvent.CLICK, musicClick);
qNumber.text = String(1);
rNumber.text = String(0);
stop();
}
function frame2(){
stop();
startScreen = 2;
firstQuestion = 6;
lastQuestion = 25;
lossScreen = 4;
winScreen = 5;
reTry = 5;
contextMessage = "Made by Serazahr";
bgSnd = new backMusic();
gameOverSnd = new goSnd();
if (channelBg != null){
channelBg.stop();
};
myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
menuItem1 = new ContextMenuItem(contextMessage);
myMenu.customItems.push(menuItem1);
this.contextMenu = myMenu;
startBtn.addEventListener(MouseEvent.CLICK, startClick);
}
function frame23(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, rClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
function frame18(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, rClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
function frame19(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, rClick);
stop();
}
function frame9(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, rClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
function frame25(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, rClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
function frame20(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, wClick);
choiceB.addEventListener(MouseEvent.CLICK, rClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
function frame12(){
choiceA.removeEventListener(MouseEvent.CLICK, wClick);
choiceB.removeEventListener(MouseEvent.CLICK, wClick);
choiceC.removeEventListener(MouseEvent.CLICK, wClick);
choiceA.removeEventListener(MouseEvent.CLICK, rClick);
choiceB.removeEventListener(MouseEvent.CLICK, rClick);
choiceC.removeEventListener(MouseEvent.CLICK, rClick);
choiceA.addEventListener(MouseEvent.CLICK, rClick);
choiceB.addEventListener(MouseEvent.CLICK, wClick);
choiceC.addEventListener(MouseEvent.CLICK, wClick);
stop();
}
public function nextClick(_arg1:MouseEvent):void{
gotoAndStop(firstQuestion);
trace("next");
}
public function wClick(_arg1:MouseEvent):void{
trace("wrong");
if (int(rNumber.text) != reTry){
rNumber.text = String((int(rNumber.text) + 1));
trace("ret+1");
} else {
gotoAndStop(lossScreen);
trace("lost");
};
}
}
}//package FoMv1_fla
Section 2
//musicClip_22 (FoMv1_fla.musicClip_22)
package FoMv1_fla {
import flash.display.*;
public dynamic class musicClip_22 extends MovieClip {
public function musicClip_22(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package FoMv1_fla
Section 3
//Timeline_1 (FoMv1_fla.Timeline_1)
package FoMv1_fla {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class Timeline_1 extends MovieClip {
public const FRAME_RATE_ADJUST:Boolean = true;
public const LOADER_FRAME_RATE:Number = 30;
public const AUTO_PLAY:Boolean = false;
public var bar:MovieClip;
public var ngButton:SimpleButton;
public var playButton:SimpleButton;
public var movieFrameRate:Number;
public var loadingComplete:Boolean;
public var initialized:Boolean;
public function Timeline_1(){
addFrameScript(0, frame1, 1, frame2);
}
public function init():void{
if (initialized){
return;
};
movieFrameRate = 0;
if (((FRAME_RATE_ADJUST) && (stage))){
movieFrameRate = stage.frameRate;
stage.frameRate = LOADER_FRAME_RATE;
};
initialized = true;
stop();
if (((root) && ((root is MovieClip)))){
MovieClip(root).stop();
};
loadingComplete = false;
ngButton.addEventListener(MouseEvent.CLICK, ngButtonClickHandler, false, 0, true);
addEventListener(Event.ENTER_FRAME, enterFrameHandler, false, 0, true);
if (meetsVersion([9, 0, 28, 0])){
addEventListener(Event.REMOVED_FROM_STAGE, cleanup, false, 0, true);
};
enterFrameHandler();
}
public function enterFrameHandler(_arg1:Event=null):void{
var _local2:Number;
if (((((!(movieFrameRate)) && (FRAME_RATE_ADJUST))) && (stage))){
movieFrameRate = stage.frameRate;
stage.frameRate = LOADER_FRAME_RATE;
};
if (!loadingComplete){
_local2 = 0;
if (loaderInfo){
_local2 = (loaderInfo.bytesLoaded / loaderInfo.bytesTotal);
};
if (bar){
bar.scaleX = _local2;
};
if (_local2 == 1){
loadingComplete = true;
if (AUTO_PLAY){
startMovie();
} else {
gotoAndPlay("loaded");
};
};
};
}
public function meetsVersion(_arg1:Array):Boolean{
var _local2:Array;
var _local3:uint;
_local2 = String(Capabilities.version.split(" ")[1]).split(",");
_local3 = 0;
while (_local3 < _arg1.length) {
if (uint(_local2[_local3]) > _arg1[_local3]){
return (true);
};
if (uint(_local2[_local3]) < _arg1[_local3]){
return (false);
};
_local3++;
};
return (true);
}
public function playButtonClickHandler(_arg1:Event=null):void{
startMovie();
}
function frame1(){
initialized = false;
init();
}
function frame2(){
stop();
if (((playButton) && (!(playButton.hasEventListener(MouseEvent.CLICK))))){
playButton.addEventListener(MouseEvent.CLICK, playButtonClickHandler, false, 0, true);
};
}
public function ngButtonClickHandler(_arg1:Event):void{
navigateToURL(new URLRequest("http://www.newgrounds.com"), "_blank");
}
public function cleanup(_arg1:Event=null){
if (initialized){
ngButton.removeEventListener(MouseEvent.CLICK, ngButtonClickHandler);
removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
if (meetsVersion([9, 0, 28, 0])){
removeEventListener(Event.REMOVED_FROM_STAGE, cleanup);
};
if (movieFrameRate){
stage.frameRate = movieFrameRate;
movieFrameRate = 0;
};
};
initialized = false;
}
public function startMovie():void{
cleanup();
if (((root) && ((root is MovieClip)))){
MovieClip(root).play();
};
dispatchEvent(new Event(Event.COMPLETE));
}
}
}//package FoMv1_fla
Section 4
//backMusic (backMusic)
package {
import flash.media.*;
public dynamic class backMusic extends Sound {
}
}//package
Section 5
//goSnd (goSnd)
package {
import flash.media.*;
public dynamic class goSnd extends Sound {
}
}//package