Section 1
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 2
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.utils.*;
import flash.display.*;
public class Tween extends EventDispatcher {
public var isPlaying:Boolean;// = false
public var obj:Object;// = null
public var prop:String;// = ""
public var func:Function;
public var begin:Number;// = NAN
public var change:Number;// = NAN
public var useSeconds:Boolean;// = false
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var looping:Boolean;// = false
private var _duration:Number;// = NAN
private var _time:Number;// = NAN
private var _fps:Number;// = NAN
private var _position:Number;// = NAN
private var _startTime:Number;// = NAN
private var _intervalID:uint;// = 0
private var _finish:Number;// = NAN
private var _timer:Timer;// = null
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function get time():Number{
return (this._time);
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function get FPS():Number{
return (this._fps);
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
}
}//package fl.transitions
Section 3
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_RESUME:String = "motionResume";
public static const MOTION_LOOP:String = "motionLoop";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 4
//expressions_6 (tkChallenge_fla.expressions_6)
package tkChallenge_fla {
import flash.display.*;
public dynamic class expressions_6 extends MovieClip {
public function expressions_6(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
gotoAndPlay(2);
}
}
}//package tkChallenge_fla
Section 5
//MainTimeline (tkChallenge_fla.MainTimeline)
package tkChallenge_fla {
import flash.events.*;
import fl.transitions.easing.*;
import fl.transitions.*;
import flash.utils.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var btnX:MovieClip;
public var box1:MovieClip;
public var kel2:MovieClip;
public var indicatorAnswer:MovieClip;
public var box2:MovieClip;
public var txtOutput:TextField;
public var box3:MovieClip;
public var jen1:MovieClip;
public var box4:MovieClip;
public var expressions:MovieClip;
public var jen2:MovieClip;
public var box5:MovieClip;
public var btnIntroStart:MovieClip;
public var box6:MovieClip;
public var box7:MovieClip;
public var btn0:MovieClip;
public var box8:MovieClip;
public var loader_mc:movie_mc;
public var loaded_txt:TextField;
public var btn1:MovieClip;
public var btnOk:MovieClip;
public var btn2:MovieClip;
public var btn3:MovieClip;
public var btn4:MovieClip;
public var btn5:MovieClip;
public var btn6:MovieClip;
public var btn7:MovieClip;
public var btn8:MovieClip;
public var btn9:MovieClip;
public var btnRestart:MovieClip;
public var brush:MovieClip;
public var kel1:MovieClip;
public var dat:Date;
public var bBlocked:Boolean;
public var bTkEnabled:Boolean;
public var iLevel:uint;
public var strQuestion:String;
public var iAnswer:uint;
public var myTween:Tween;
public var myInterval:uint;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.target.bytesLoaded;
var _local3:Number = _arg1.target.bytesTotal;
var _local4:Number = (_local2 / _local3);
loader_mc.scaleX = _local4;
loaded_txt.text = (("Loading... " + Math.round((_local4 * 100))) + "%");
}
public function onComplete(_arg1:Event):void{
loaded_txt.text = "Finished loading.";
btnIntroStart.alpha = 1;
btnIntroStart.addEventListener(MouseEvent.CLICK, startGame);
}
public function startGame(_arg1:MouseEvent):void{
btnIntroStart.removeEventListener(MouseEvent.CLICK, startGame);
gotoAndStop(2);
}
public function upLevel():void{
txtOutput.text = "";
if (iLevel == 1){
myTween = new Tween(box1, "y", Regular.easeIn, box1.y, -400, 2, true);
myTween.FPS = 40;
} else {
if (iLevel == 2){
myTween = new Tween(box2, "y", Regular.easeIn, box2.y, -400, 2, true);
myTween.FPS = 40;
} else {
if (iLevel == 3){
myTween = new Tween(box3, "y", Regular.easeIn, box3.y, -400, 2, true);
myTween.FPS = 40;
} else {
if (iLevel == 4){
myTween = new Tween(box4, "y", Regular.easeIn, box4.y, -400, 2, true);
myTween.FPS = 40;
} else {
if (iLevel == 5){
myTween = new Tween(box5, "y", Regular.easeIn, box5.y, -400, 2, true);
myTween.FPS = 40;
} else {
if (iLevel == 6){
myTween = new Tween(box6, "y", Regular.easeIn, box6.y, -400, 2, true);
myTween.FPS = 40;
} else {
if (iLevel == 7){
myTween = new Tween(box7, "y", Regular.easeIn, box7.y, -400, 2, true);
myTween.FPS = 40;
} else {
if (iLevel == 8){
myTween = new Tween(box8, "y", Regular.easeIn, box8.y, -400, 2, true);
myTween.FPS = 40;
};
};
};
};
};
};
};
};
iLevel++;
var _local1:* = Math.floor((Math.random() * 5));
if (iLevel == 1){
if (_local1 == 0){
iAnswer = 2;
strQuestion = "A = 1 + 1";
};
if (_local1 == 1){
iAnswer = 9;
strQuestion = "A = 10 - 1";
};
if (_local1 == 2){
iAnswer = 6;
strQuestion = "A = 1 + 2 + 3";
};
if (_local1 == 3){
iAnswer = 1;
strQuestion = "A = 1 - 0";
};
if (_local1 == 4){
iAnswer = 1;
strQuestion = "A = 1 x 1";
};
box1.txtQuestion.text = strQuestion;
} else {
if (iLevel == 2){
if (_local1 == 0){
iAnswer = 999;
strQuestion = "A = 1000 - 1";
};
if (_local1 == 1){
iAnswer = 209;
strQuestion = "A = 234 - 25";
};
if (_local1 == 2){
iAnswer = 132;
strQuestion = "A = 12 x 11";
};
if (_local1 == 3){
iAnswer = 16;
strQuestion = "A = 2 4 8 ...";
};
if (_local1 == 4){
iAnswer = 16;
strQuestion = "A = 2 20 4 18 6 ...";
};
box2.txtQuestion.text = strQuestion;
} else {
if (iLevel == 3){
if (_local1 == 0){
iAnswer = 8;
strQuestion = "A = Planets in Sol";
};
if (_local1 == 1){
iAnswer = 8;
strQuestion = "A = Spider Legs";
};
if (_local1 == 2){
iAnswer = 5;
strQuestion = "B = 7. A = B + C - 2 - C";
};
if (_local1 == 3){
iAnswer = 21;
strQuestion = "A = Black Jack";
};
if (_local1 == 4){
iAnswer = 29;
strQuestion = "A = When it leaps";
};
box3.txtQuestion.text = strQuestion;
} else {
if (iLevel == 4){
if (_local1 == 0){
iAnswer = 40;
strQuestion = "A = weeks/year - months/year";
};
if (_local1 == 1){
iAnswer = 1440;
strQuestion = "A = minutes/day";
};
if (_local1 == 2){
iAnswer = 18;
strQuestion = "A = Douze - kolme + een + ocho";
};
if (_local1 == 3){
iAnswer = (dat.getFullYear() - (dat.getMonth() + 1));
strQuestion = "A = year - month";
};
if (_local1 == 4){
iAnswer = 20;
strQuestion = "A = shichi + ventidue - neun";
};
box4.txtQuestion.text = strQuestion;
} else {
if (iLevel == 5){
if (_local1 == 0){
iAnswer = 77;
strQuestion = "A = LXXVII";
};
if (_local1 == 1){
iAnswer = 3070;
strQuestion = "A = (HEX) 0BFE";
};
if (_local1 == 2){
iAnswer = 65;
strQuestion = "A = ASC('A')";
};
if (_local1 == 3){
iAnswer = 2610;
strQuestion = "A = ..--- -.... .---- -----";
};
if (_local1 == 4){
iAnswer = 91;
strQuestion = "A = 1011011";
};
box5.txtQuestion.text = strQuestion;
} else {
if (iLevel == 6){
if (_local1 == 0){
iAnswer = 6;
strQuestion = "A = James Bond - Elvis Presley";
};
if (_local1 == 1){
iAnswer = 41;
strQuestion = "A = Ali Babba and the thieves";
};
if (_local1 == 2){
iAnswer = 42;
strQuestion = "A = The Answer to the Ultimate Question";
};
if (_local1 == 3){
iAnswer = 7;
strQuestion = "A = For your fifth chance ...";
};
if (_local1 == 4){
iAnswer = 1959;
strQuestion = "A = Luna Landing #1";
};
box6.txtQuestion.text = strQuestion;
} else {
if (iLevel == 7){
if (_local1 == 0){
iAnswer = 30;
strQuestion = "A = Zn";
};
if (_local1 == 1){
iAnswer = 14;
strQuestion = "A = Si";
};
if (_local1 == 2){
iAnswer = 79;
strQuestion = "A = Au";
};
if (_local1 == 3){
iAnswer = 13;
strQuestion = "A = Al";
};
if (_local1 == 4){
iAnswer = 29;
strQuestion = "A = Cu";
};
box7.txtQuestion.text = strQuestion;
} else {
if (iLevel == 8){
if (_local1 == 0){
iAnswer = 45;
strQuestion = "A = Pneumonoultramicroscopicsilicovolcanoconiosis";
};
if (_local1 == 1){
iAnswer = 13;
strQuestion = "A = ABCDEFGHIJKLNOPQRSTUVWXYZ";
};
if (_local1 == 2){
iAnswer = 12;
strQuestion = "A = or or nor OR nor nor or NOR or or OR condor";
};
if (_local1 == 3){
iAnswer = 2971;
strQuestion = "A = Uxp uipvtboe ojof ivoesfe tfwfouz pof";
};
if (_local1 == 4){
iAnswer = 4245;
strQuestion = "A = 12 35 61 34 56 12 36";
};
box8.txtQuestion.text = strQuestion;
} else {
if (iLevel == 9){
bBlocked = true;
bTkEnabled = true;
expressions.gotoAndPlay(2);
kel1.gotoAndPlay(1);
kel2.gotoAndPlay(2);
jen1.gotoAndPlay(1);
jen2.gotoAndPlay(2);
brush.y = 340;
};
};
};
};
};
};
};
};
};
}
public function tkMe():void{
var _local1:* = (Math.random() * 100);
if (bTkEnabled == true){
if (brush.y > 425){
brush.y = (brush.y - (Math.ceil((Math.random() * 10)) + 2));
} else {
if (brush.y < 289){
brush.y = (brush.y + (Math.ceil((Math.random() * 10)) + 2));
} else {
brush.y = (brush.y + (Math.ceil((Math.random() * 21)) - 10));
};
};
kel1.rotation = (Math.ceil((Math.random() * 31)) - 15);
kel2.rotation = ((180 + Math.ceil((Math.random() * 31))) - 15);
jen1.rotation = (Math.ceil((Math.random() * 31)) - 15);
jen2.rotation = ((180 + Math.ceil((Math.random() * 31))) - 15);
};
}
public function mouseClicked(_arg1:MouseEvent):void{
var _local2:* = txtOutput.text;
if (bBlocked == false){
if (_arg1.target.name == "btn1"){
if (txtOutput.length < 4){
txtOutput.text = (_local2 + "1");
};
} else {
if (_arg1.target.name == "btn2"){
if (txtOutput.length < 4){
txtOutput.text = (_local2 + "2");
};
} else {
if (_arg1.target.name == "btn3"){
if (txtOutput.length < 4){
txtOutput.text = (_local2 + "3");
};
} else {
if (_arg1.target.name == "btn4"){
if (txtOutput.length < 4){
txtOutput.text = (_local2 + "4");
};
} else {
if (_arg1.target.name == "btn5"){
if (txtOutput.length < 4){
txtOutput.text = (_local2 + "5");
};
} else {
if (_arg1.target.name == "btn6"){
if (txtOutput.length < 4){
txtOutput.text = (_local2 + "6");
};
} else {
if (_arg1.target.name == "btn7"){
if (txtOutput.length < 4){
txtOutput.text = (_local2 + "7");
};
} else {
if (_arg1.target.name == "btn8"){
if (txtOutput.length < 4){
txtOutput.text = (_local2 + "8");
};
} else {
if (_arg1.target.name == "btn9"){
if (txtOutput.length < 4){
txtOutput.text = (_local2 + "9");
};
} else {
if (_arg1.target.name == "btn0"){
if (txtOutput.length < 4){
txtOutput.text = (_local2 + "0");
};
} else {
if (_arg1.target.name == "btnOk"){
if (txtOutput.text == iAnswer.toString()){
indicatorAnswer.gotoAndPlay(16);
upLevel();
} else {
indicatorAnswer.gotoAndPlay(26);
bBlocked = true;
btnRestart.alpha = 1;
};
} else {
if (_arg1.target.name == "btnX"){
txtOutput.text = "";
};
};
};
};
};
};
};
};
};
};
};
};
};
if ((((_arg1.target.name == "btnRestart")) && ((btnRestart.alpha == 1)))){
btnRestart.alpha = 0;
box8.y = 492;
box7.y = 437;
box6.y = 382;
box5.y = 327;
box4.y = 272;
box3.y = 217;
box2.y = 162;
box1.y = 107;
bTkEnabled = false;
iLevel = 0;
strQuestion = "";
iAnswer = 0;
bBlocked = false;
txtOutput.text = "";
indicatorAnswer.gotoAndPlay(1);
box2.txtQuestion.text = "? ? ? ?";
box3.txtQuestion.text = "? ? ? ?";
box4.txtQuestion.text = "? ? ? ?";
box5.txtQuestion.text = "? ? ? ?";
box6.txtQuestion.text = "? ? ? ?";
box7.txtQuestion.text = "? ? ? ?";
box8.txtQuestion.text = "? ? ? ?";
upLevel();
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
}
function frame2(){
stop();
kel1.gotoAndStop(1);
kel2.gotoAndStop(1);
jen1.gotoAndStop(1);
jen2.gotoAndStop(1);
box1.box.gotoAndStop(1);
box2.box.gotoAndStop(2);
box3.box.gotoAndStop(3);
box4.box.gotoAndStop(4);
box5.box.gotoAndStop(5);
box6.box.gotoAndStop(6);
box7.box.gotoAndStop(7);
box8.box.gotoAndStop(8);
dat = new Date();
bBlocked = false;
bTkEnabled = false;
iLevel = 0;
strQuestion = "";
iAnswer = 0;
myInterval = setInterval(tkMe, 250);
stage.addEventListener(MouseEvent.CLICK, mouseClicked);
upLevel();
}
}
}//package tkChallenge_fla
Section 6
//skyride_18 (tkChallenge_fla.skyride_18)
package tkChallenge_fla {
import flash.display.*;
public dynamic class skyride_18 extends MovieClip {
public function skyride_18(){
addFrameScript(14, frame15, 24, frame25, 35, frame36);
}
function frame15(){
gotoAndPlay(1);
}
function frame25(){
gotoAndPlay(1);
}
function frame36(){
gotoAndPlay(26);
}
}
}//package tkChallenge_fla
Section 7
//movie_mc (movie_mc)
package {
import flash.display.*;
public dynamic class movie_mc extends MovieClip {
}
}//package