Section 1
//checkpoint_51 (tableflipdagame_fla.checkpoint_51)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class checkpoint_51 extends MovieClip {
public function checkpoint_51(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).checkPointArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 2
//CollectionDisplay_35 (tableflipdagame_fla.CollectionDisplay_35)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class CollectionDisplay_35 extends MovieClip {
public var collectableDisplay:TextField;
public var collectionType;
public var k;
public function CollectionDisplay_35(){
addFrameScript(0, frame1);
}
public function collectionTick(_arg1:Event){
var _local2:* = false;
k = 0;
while (k < MovieClip(root).collectedStuff.length) {
if (MovieClip(root).collectedStuff[k][0] == collectionType){
_local2 = true;
collectableDisplay.text = MovieClip(root).collectedStuff[k][1].toString();
};
k++;
};
if (!_local2){
MovieClip(root).collectedStuff.push([collectionType, 0]);
};
}
function frame1(){
collectionType = String(collectableDisplay.text);
addEventListener(Event.ENTER_FRAME, collectionTick);
}
}
}//package tableflipdagame_fla
Section 3
//fryer_68 (tableflipdagame_fla.fryer_68)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class fryer_68 extends MovieClip {
public function fryer_68(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).fryArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 4
//fryer_moverLeft_49 (tableflipdagame_fla.fryer_moverLeft_49)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class fryer_moverLeft_49 extends MovieClip {
public var moveDirection;
public function fryer_moverLeft_49(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).fryerControlArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
moveDirection = "LEFT";
}
}
}//package tableflipdagame_fla
Section 5
//fryer_moverRight_50 (tableflipdagame_fla.fryer_moverRight_50)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class fryer_moverRight_50 extends MovieClip {
public var moveDirection;
public function fryer_moverRight_50(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).fryerControlArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
moveDirection = "RIGHT";
}
}
}//package tableflipdagame_fla
Section 6
//Level1_4 (tableflipdagame_fla.Level1_4)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level1_4 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level1_4(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 7
//Level10_72 (tableflipdagame_fla.Level10_72)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level10_72 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level10_72(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 8
//Level11_80 (tableflipdagame_fla.Level11_80)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level11_80 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level11_80(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 9
//Level2_21 (tableflipdagame_fla.Level2_21)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level2_21 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level2_21(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 10
//Level3_36 (tableflipdagame_fla.Level3_36)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level3_36 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level3_36(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 11
//Level4_39 (tableflipdagame_fla.Level4_39)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level4_39 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level4_39(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 12
//Level5_44 (tableflipdagame_fla.Level5_44)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level5_44 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level5_44(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 13
//Level6_54 (tableflipdagame_fla.Level6_54)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level6_54 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level6_54(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 14
//Level7_57 (tableflipdagame_fla.Level7_57)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level7_57 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level7_57(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 15
//Level8_63 (tableflipdagame_fla.Level8_63)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level8_63 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level8_63(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 16
//Level9_67 (tableflipdagame_fla.Level9_67)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Level9_67 extends MovieClip {
public var mcPlayer:MovieClip;
public var platformArray;
public var oneWayPlatformArray;
public var slopeArray;
public var fryArray;
public var checkPointArray;
public var oneWayCeilingArray;
public var trampArray;
public var updraftArray;
public var teleportArray;
public var keyArray;
public var conveyorArray;
public var movingPlatformArray;
public var controlArray;
public var animationsArray;
public var climbableArray;
public var ladderArray;
public var collectablesArray;
public var movingFryerArray;
public var fryerControlArray;
public var messageArray;
public function Level9_67(){
addFrameScript(0, frame1);
}
function frame1(){
platformArray = new Array();
oneWayPlatformArray = new Array();
slopeArray = new Array();
fryArray = new Array();
checkPointArray = new Array();
oneWayCeilingArray = new Array();
trampArray = new Array();
updraftArray = new Array();
teleportArray = new Array();
keyArray = new Array();
conveyorArray = new Array();
movingPlatformArray = new Array();
controlArray = new Array();
animationsArray = new Array();
climbableArray = new Array();
ladderArray = new Array();
collectablesArray = new Array();
movingFryerArray = new Array();
fryerControlArray = new Array();
messageArray = new Array();
MovieClip(parent).mcLevel = this;
if (MovieClip(parent).teleportX != "-"){
mcPlayer.x = Number(MovieClip(parent).teleportX);
};
if (MovieClip(parent).teleportY != "-"){
mcPlayer.y = Number(MovieClip(parent).teleportY);
};
MovieClip(parent).newLevel();
}
}
}//package tableflipdagame_fla
Section 17
//MainTimeline (tableflipdagame_fla.MainTimeline)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var jumpStengthtxt:TextField;
public var actionKeyB:TextField;
public var updrafttxt:TextField;
public var climbspeedtxt:TextField;
public var debug:TextField;
public var climbupKeyB:TextField;
public var climbdownKey:TextField;
public var climbdownKeyB:TextField;
public var debugKey:TextField;
public var actionKey:TextField;
public var leftKey:TextField;
public var leftKeyB:TextField;
public var rightKeyB:TextField;
public var speedtxt:TextField;
public var btn_start:SimpleButton;
public var gravitytxt:TextField;
public var scrolling:TextField;
public var preloaderMC:MovieClip;
public var climbupKey:TextField;
public var jumpKey:TextField;
public var jumpKeyB:TextField;
public var conveyortxt:TextField;
public var resistancetxt:TextField;
public var rightKey:TextField;
public var percentLoaded;
public var talking;
public var mcLevel:MovieClip;
public var parscroll:MovieClip;
public var parralax_fore:MovieClip;
public var parralaxArray;
public var JUMPSTRENGTH;
public var GRAVITY;
public var UPDRAFTSTRENGTH;
public var RESISTANCE;
public var SPEED;
public var CLIMBSPEED;
public var xMove;
public var yMove;
public var grounded;
public var touchingSlope;
public var inUpdraft;
public var targetAnimation;
public var targetAnimationB;
public var currentAnimation;
public var facingDirection;
public var CONVEYORSPEED;
public var conveying;
public var currentUpdraftStrength;
public var dying;
public var canClimb;
public var climbing;
public var lastClimbX;
public var lastClimbY;
public var onLadder;
public var lastPos;
public var safeSpot;
public var foundGround;
public var foundUpdraft;
public var hitThis;
public var i;
public var k;
public var tempVar;
public var tempPointA;
public var tempPointB;
public var tempPointC;
public var ScrollLimitLeft;
public var ScrollLimitRight;
public var ScrollLimitBottom;
public var ScrollLimitTop;
public var teleporting;
public var teleportFrame;
public var teleportX;
public var teleportY;
public var keysOwned;
public var collectedStuff;
public var KEYLEFTIN;
public var KEYRIGHTIN;
public var KEYJUMPIN;
public var KEYACTIONIN;
public var KEYCLIMBUPIN;
public var KEYCLIMBDOWNIN;
public var KEYLEFTCODE;
public var KEYRIGHTCODE;
public var KEYJUMPCODE;
public var KEYACTIONCODE;
public var KEYLEFTCODEB;
public var KEYRIGHTCODEB;
public var KEYJUMPCODEB;
public var KEYACTIONCODEB;
public var KEYCLIMBUPCODE;
public var KEYCLIMBDOWNCODE;
public var KEYCLIMBUPCODEB;
public var KEYCLIMBDOWNCODEB;
public var KEYDEBUGCODE;
public var STAGEWIDTH;
public var STAGEHEIGHT;
public var debugMode;
public var allowDebug;
public var scrollingMode;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 3, frame4);
}
public function onLoadStuff(_arg1:ProgressEvent){
percentLoaded = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
preloaderMC.gotoAndStop(Math.round(percentLoaded));
if (percentLoaded == 100){
gotoAndPlay(2);
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onLoadStuff);
};
}
public function onClickStart(_arg1:MouseEvent){
play();
btn_start.removeEventListener(MouseEvent.CLICK, onClickStart);
}
public function onGameTick(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
if (!dying){
if (!talking){
xMove = (xMove * RESISTANCE);
if (KEYLEFTIN){
if (!climbing){
targetAnimation = "RUN";
xMove = (xMove - SPEED);
} else {
if (onLadder){
if (!KEYCLIMBUPIN){
};
};
xMove = (xMove - CLIMBSPEED);
};
};
if (KEYRIGHTIN){
if (!climbing){
targetAnimation = "RUN";
xMove = (xMove + SPEED);
} else {
if (onLadder){
if (!KEYCLIMBUPIN){
};
};
xMove = (xMove + CLIMBSPEED);
};
};
if (!canClimb){
climbing = false;
};
if (((KEYCLIMBUPIN) && (canClimb))){
if (!KEYJUMPIN){
yMove = (yMove - CLIMBSPEED);
climbing = true;
touchingSlope = "not";
} else {
if (yMove > 0){
yMove = (yMove - CLIMBSPEED);
climbing = true;
};
};
};
if (((KEYCLIMBDOWNIN) && (canClimb))){
if (!KEYJUMPIN){
yMove = (yMove + CLIMBSPEED);
if (!grounded){
climbing = true;
};
} else {
if (yMove > 0){
yMove = (yMove + CLIMBSPEED);
climbing = true;
};
};
};
if (onLadder){
xMove = 0;
};
if (!grounded){
yMove = (yMove + GRAVITY);
} else {
if (KEYJUMPIN){
climbing = false;
grounded = false;
touchingSlope = "not";
yMove = -(JUMPSTRENGTH);
};
};
if (inUpdraft){
yMove = (yMove - currentUpdraftStrength);
};
if (touchingSlope == "not"){
mcLevel.mcPlayer.x = (mcLevel.mcPlayer.x + xMove);
mcLevel.mcPlayer.y = (mcLevel.mcPlayer.y + yMove);
} else {
tempPointA = mcLevel.slopeArray[touchingSlope].localToGlobal(mcLevel.slopeArray[touchingSlope].pointA);
tempPointA = mcLevel.globalToLocal(tempPointA);
tempPointB = mcLevel.slopeArray[touchingSlope].localToGlobal(mcLevel.slopeArray[touchingSlope].pointB);
tempPointB = mcLevel.globalToLocal(tempPointB);
_local3 = Math.atan2((tempPointA.y - tempPointB.y), (tempPointA.x - tempPointB.x));
mcLevel.mcPlayer.x = (mcLevel.mcPlayer.x - (xMove * Math.cos(_local3)));
mcLevel.mcPlayer.y = (mcLevel.mcPlayer.y - (xMove * Math.sin(_local3)));
};
foundGround = false;
inUpdraft = false;
mcLevel.mcPlayer.y = (mcLevel.mcPlayer.y + 1);
i = 0;
while (i < mcLevel.trampArray.length) {
if (mcLevel.trampArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
if (!grounded){
if (lastPos.y < mcLevel.trampArray[i].y){
mcLevel.mcPlayer.y = mcLevel.trampArray[i].y;
yMove = -(mcLevel.trampArray[i].power);
};
};
};
i++;
};
i = 0;
while (i < mcLevel.platformArray.length) {
if (mcLevel.platformArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
if (lastPos.y <= mcLevel.platformArray[i].y){
climbing = false;
mcLevel.mcPlayer.y = mcLevel.platformArray[i].y;
foundGround = true;
grounded = true;
yMove = 0;
} else {
if (lastPos.x <= mcLevel.platformArray[i].x){
if (touchingSlope == "not"){
mcLevel.mcPlayer.x = (mcLevel.platformArray[i].x - (mcLevel.mcPlayer.collisionBox.width / 2));
xMove = (xMove * -0.8);
} else {
if ((((mcLevel.mcPlayer.y < (mcLevel.platformArray[i].y + 30))) && ((mcLevel.mcPlayer.y > (mcLevel.platformArray[i].y - 5))))){
mcLevel.mcPlayer.y = mcLevel.platformArray[i].y;
foundGround = true;
grounded = true;
yMove = 0;
touchingSlope = "not";
} else {
mcLevel.mcPlayer.x = lastPos.x;
mcLevel.mcPlayer.y = lastPos.y;
xMove = (xMove * -0.8);
};
};
} else {
if (lastPos.x >= (mcLevel.platformArray[i].x + mcLevel.platformArray[i].width)){
if (touchingSlope == "not"){
mcLevel.mcPlayer.x = ((mcLevel.platformArray[i].x + mcLevel.platformArray[i].width) + (mcLevel.mcPlayer.collisionBox.width / 2));
xMove = (xMove * -0.8);
} else {
if ((((mcLevel.mcPlayer.y < (mcLevel.platformArray[i].y + 30))) && ((mcLevel.mcPlayer.y > (mcLevel.platformArray[i].y - 5))))){
mcLevel.mcPlayer.y = (mcLevel.platformArray[i].y - 1);
foundGround = true;
grounded = true;
yMove = 0;
touchingSlope = "not";
} else {
mcLevel.mcPlayer.x = lastPos.x;
mcLevel.mcPlayer.y = lastPos.y;
xMove = (xMove * -0.8);
};
};
} else {
if (lastPos.y >= (mcLevel.platformArray[i].y + mcLevel.platformArray[i].height)){
if (touchingSlope == "not"){
mcLevel.mcPlayer.y = (lastPos.y + 1);
yMove = 0;
if (!inUpdraft){
mcLevel.mcPlayer.x = lastPos.x;
} else {
yMove = (yMove * -0.9);
};
} else {
mcLevel.mcPlayer.x = lastPos.x;
mcLevel.mcPlayer.y = lastPos.y;
yMove = 0;
xMove = (xMove * -0.8);
};
} else {
mcLevel.mcPlayer.y = (mcLevel.platformArray[i].y + 1);
lastPos.y = mcLevel.platformArray[i].y;
touchingSlope = "not";
};
};
};
};
};
i++;
};
if (yMove >= 0){
i = 0;
while (i < mcLevel.oneWayPlatformArray.length) {
if (lastPos.y <= mcLevel.oneWayPlatformArray[i].y){
if (mcLevel.oneWayPlatformArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
climbing = false;
mcLevel.mcPlayer.y = mcLevel.oneWayPlatformArray[i].y;
foundGround = true;
grounded = true;
yMove = 0;
};
};
i++;
};
};
canClimb = false;
i = 0;
while (i < mcLevel.climbableArray.length) {
if (mcLevel.climbableArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
canClimb = true;
if (climbing){
foundGround = true;
grounded = true;
lastClimbX = mcLevel.mcPlayer.x;
lastClimbY = mcLevel.mcPlayer.y;
yMove = 0;
xMove = 0;
};
};
i++;
};
onLadder = false;
_local2 = false;
i = 0;
while (i < mcLevel.ladderArray.length) {
if (mcLevel.ladderArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
canClimb = true;
_local2 = true;
if (climbing){
onLadder = true;
foundGround = true;
grounded = true;
lastClimbX = mcLevel.mcPlayer.x;
lastClimbY = mcLevel.mcPlayer.y;
yMove = 0;
xMove = 0;
mcLevel.mcPlayer.x = mcLevel.ladderArray[i].x;
};
};
i++;
};
if (((climbing) && ((canClimb == false)))){
foundGround = true;
grounded = true;
yMove = 0;
xMove = 0;
canClimb = true;
if (mcLevel.mcPlayer.y < lastClimbY){
mcLevel.mcPlayer.y = (lastClimbY + 1);
};
canClimb = false;
i = 0;
while (i < mcLevel.climbableArray.length) {
if (mcLevel.climbableArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
canClimb = true;
};
i++;
};
i = 0;
while (i < mcLevel.ladderArray.length) {
if (mcLevel.ladderArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
canClimb = true;
};
i++;
};
};
if (((climbing) && (canClimb))){
mcLevel.mcPlayer.y--;
};
if (((((climbing) && ((onLadder == false)))) && (_local2))){
onLadder = true;
};
conveying = false;
if (yMove >= 0){
i = 0;
while (i < mcLevel.conveyorArray.length) {
if (lastPos.y <= mcLevel.conveyorArray[i].y){
if (mcLevel.conveyorArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
mcLevel.mcPlayer.y = mcLevel.conveyorArray[i].y;
foundGround = true;
climbing = false;
grounded = true;
yMove = 0;
if (touchingSlope == "not"){
if (mcLevel.conveyorArray[i].pushDirection == "R"){
if (mcLevel.conveyorArray[i].cSpeed == 0){
mcLevel.mcPlayer.x = (mcLevel.mcPlayer.x + CONVEYORSPEED);
} else {
mcLevel.mcPlayer.x = (mcLevel.mcPlayer.x + mcLevel.conveyorArray[i].cSpeed);
};
} else {
if (mcLevel.conveyorArray[i].cSpeed == 0){
mcLevel.mcPlayer.x = (mcLevel.mcPlayer.x - CONVEYORSPEED);
} else {
mcLevel.mcPlayer.x = (mcLevel.mcPlayer.x - mcLevel.conveyorArray[i].cSpeed);
};
};
};
conveying = true;
};
};
i++;
};
};
i = 0;
while (i < mcLevel.movingPlatformArray.length) {
hitThis = false;
if (lastPos.y <= mcLevel.movingPlatformArray[i].y){
if (mcLevel.movingPlatformArray[i].movingCollision.hitTestObject(mcLevel.mcPlayer.collisionBox)){
hitThis = true;
};
};
k = 0;
while (k < mcLevel.controlArray.length) {
if (mcLevel.movingPlatformArray[i].movingCollision.hitTestObject(mcLevel.controlArray[k])){
mcLevel.movingPlatformArray[i].moveDirection = mcLevel.controlArray[k].moveDirection;
};
k++;
};
mcLevel.movingPlatformArray[i].lastX = mcLevel.movingPlatformArray[i].x;
mcLevel.movingPlatformArray[i].lastY = mcLevel.movingPlatformArray[i].y;
if (mcLevel.movingPlatformArray[i].moveDirection == "RIGHT"){
mcLevel.movingPlatformArray[i].x = (mcLevel.movingPlatformArray[i].x + mcLevel.movingPlatformArray[i].moveSpeed);
} else {
if (mcLevel.movingPlatformArray[i].moveDirection == "LEFT"){
mcLevel.movingPlatformArray[i].x = (mcLevel.movingPlatformArray[i].x - mcLevel.movingPlatformArray[i].moveSpeed);
} else {
if (mcLevel.movingPlatformArray[i].moveDirection == "UP"){
mcLevel.movingPlatformArray[i].y = (mcLevel.movingPlatformArray[i].y - mcLevel.movingPlatformArray[i].moveSpeed);
} else {
if (mcLevel.movingPlatformArray[i].moveDirection == "DOWN"){
mcLevel.movingPlatformArray[i].y = (mcLevel.movingPlatformArray[i].y + mcLevel.movingPlatformArray[i].moveSpeed);
};
};
};
};
if (lastPos.y <= mcLevel.movingPlatformArray[i].y){
if (mcLevel.movingPlatformArray[i].movingCollision.hitTestObject(mcLevel.mcPlayer.collisionBox)){
hitThis = true;
};
};
if (hitThis){
mcLevel.mcPlayer.y = mcLevel.movingPlatformArray[i].y;
mcLevel.mcPlayer.x = (mcLevel.mcPlayer.x + (mcLevel.movingPlatformArray[i].x - mcLevel.movingPlatformArray[i].lastX));
foundGround = true;
climbing = false;
grounded = true;
yMove = 0;
};
i++;
};
i = 0;
while (i < mcLevel.movingFryerArray.length) {
if (mcLevel.movingFryerArray[i].bopped == false){
hitThis = false;
if (mcLevel.movingFryerArray[i].movingCollision.hitTestObject(mcLevel.mcPlayer.collisionBox)){
if (lastPos.y <= mcLevel.movingFryerArray[i].y){
hitThis = true;
} else {
xMove = 0;
yMove = 0;
grounded = false;
touchingSlope = "not";
climbing = false;
dying = true;
};
};
k = 0;
while (k < mcLevel.fryerControlArray.length) {
if (mcLevel.movingFryerArray[i].movingCollision.hitTestObject(mcLevel.fryerControlArray[k])){
mcLevel.movingFryerArray[i].moveDirection = mcLevel.fryerControlArray[k].moveDirection;
};
k++;
};
mcLevel.movingFryerArray[i].lastX = mcLevel.movingFryerArray[i].x;
mcLevel.movingFryerArray[i].lastY = mcLevel.movingFryerArray[i].y;
if (mcLevel.movingFryerArray[i].moveDirection == "RIGHT"){
mcLevel.movingFryerArray[i].x = (mcLevel.movingFryerArray[i].x + mcLevel.movingFryerArray[i].moveSpeed);
} else {
if (mcLevel.movingFryerArray[i].moveDirection == "LEFT"){
mcLevel.movingFryerArray[i].x = (mcLevel.movingFryerArray[i].x - mcLevel.movingFryerArray[i].moveSpeed);
} else {
if (mcLevel.movingFryerArray[i].moveDirection == "UP"){
mcLevel.movingFryerArray[i].y = (mcLevel.movingFryerArray[i].y - mcLevel.movingFryerArray[i].moveSpeed);
} else {
if (mcLevel.movingFryerArray[i].moveDirection == "DOWN"){
mcLevel.movingFryerArray[i].y = (mcLevel.movingFryerArray[i].y + mcLevel.movingFryerArray[i].moveSpeed);
};
};
};
};
if (mcLevel.movingFryerArray[i].movingCollision.hitTestObject(mcLevel.mcPlayer.collisionBox)){
if (lastPos.y <= mcLevel.movingFryerArray[i].y){
hitThis = true;
};
};
if (hitThis){
if (mcLevel.movingFryerArray[i].fryerBehaviour == "KILLER"){
xMove = 0;
yMove = 0;
grounded = false;
touchingSlope = "not";
climbing = false;
dying = true;
};
if (mcLevel.movingFryerArray[i].fryerBehaviour == "BOP"){
mcLevel.movingFryerArray[i].bopped = true;
mcLevel.mcPlayer.y = mcLevel.movingFryerArray[i].y;
yMove = -(JUMPSTRENGTH);
};
if (mcLevel.movingFryerArray[i].fryerBehaviour == "PLATFORM"){
mcLevel.mcPlayer.y = mcLevel.movingFryerArray[i].y;
mcLevel.mcPlayer.x = (mcLevel.mcPlayer.x + (mcLevel.movingFryerArray[i].x - mcLevel.movingFryerArray[i].lastX));
foundGround = true;
climbing = false;
grounded = true;
yMove = 0;
};
};
};
i++;
};
i = 0;
while (i < mcLevel.slopeArray.length) {
if (mcLevel.slopeArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
if (mcLevel.slopeArray[i].pointA.y == 50){
if ((((lastPos.y > mcLevel.slopeArray[i].y)) && ((lastPos.x > (mcLevel.slopeArray[i].x + mcLevel.slopeArray[i].width))))){
if (touchingSlope == "not"){
if (mcLevel.mcPlayer.y < (mcLevel.slopeArray[i].y + 30)){
mcLevel.mcPlayer.y = mcLevel.slopeArray[i].y;
foundGround = true;
grounded = true;
yMove = 0;
touchingSlope = "not";
} else {
mcLevel.mcPlayer.x = (((mcLevel.slopeArray[i].x + mcLevel.slopeArray[i].width) + (mcLevel.mcPlayer.collisionBox.width / 2)) + 2);
xMove = (xMove * -0.8);
};
} else {
if ((((mcLevel.mcPlayer.y < (mcLevel.slopeArray[i].y + 30))) && ((mcLevel.mcPlayer.y > (mcLevel.slopeArray[i].y - 5))))){
mcLevel.mcPlayer.y = (mcLevel.slopeArray[i].y - 1);
foundGround = true;
grounded = true;
yMove = 0;
touchingSlope = "not";
} else {
mcLevel.mcPlayer.x = lastPos.x;
mcLevel.mcPlayer.y = lastPos.y;
xMove = (xMove * -0.8);
};
};
} else {
if (lastPos.x < mcLevel.slopeArray[i].x){
if (mcLevel.mcPlayer.x >= mcLevel.slopeArray[i].x){
if (mcLevel.mcPlayer.y > (mcLevel.slopeArray[i].y + mcLevel.slopeArray[i].height)){
mcLevel.mcPlayer.x = lastPos.x;
mcLevel.mcPlayer.y = lastPos.y;
xMove = (xMove * -0.8);
};
};
};
};
} else {
if (mcLevel.slopeArray[i].pointA.y == 0){
if ((((lastPos.y > mcLevel.slopeArray[i].y)) && ((lastPos.x < mcLevel.slopeArray[i].x)))){
if (touchingSlope == "not"){
if (mcLevel.mcPlayer.y < (mcLevel.slopeArray[i].y + 30)){
mcLevel.mcPlayer.y = mcLevel.slopeArray[i].y;
foundGround = true;
grounded = true;
yMove = 0;
touchingSlope = "not";
} else {
mcLevel.mcPlayer.x = ((mcLevel.slopeArray[i].x - (mcLevel.mcPlayer.collisionBox.width / 2)) - 2);
xMove = (xMove * -0.8);
};
} else {
if ((((mcLevel.mcPlayer.y < (mcLevel.slopeArray[i].y + 30))) && ((mcLevel.mcPlayer.y > (mcLevel.slopeArray[i].y - 5))))){
mcLevel.mcPlayer.y = mcLevel.slopeArray[i].y;
foundGround = true;
grounded = true;
yMove = 0;
touchingSlope = "not";
} else {
mcLevel.mcPlayer.x = lastPos.x;
mcLevel.mcPlayer.y = lastPos.y;
xMove = (xMove * -0.8);
};
};
} else {
if (lastPos.x >= (mcLevel.slopeArray[i].x + mcLevel.slopeArray[i].width)){
if (mcLevel.mcPlayer.x <= (mcLevel.slopeArray[i].x + mcLevel.slopeArray[i].width)){
if (mcLevel.mcPlayer.y > (mcLevel.slopeArray[i].y + mcLevel.slopeArray[i].height)){
mcLevel.mcPlayer.x = lastPos.x;
mcLevel.mcPlayer.y = lastPos.y;
xMove = (xMove * -0.8);
};
};
};
};
};
};
if ((lastPos.y - 10) > (mcLevel.slopeArray[i].y + mcLevel.slopeArray[i].height)){
if (touchingSlope == "not"){
mcLevel.mcPlayer.y = (lastPos.y + 1);
yMove = 0;
if (!inUpdraft){
mcLevel.mcPlayer.x = lastPos.x;
} else {
yMove = (yMove * -0.9);
};
} else {
mcLevel.mcPlayer.x = lastPos.x;
mcLevel.mcPlayer.y = lastPos.y;
yMove = 0;
xMove = (xMove * -0.8);
};
} else {
if ((((((((mcLevel.mcPlayer.x > mcLevel.slopeArray[i].x)) && ((mcLevel.mcPlayer.x < (mcLevel.slopeArray[i].x + mcLevel.slopeArray[i].width))))) && ((mcLevel.mcPlayer.y > mcLevel.slopeArray[i].y)))) && ((mcLevel.mcPlayer.y < (mcLevel.slopeArray[i].y + mcLevel.slopeArray[i].height))))){
tempPointA = mcLevel.slopeArray[i].localToGlobal(mcLevel.slopeArray[i].pointA);
tempPointA = mcLevel.globalToLocal(tempPointA);
tempPointB = mcLevel.slopeArray[i].localToGlobal(mcLevel.slopeArray[i].pointB);
tempPointB = mcLevel.globalToLocal(tempPointB);
_local4 = Math.atan2((tempPointA.y - tempPointB.y), (tempPointA.x - tempPointB.x));
_local5 = Math.atan2((tempPointA.y - mcLevel.mcPlayer.y), (tempPointA.x - mcLevel.mcPlayer.x));
if (_local5 < _local4){
} else {
if ((((mcLevel.mcPlayer.x > mcLevel.slopeArray[i].x)) && ((mcLevel.mcPlayer.x < (mcLevel.slopeArray[i].x + mcLevel.slopeArray[i].width))))){
foundGround = true;
grounded = true;
yMove = 0;
mcLevel.mcPlayer.y = (mcLevel.mcPlayer.y - 1);
if (touchingSlope != i){
tempPointC = lineIntersectLine(tempPointA, tempPointB, new Point(mcLevel.mcPlayer.x, mcLevel.mcPlayer.y), lastPos);
mcLevel.mcPlayer.y = tempPointC.y;
mcLevel.mcPlayer.x = tempPointC.x;
touchingSlope = i;
climbing = false;
};
};
};
};
};
};
i++;
};
i = 0;
while (i < mcLevel.oneWayCeilingArray.length) {
if (mcLevel.oneWayCeilingArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
if (touchingSlope == "not"){
if (yMove < 0){
if ((lastPos.y - mcLevel.mcPlayer.collisionBox.height) > (mcLevel.oneWayCeilingArray[i].y + mcLevel.oneWayCeilingArray[i].height)){
mcLevel.mcPlayer.y = (((mcLevel.oneWayCeilingArray[i].y + mcLevel.oneWayCeilingArray[i].height) + mcLevel.mcPlayer.collisionBox.height) + 3);
yMove = 0;
if (!inUpdraft){
mcLevel.mcPlayer.x = lastPos.x;
} else {
yMove = (yMove * -0.9);
};
};
};
} else {
if (mcLevel.mcPlayer.y < lastPos.y){
mcLevel.mcPlayer.x = lastPos.x;
mcLevel.mcPlayer.y = lastPos.y;
yMove = 0;
xMove = (xMove * -0.8);
};
};
};
i++;
};
currentUpdraftStrength = 0;
i = 0;
while (i < mcLevel.updraftArray.length) {
if (mcLevel.updraftArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
inUpdraft = true;
if (mcLevel.updraftArray[i].power == 0){
if (UPDRAFTSTRENGTH > currentUpdraftStrength){
currentUpdraftStrength = UPDRAFTSTRENGTH;
};
} else {
if (mcLevel.updraftArray[i].power > currentUpdraftStrength){
currentUpdraftStrength = mcLevel.updraftArray[i].power;
};
};
if (grounded){
mcLevel.mcPlayer.y = (mcLevel.mcPlayer.y - 2);
};
};
i++;
};
i = 0;
while (i < mcLevel.checkPointArray.length) {
if (mcLevel.checkPointArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
safeSpot.x = mcLevel.checkPointArray[i].x;
safeSpot.y = mcLevel.checkPointArray[i].y;
};
i++;
};
i = 0;
while (i < mcLevel.messageArray.length) {
if (mcLevel.messageArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
if (mcLevel.messageArray[i].talkType == "CONTACT"){
mcLevel.messageArray[i].Talk();
} else {
if (KEYACTIONIN){
mcLevel.messageArray[i].Talk();
};
};
};
i++;
};
i = 0;
while (i < mcLevel.fryArray.length) {
if (mcLevel.fryArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
xMove = 0;
yMove = 0;
grounded = false;
touchingSlope = "not";
climbing = false;
dying = true;
};
i++;
};
i = 0;
while (i < mcLevel.keyArray.length) {
k = 0;
while (k < keysOwned.length) {
if (keysOwned[i] == mcLevel.keyArray[i].keyName.text){
mcLevel.keyArray[i].visible = false;
};
k++;
};
if (mcLevel.keyArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
keysOwned.push(mcLevel.keyArray[i].keyName.text);
mcLevel.keyArray[i].visible = false;
};
i++;
};
i = 0;
while (i < mcLevel.collectablesArray.length) {
if (mcLevel.collectablesArray[i].collected == false){
if (mcLevel.collectablesArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
_local6 = false;
k = 0;
while (k < collectedStuff.length) {
if (collectedStuff[k][0] == mcLevel.collectablesArray[i].collectableName.text){
_local6 = true;
collectedStuff[k][1] = (collectedStuff[k][1] + Number(mcLevel.collectablesArray[i].collectableValue.text));
mcLevel.collectablesArray[i].collected = true;
};
k++;
};
if (!_local6){
collectedStuff.push([String(mcLevel.collectablesArray[i].collectableName.text), Number(mcLevel.collectablesArray[i].collectableValue.text)]);
mcLevel.collectablesArray[i].collected = true;
};
};
};
i++;
};
i = 0;
while (i < mcLevel.animationsArray.length) {
if (mcLevel.animationsArray[i].collisionBox.hitTestObject(mcLevel.mcPlayer.collisionBox)){
if (String(mcLevel.animationsArray[i].triggerType.text) == "TOUCH"){
if (mcLevel.animationsArray[i].animationKey.text == "NONE"){
mcLevel.animationsArray[i].triggered = true;
} else {
k = 0;
while (k < keysOwned.length) {
if (keysOwned[i] == mcLevel.animationsArray[i].animationKey.text){
mcLevel.animationsArray[i].triggered = true;
};
k++;
};
};
} else {
if (KEYACTIONIN){
if (mcLevel.animationsArray[i].animationKey.text == "NONE"){
mcLevel.animationsArray[i].triggered = true;
} else {
k = 0;
while (k < keysOwned.length) {
if (keysOwned[i] == mcLevel.animationsArray[i].animationKey.text){
mcLevel.animationsArray[i].triggered = true;
};
k++;
};
};
} else {
mcLevel.animationsArray[i].triggered = false;
};
};
} else {
mcLevel.animationsArray[i].triggered = false;
};
i++;
};
i = 0;
while (i < mcLevel.teleportArray.length) {
if (mcLevel.teleportArray[i].hitTestObject(mcLevel.mcPlayer.collisionBox)){
if (mcLevel.teleportArray[i].teleportType.text == "INSTANT"){
if (mcLevel.teleportArray[i].teleportKey.text != "NONE"){
k = 0;
while (k < keysOwned.length) {
if (keysOwned[i] == mcLevel.teleportArray[i].teleportKey.text){
teleporting = true;
};
k++;
};
} else {
teleporting = true;
};
} else {
if (mcLevel.teleportArray[i].teleportKey.text != "NONE"){
k = 0;
while (k < keysOwned.length) {
if (keysOwned[i] == mcLevel.teleportArray[i].teleportKey.text){
if (KEYACTIONIN){
teleporting = true;
};
};
k++;
};
} else {
if (KEYACTIONIN){
teleporting = true;
};
};
};
teleportFrame = Number(mcLevel.teleportArray[i].targetLevel.text);
teleportX = mcLevel.teleportArray[i].targetX.text;
teleportY = mcLevel.teleportArray[i].targetY.text;
};
i++;
};
if (!foundGround){
grounded = false;
touchingSlope = "not";
mcLevel.mcPlayer.y = (mcLevel.mcPlayer.y - 1);
};
lastPos.x = mcLevel.mcPlayer.x;
lastPos.y = mcLevel.mcPlayer.y;
};
};
targetAnimation = "IDLE";
if (KEYRIGHTIN){
if (!onLadder){
facingDirection = "R";
};
} else {
if (KEYLEFTIN){
if (!onLadder){
facingDirection = "L";
};
};
};
if (grounded){
if (((KEYRIGHTIN) || (KEYLEFTIN))){
targetAnimation = "RUN";
} else {
tempVar = Math.sqrt((xMove * xMove));
if (tempVar > 0.5){
targetAnimation = "SLIDE";
};
};
} else {
if (yMove < 0){
targetAnimation = "RISE";
} else {
targetAnimation = "FALL";
};
};
if (facingDirection == "R"){
mcLevel.mcPlayer.scaleX = 1;
} else {
mcLevel.mcPlayer.scaleX = -1;
};
if (dying){
targetAnimation = "DIE";
};
if (climbing){
targetAnimation = "CLIMB";
};
if (targetAnimation != "FALL"){
targetAnimationB = targetAnimation;
};
if (((!((targetAnimation == currentAnimation))) && ((targetAnimation == targetAnimationB)))){
switch (targetAnimation){
case "IDLE":
mcLevel.mcPlayer.gotoAndStop(1);
break;
case "RUN":
mcLevel.mcPlayer.gotoAndStop(2);
break;
case "SLIDE":
mcLevel.mcPlayer.gotoAndStop(3);
break;
case "RISE":
mcLevel.mcPlayer.gotoAndStop(4);
break;
case "FALL":
mcLevel.mcPlayer.gotoAndStop(5);
break;
case "DIE":
mcLevel.mcPlayer.gotoAndStop(6);
break;
case "CLIMB":
break;
};
currentAnimation = targetAnimation;
};
if (climbing){
if (((KEYLEFTIN) && (!(onLadder)))){
if (!onLadder){
if (mcLevel.mcPlayer.currentFrame != 9){
mcLevel.mcPlayer.gotoAndStop(9);
};
};
} else {
if (((KEYRIGHTIN) && (!(onLadder)))){
if (!onLadder){
if (mcLevel.mcPlayer.currentFrame != 9){
mcLevel.mcPlayer.gotoAndStop(9);
};
};
} else {
if (KEYCLIMBUPIN){
if (mcLevel.mcPlayer.currentFrame != 8){
mcLevel.mcPlayer.gotoAndStop(8);
};
} else {
if (KEYCLIMBDOWNIN){
if (mcLevel.mcPlayer.currentFrame != 10){
mcLevel.mcPlayer.gotoAndStop(10);
};
} else {
if (mcLevel.mcPlayer.currentFrame != 7){
mcLevel.mcPlayer.gotoAndStop(7);
};
};
};
};
};
};
targetAnimationB = targetAnimation;
if (conveying){
if (targetAnimationB == "SLIDE"){
targetAnimationB = "IDLE";
targetAnimation = "IDLE";
mcLevel.mcPlayer.gotoAndStop(1);
};
};
if (targetAnimation == "DIE"){
if (((!((mcLevel.mcPlayer.deathAnim == null))) && ((mcLevel.mcPlayer.deathAnim.currentFrame == mcLevel.mcPlayer.deathAnim.totalFrames)))){
dying = false;
mcLevel.mcPlayer.x = safeSpot.x;
mcLevel.mcPlayer.y = safeSpot.y;
};
};
if (scrollingMode){
mcLevel.x = (-(mcLevel.mcPlayer.x) + (STAGEWIDTH / 2));
mcLevel.y = (-(mcLevel.mcPlayer.y) + (STAGEHEIGHT / 2));
i = 0;
while (i < parralaxArray.length) {
parralaxArray[i][0].x = -((mcLevel.mcPlayer.x * parralaxArray[i][1]));
parralaxArray[i][0].y = -((mcLevel.mcPlayer.y * parralaxArray[i][1]));
i++;
};
if (ScrollLimitLeft.x != 0){
if (mcLevel.x > -(ScrollLimitLeft.x)){
mcLevel.x = -(ScrollLimitLeft.x);
};
};
if (ScrollLimitTop.y != 0){
if (mcLevel.y > -(ScrollLimitTop.y)){
mcLevel.y = -(ScrollLimitTop.y);
};
};
if (ScrollLimitBottom.y != 0){
if (mcLevel.y < (stage.stageHeight - ScrollLimitBottom.y)){
mcLevel.y = (stage.stageHeight - ScrollLimitBottom.y);
};
};
if (ScrollLimitRight.x != 0){
if (mcLevel.x < (stage.stageWidth - ScrollLimitRight.x)){
mcLevel.x = (stage.stageWidth - ScrollLimitRight.x);
};
};
};
if (teleporting){
if (teleportFrame != currentFrame){
ScrollLimitLeft = new MovieClip();
ScrollLimitRight = new MovieClip();
ScrollLimitBottom = new MovieClip();
ScrollLimitTop = new MovieClip();
KEYLEFTIN = false;
KEYRIGHTIN = false;
KEYJUMPIN = false;
KEYACTIONIN = false;
KEYCLIMBUPIN = false;
KEYCLIMBDOWNIN = false;
stage.removeEventListener(Event.ENTER_FRAME, onGameTick);
gotoAndStop(teleportFrame);
} else {
if (teleportX != "-"){
mcLevel.mcPlayer.x = Number(teleportX);
lastPos.x = mcLevel.mcPlayer.x;
};
if (teleportY != "-"){
mcLevel.mcPlayer.y = Number(teleportY);
lastPos.y = mcLevel.mcPlayer.y;
};
};
grounded = false;
touchingSlope = "not";
teleporting = false;
};
}
public function newLevel(){
stop();
stage.addEventListener(Event.ENTER_FRAME, onGameTick);
lastPos = new Point(mcLevel.mcPlayer.x, mcLevel.mcPlayer.y);
safeSpot = new Point(mcLevel.mcPlayer.x, mcLevel.mcPlayer.y);
}
public function onKeyIn(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case KEYLEFTCODE:
KEYLEFTIN = true;
break;
case KEYRIGHTCODE:
KEYRIGHTIN = true;
break;
case KEYJUMPCODE:
KEYJUMPIN = true;
break;
case KEYACTIONCODE:
KEYACTIONIN = true;
break;
case KEYCLIMBUPCODE:
KEYCLIMBUPIN = true;
break;
case KEYCLIMBDOWNCODE:
KEYCLIMBDOWNIN = true;
break;
case KEYLEFTCODEB:
KEYLEFTIN = true;
break;
case KEYRIGHTCODEB:
KEYRIGHTIN = true;
break;
case KEYJUMPCODEB:
KEYJUMPIN = true;
break;
case KEYACTIONCODEB:
KEYACTIONIN = true;
break;
case KEYCLIMBUPCODEB:
KEYCLIMBUPIN = true;
break;
case KEYCLIMBDOWNCODEB:
KEYCLIMBDOWNIN = true;
break;
case KEYDEBUGCODE:
if (allowDebug){
toggleDebug();
};
break;
};
}
public function onKeyOut(_arg1:KeyboardEvent){
switch (_arg1.keyCode){
case KEYLEFTCODE:
KEYLEFTIN = false;
break;
case KEYRIGHTCODE:
KEYRIGHTIN = false;
break;
case KEYJUMPCODE:
KEYJUMPIN = false;
break;
case KEYACTIONCODE:
KEYACTIONIN = false;
break;
case KEYCLIMBUPCODE:
KEYCLIMBUPIN = false;
break;
case KEYCLIMBDOWNCODE:
KEYCLIMBDOWNIN = false;
break;
case KEYLEFTCODEB:
KEYLEFTIN = false;
break;
case KEYRIGHTCODEB:
KEYRIGHTIN = false;
break;
case KEYJUMPCODEB:
KEYJUMPIN = false;
break;
case KEYACTIONCODEB:
KEYACTIONIN = false;
break;
case KEYCLIMBUPCODEB:
KEYCLIMBUPIN = false;
break;
case KEYCLIMBDOWNCODEB:
KEYCLIMBDOWNIN = false;
break;
};
}
public function toggleDebug(){
debugMode = !(debugMode);
i = 0;
while (i < mcLevel.platformArray.length) {
mcLevel.platformArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.oneWayPlatformArray.length) {
mcLevel.oneWayPlatformArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.slopeArray.length) {
mcLevel.slopeArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.fryArray.length) {
mcLevel.fryArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.checkPointArray.length) {
mcLevel.checkPointArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.oneWayCeilingArray.length) {
mcLevel.oneWayCeilingArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.trampArray.length) {
mcLevel.trampArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.updraftArray.length) {
mcLevel.updraftArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.teleportArray.length) {
mcLevel.teleportArray[i].teleportGFK.visible = debugMode;
mcLevel.teleportArray[i].teleportKey.visible = debugMode;
mcLevel.teleportArray[i].targetLevel.visible = debugMode;
mcLevel.teleportArray[i].teleportType.visible = debugMode;
mcLevel.teleportArray[i].targetX.visible = debugMode;
mcLevel.teleportArray[i].targetY.visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.keyArray.length) {
mcLevel.keyArray[i].keyGFK.visible = debugMode;
mcLevel.keyArray[i].keyName.visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.conveyorArray.length) {
mcLevel.conveyorArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.movingPlatformArray.length) {
mcLevel.movingPlatformArray[i].movingCollision.visible = debugMode;
mcLevel.movingPlatformArray[i].theSpeed.visible = debugMode;
mcLevel.movingPlatformArray[i].theDirection.visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.controlArray.length) {
mcLevel.controlArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.animationsArray.length) {
mcLevel.animationsArray[i].collisionBox.visible = debugMode;
mcLevel.animationsArray[i].behaviourType.visible = debugMode;
mcLevel.animationsArray[i].playAmount.visible = debugMode;
mcLevel.animationsArray[i].animationKey.visible = debugMode;
mcLevel.animationsArray[i].triggerType.visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.climbableArray.length) {
mcLevel.climbableArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.ladderArray.length) {
mcLevel.ladderArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.collectablesArray.length) {
if (debugMode == true){
if (mcLevel.collectablesArray[i].collected == false){
mcLevel.collectablesArray[i].collectableGFK.visible = debugMode;
mcLevel.collectablesArray[i].collectableName.visible = debugMode;
mcLevel.collectablesArray[i].collectableValue.visible = debugMode;
};
} else {
mcLevel.collectablesArray[i].collectableGFK.visible = debugMode;
mcLevel.collectablesArray[i].collectableName.visible = debugMode;
mcLevel.collectablesArray[i].collectableValue.visible = debugMode;
};
i++;
};
i = 0;
while (i < mcLevel.movingFryerArray.length) {
if (debugMode == true){
if (mcLevel.movingFryerArray[i].bopped == false){
mcLevel.movingFryerArray[i].movingCollision.visible = debugMode;
mcLevel.movingFryerArray[i].theSpeed.visible = debugMode;
mcLevel.movingFryerArray[i].theDirection.visible = debugMode;
mcLevel.movingFryerArray[i].theBehaviour.visible = debugMode;
};
} else {
mcLevel.movingFryerArray[i].movingCollision.visible = debugMode;
mcLevel.movingFryerArray[i].theSpeed.visible = debugMode;
mcLevel.movingFryerArray[i].theDirection.visible = debugMode;
mcLevel.movingFryerArray[i].theBehaviour.visible = debugMode;
};
i++;
};
i = 0;
while (i < mcLevel.fryerControlArray.length) {
mcLevel.fryerControlArray[i].visible = debugMode;
i++;
};
i = 0;
while (i < mcLevel.messageArray.length) {
mcLevel.messageArray[i].visible = debugMode;
i++;
};
ScrollLimitLeft.visible = debugMode;
ScrollLimitRight.visible = debugMode;
ScrollLimitBottom.visible = debugMode;
ScrollLimitTop.visible = debugMode;
mcLevel.mcPlayer.collisionBox.visible = debugMode;
}
public function lineIntersectLine(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point):Point{
var _local5:Point;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
_local6 = (_arg2.y - _arg1.y);
_local8 = (_arg1.x - _arg2.x);
_local10 = ((_arg2.x * _arg1.y) - (_arg1.x * _arg2.y));
_local7 = (_arg4.y - _arg3.y);
_local9 = (_arg3.x - _arg4.x);
_local11 = ((_arg4.x * _arg3.y) - (_arg3.x * _arg4.y));
var _local12:Number = ((_local6 * _local9) - (_local7 * _local8));
if (_local12 == 0){
return (null);
};
_local5 = new Point();
_local5.x = (((_local8 * _local11) - (_local9 * _local10)) / _local12);
_local5.y = (((_local7 * _local10) - (_local6 * _local11)) / _local12);
return (_local5);
}
function frame1(){
stop();
loaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadStuff);
}
function frame2(){
stop();
btn_start.addEventListener(MouseEvent.CLICK, onClickStart);
}
function frame4(){
talking = false;
parralaxArray = new Array();
JUMPSTRENGTH = Number(jumpStengthtxt.text);
GRAVITY = Number(gravitytxt.text);
UPDRAFTSTRENGTH = Number(updrafttxt.text);
RESISTANCE = Number(resistancetxt.text);
SPEED = Number(speedtxt.text);
CLIMBSPEED = Number(climbspeedtxt.text);
xMove = 0;
yMove = 0;
grounded = false;
touchingSlope = "not";
inUpdraft = false;
targetAnimation = "IDLE";
targetAnimationB = "IDLE";
currentAnimation = "None";
facingDirection = "R";
CONVEYORSPEED = Number(conveyortxt.text);
conveying = false;
currentUpdraftStrength = 0;
dying = false;
canClimb = false;
climbing = false;
lastClimbX = 0;
lastClimbY = 0;
onLadder = false;
foundUpdraft = false;
hitThis = false;
ScrollLimitLeft = new MovieClip();
ScrollLimitRight = new MovieClip();
ScrollLimitBottom = new MovieClip();
ScrollLimitTop = new MovieClip();
teleporting = false;
teleportX = "-";
teleportY = "-";
keysOwned = new Array();
collectedStuff = new Array();
KEYLEFTIN = false;
KEYRIGHTIN = false;
KEYJUMPIN = false;
KEYACTIONIN = false;
KEYCLIMBUPIN = false;
KEYCLIMBDOWNIN = false;
KEYLEFTCODE = Number(leftKey.text);
KEYRIGHTCODE = Number(rightKey.text);
KEYJUMPCODE = Number(jumpKey.text);
KEYACTIONCODE = Number(actionKey.text);
KEYLEFTCODEB = Number(leftKeyB.text);
KEYRIGHTCODEB = Number(rightKeyB.text);
KEYJUMPCODEB = Number(jumpKeyB.text);
KEYACTIONCODEB = Number(actionKeyB.text);
KEYCLIMBUPCODE = Number(climbupKey.text);
KEYCLIMBDOWNCODE = Number(climbdownKey.text);
KEYCLIMBUPCODEB = Number(climbupKeyB.text);
KEYCLIMBDOWNCODEB = Number(climbdownKeyB.text);
KEYDEBUGCODE = Number(debugKey.text);
STAGEWIDTH = stage.stageWidth;
STAGEHEIGHT = stage.stageHeight;
if ((((debug.text.split("")[0] == "Y")) || ((debug.text.split("")[0] == "y")))){
debugMode = true;
} else {
debugMode = false;
};
allowDebug = debugMode;
if ((((scrolling.text.split("")[0] == "Y")) || ((scrolling.text.split("")[0] == "y")))){
scrollingMode = true;
} else {
scrollingMode = false;
};
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyIn);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyOut);
}
}
}//package tableflipdagame_fla
Section 18
//oneWayPlatform_24 (tableflipdagame_fla.oneWayPlatform_24)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class oneWayPlatform_24 extends MovieClip {
public function oneWayPlatform_24(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).oneWayPlatformArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 19
//platform_5 (tableflipdagame_fla.platform_5)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class platform_5 extends MovieClip {
public function platform_5(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).platformArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 20
//Player_9 (tableflipdagame_fla.Player_9)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Player_9 extends MovieClip {
public var deathAnim:MovieClip;
public var collisionBox:MovieClip;
public function Player_9(){
addFrameScript(0, frame1);
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
collisionBox.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 21
//ScrollLimitBottom_8 (tableflipdagame_fla.ScrollLimitBottom_8)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ScrollLimitBottom_8 extends MovieClip {
public function ScrollLimitBottom_8(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(this.parent.parent).ScrollLimitBottom = this;
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 22
//ScrollLimitLeft_22 (tableflipdagame_fla.ScrollLimitLeft_22)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ScrollLimitLeft_22 extends MovieClip {
public function ScrollLimitLeft_22(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(this.parent.parent).ScrollLimitLeft = this;
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 23
//ScrollLimitRight_23 (tableflipdagame_fla.ScrollLimitRight_23)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ScrollLimitRight_23 extends MovieClip {
public function ScrollLimitRight_23(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(this.parent.parent).ScrollLimitRight = this;
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 24
//ScrollLimitTop_26 (tableflipdagame_fla.ScrollLimitTop_26)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class ScrollLimitTop_26 extends MovieClip {
public function ScrollLimitTop_26(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(this.parent.parent).ScrollLimitTop = this;
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 25
//Timeline_25 (tableflipdagame_fla.Timeline_25)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_25 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_25(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 26
//Timeline_28 (tableflipdagame_fla.Timeline_28)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_28 extends MovieClip {
public var triggerType:TextField;
public var animationKey:TextField;
public var collisionBox:MovieClip;
public var playAmount:TextField;
public var behaviourType:TextField;
public var initiated;
public var triggered;
public var playingAnimation;
public var waitForTrigger;
public var MaxPlayCount;
public var playCount;
public var behaviour;
public function Timeline_28(){
addFrameScript(0, frame1);
}
public function onThisAnimate(_arg1:Event){
if (behaviour == "A"){
if (triggered){
if (waitForTrigger == false){
if (playCount != MaxPlayCount){
gotoAndPlay(2);
playCount++;
waitForTrigger = true;
playingAnimation = true;
};
};
} else {
waitForTrigger = false;
};
if (playingAnimation){
if (currentFrame == 1){
playingAnimation = false;
stop();
};
};
};
if (behaviour == "B"){
if (triggered){
if (waitForTrigger == false){
if (playCount != MaxPlayCount){
gotoAndPlay(2);
playCount++;
waitForTrigger = true;
playingAnimation = true;
};
};
} else {
waitForTrigger = false;
};
if (playingAnimation){
if (currentFrame == totalFrames){
playingAnimation = false;
stop();
};
};
};
if (behaviour == "C"){
if (triggered){
if (waitForTrigger == false){
if (playCount != MaxPlayCount){
gotoAndPlay(2);
playCount++;
waitForTrigger = true;
playingAnimation = true;
};
};
};
if (playingAnimation){
if (currentFrame == totalFrames){
gotoAndPlay(2);
};
};
};
if (behaviour == "D"){
if (triggered){
if (playingAnimation == false){
if (playCount != MaxPlayCount){
gotoAndPlay(2);
playCount++;
playingAnimation = true;
};
};
};
if (playingAnimation){
if (currentFrame == totalFrames){
if (triggered){
gotoAndPlay(2);
} else {
gotoAndStop(1);
playingAnimation = false;
};
};
};
};
if (behaviour == "E"){
if (triggered){
if (playingAnimation == false){
if (playCount != MaxPlayCount){
gotoAndPlay(2);
playCount++;
playingAnimation = true;
};
};
};
if (playingAnimation){
if (currentFrame == totalFrames){
if (triggered){
gotoAndPlay(2);
} else {
stop();
playingAnimation = false;
};
};
};
};
if (behaviour == "F"){
if (triggered){
if (playCount != MaxPlayCount){
gotoAndPlay(2);
playCount++;
playingAnimation = true;
};
};
if (playingAnimation){
if (currentFrame == totalFrames){
if (!triggered){
gotoAndStop(1);
playingAnimation = false;
};
};
};
};
if (behaviour == "G"){
if (triggered){
if (playCount != MaxPlayCount){
gotoAndPlay(2);
playCount++;
playingAnimation = true;
};
};
if (playingAnimation){
if (currentFrame == totalFrames){
if (!triggered){
stop();
playingAnimation = false;
};
};
};
};
if (behaviour == "H"){
if (triggered){
gotoAndPlay(2);
playingAnimation = true;
};
if (playingAnimation){
if (currentFrame == totalFrames){
if (!triggered){
gotoAndPlay(3);
};
};
};
};
if (behaviour == "I"){
if (triggered){
nextFrame();
} else {
prevFrame();
};
};
}
function frame1(){
(parent as MovieClip).animationsArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
collisionBox.visible = false;
behaviourType.visible = false;
playAmount.visible = false;
animationKey.visible = false;
triggerType.visible = false;
};
if (!initiated){
initiated = true;
triggered = false;
playingAnimation = false;
waitForTrigger = false;
MaxPlayCount = Number(playAmount.text);
playCount = 1;
if (MaxPlayCount > 0){
playCount = 0;
};
behaviour = String(behaviourType.text).split()[0];
};
stop();
this.addEventListener(Event.ENTER_FRAME, onThisAnimate);
}
}
}//package tableflipdagame_fla
Section 27
//Timeline_31 (tableflipdagame_fla.Timeline_31)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_31 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_31(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 28
//Timeline_32 (tableflipdagame_fla.Timeline_32)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_32 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_32(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 29
//Timeline_33 (tableflipdagame_fla.Timeline_33)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_33 extends MovieClip {
public var collectableName:TextField;
public var collectableValue:TextField;
public var collectableGFK:MovieClip;
public var collected;
public function Timeline_33(){
addFrameScript(0, frame1, 7, frame8);
}
public function collectedCheck(_arg1:Event){
if (collected){
gotoAndPlay(2);
collectableGFK.visible = false;
collectableName.visible = false;
collectableValue.visible = false;
removeEventListener(Event.ENTER_FRAME, collectedCheck);
};
}
function frame1(){
(parent as MovieClip).collectablesArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
collectableGFK.visible = false;
collectableName.visible = false;
collectableValue.visible = false;
};
stop();
collected = false;
addEventListener(Event.ENTER_FRAME, collectedCheck);
}
function frame8(){
stop();
}
}
}//package tableflipdagame_fla
Section 30
//Timeline_37 (tableflipdagame_fla.Timeline_37)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_37 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_37(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 31
//Timeline_38 (tableflipdagame_fla.Timeline_38)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_38 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_38(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 32
//Timeline_40 (tableflipdagame_fla.Timeline_40)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_40 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_40(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 33
//Timeline_41 (tableflipdagame_fla.Timeline_41)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_41 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_41(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 34
//Timeline_42 (tableflipdagame_fla.Timeline_42)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_42 extends MovieClip {
public var jumpStengthtxt:TextField;
public var actionKeyB:TextField;
public var updrafttxt:TextField;
public var climbspeedtxt:TextField;
public var climbupKeyB:TextField;
public var climbdownKey:TextField;
public var climbdownKeyB:TextField;
public var actionKey:TextField;
public var leftKey:TextField;
public var leftKeyB:TextField;
public var rightKeyB:TextField;
public var speedtxt:TextField;
public var gravitytxt:TextField;
public var climbupKey:TextField;
public var jumpKey:TextField;
public var jumpKeyB:TextField;
public var conveyortxt:TextField;
public var resistancetxt:TextField;
public var rightKey:TextField;
public function Timeline_42(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(this.parent.parent).JUMPSTRENGTH = Number(jumpStengthtxt.text);
MovieClip(this.parent.parent).GRAVITY = Number(gravitytxt.text);
MovieClip(this.parent.parent).UPDRAFTSTRENGTH = Number(updrafttxt.text);
MovieClip(this.parent.parent).RESISTANCE = Number(resistancetxt.text);
MovieClip(this.parent.parent).SPEED = Number(speedtxt.text);
MovieClip(this.parent.parent).CLIMBSPEED = Number(climbspeedtxt.text);
MovieClip(this.parent.parent).CONVEYORSPEED = Number(conveyortxt.text);
MovieClip(this.parent.parent).KEYLEFTCODE = Number(leftKey.text);
MovieClip(this.parent.parent).KEYRIGHTCODE = Number(rightKey.text);
MovieClip(this.parent.parent).KEYJUMPCODE = Number(jumpKey.text);
MovieClip(this.parent.parent).KEYACTIONCODE = Number(actionKey.text);
MovieClip(this.parent.parent).KEYLEFTCODEB = Number(leftKeyB.text);
MovieClip(this.parent.parent).KEYRIGHTCODEB = Number(rightKeyB.text);
MovieClip(this.parent.parent).KEYJUMPCODEB = Number(jumpKeyB.text);
MovieClip(this.parent.parent).KEYACTIONCODEB = Number(actionKeyB.text);
MovieClip(this.parent.parent).KEYCLIMBUPCODE = Number(climbupKey.text);
MovieClip(this.parent.parent).KEYCLIMBDOWNCODE = Number(climbdownKey.text);
MovieClip(this.parent.parent).KEYCLIMBUPCODEB = Number(climbupKeyB.text);
MovieClip(this.parent.parent).KEYCLIMBDOWNCODEB = Number(climbdownKeyB.text);
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 35
//Timeline_43 (tableflipdagame_fla.Timeline_43)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_43 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_43(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 36
//Timeline_45 (tableflipdagame_fla.Timeline_45)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_45 extends MovieClip {
public var jumpStengthtxt:TextField;
public var actionKeyB:TextField;
public var updrafttxt:TextField;
public var climbspeedtxt:TextField;
public var climbupKeyB:TextField;
public var climbdownKey:TextField;
public var climbdownKeyB:TextField;
public var actionKey:TextField;
public var leftKey:TextField;
public var leftKeyB:TextField;
public var rightKeyB:TextField;
public var speedtxt:TextField;
public var gravitytxt:TextField;
public var climbupKey:TextField;
public var jumpKey:TextField;
public var jumpKeyB:TextField;
public var conveyortxt:TextField;
public var resistancetxt:TextField;
public var rightKey:TextField;
public function Timeline_45(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(this.parent.parent).JUMPSTRENGTH = Number(jumpStengthtxt.text);
MovieClip(this.parent.parent).GRAVITY = Number(gravitytxt.text);
MovieClip(this.parent.parent).UPDRAFTSTRENGTH = Number(updrafttxt.text);
MovieClip(this.parent.parent).RESISTANCE = Number(resistancetxt.text);
MovieClip(this.parent.parent).SPEED = Number(speedtxt.text);
MovieClip(this.parent.parent).CLIMBSPEED = Number(climbspeedtxt.text);
MovieClip(this.parent.parent).CONVEYORSPEED = Number(conveyortxt.text);
MovieClip(this.parent.parent).KEYLEFTCODE = Number(leftKey.text);
MovieClip(this.parent.parent).KEYRIGHTCODE = Number(rightKey.text);
MovieClip(this.parent.parent).KEYJUMPCODE = Number(jumpKey.text);
MovieClip(this.parent.parent).KEYACTIONCODE = Number(actionKey.text);
MovieClip(this.parent.parent).KEYLEFTCODEB = Number(leftKeyB.text);
MovieClip(this.parent.parent).KEYRIGHTCODEB = Number(rightKeyB.text);
MovieClip(this.parent.parent).KEYJUMPCODEB = Number(jumpKeyB.text);
MovieClip(this.parent.parent).KEYACTIONCODEB = Number(actionKeyB.text);
MovieClip(this.parent.parent).KEYCLIMBUPCODE = Number(climbupKey.text);
MovieClip(this.parent.parent).KEYCLIMBDOWNCODE = Number(climbdownKey.text);
MovieClip(this.parent.parent).KEYCLIMBUPCODEB = Number(climbupKeyB.text);
MovieClip(this.parent.parent).KEYCLIMBDOWNCODEB = Number(climbdownKeyB.text);
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 37
//Timeline_46 (tableflipdagame_fla.Timeline_46)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_46 extends MovieClip {
public var theBehaviour:TextField;
public var movingCollision:MovieClip;
public var theDirection:TextField;
public var theSpeed:TextField;
public var init;
public var lastX;
public var lastY;
public var moveSpeed;
public var fryerBehaviour;
public var moveDirection;
public var bopped;
public function Timeline_46(){
addFrameScript(0, frame1, 16, frame17);
}
public function boppedCheck(_arg1:Event){
if (bopped){
gotoAndPlay(4);
movingCollision.visible = false;
theSpeed.visible = false;
theDirection.visible = false;
theBehaviour.visible = false;
removeEventListener(Event.ENTER_FRAME, boppedCheck);
} else {
if (moveDirection == "LEFT"){
scaleX = -1;
if (currentFrame != 1){
gotoAndStop(1);
};
};
if (moveDirection == "RIGHT"){
scaleX = 1;
if (currentFrame != 1){
gotoAndStop(1);
};
};
if (moveDirection == "UP"){
if (currentFrame != 2){
gotoAndStop(2);
};
};
if (moveDirection == "DOWN"){
if (currentFrame != 3){
gotoAndStop(3);
};
};
};
}
function frame1(){
if (MovieClip(this).init == null){
init = true;
(parent as MovieClip).movingFryerArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
movingCollision.visible = false;
theSpeed.visible = false;
theDirection.visible = false;
theBehaviour.visible = false;
};
lastX = x;
lastY = y;
moveSpeed = Number(theSpeed.text);
if (theDirection.text.split("")[0] == "R"){
moveDirection = "RIGHT";
} else {
if (theDirection.text.split("")[0] == "L"){
moveDirection = "LEFT";
} else {
if (theDirection.text.split("")[0] == "U"){
moveDirection = "UP";
} else {
if (theDirection.text.split("")[0] == "D"){
moveDirection = "DOWN";
};
};
};
};
if (theBehaviour.text.split("")[0] == "A"){
fryerBehaviour = "KILLER";
} else {
if (theBehaviour.text.split("")[0] == "B"){
fryerBehaviour = "BOP";
} else {
if (theBehaviour.text.split("")[0] == "C"){
fryerBehaviour = "PLATFORM";
};
};
};
stop();
bopped = false;
addEventListener(Event.ENTER_FRAME, boppedCheck);
};
}
function frame17(){
stop();
}
}
}//package tableflipdagame_fla
Section 38
//Timeline_52 (tableflipdagame_fla.Timeline_52)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_52 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_52(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 39
//Timeline_53 (tableflipdagame_fla.Timeline_53)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_53 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_53(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 40
//Timeline_55 (tableflipdagame_fla.Timeline_55)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_55 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_55(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 41
//Timeline_56 (tableflipdagame_fla.Timeline_56)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_56 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_56(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 42
//Timeline_59 (tableflipdagame_fla.Timeline_59)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_59 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_59(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 43
//Timeline_6 (tableflipdagame_fla.Timeline_6)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_6 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_6(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 44
//Timeline_60 (tableflipdagame_fla.Timeline_60)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_60 extends MovieClip {
public var theBehaviour:TextField;
public var movingCollision:MovieClip;
public var theDirection:TextField;
public var theSpeed:TextField;
public var init;
public var lastX;
public var lastY;
public var moveSpeed;
public var fryerBehaviour;
public var moveDirection;
public var bopped;
public function Timeline_60(){
addFrameScript(0, frame1, 16, frame17);
}
public function boppedCheck(_arg1:Event){
if (bopped){
gotoAndPlay(4);
movingCollision.visible = false;
theSpeed.visible = false;
theDirection.visible = false;
theBehaviour.visible = false;
removeEventListener(Event.ENTER_FRAME, boppedCheck);
} else {
if (moveDirection == "LEFT"){
scaleX = -1;
if (currentFrame != 1){
gotoAndStop(1);
};
};
if (moveDirection == "RIGHT"){
scaleX = 1;
if (currentFrame != 1){
gotoAndStop(1);
};
};
if (moveDirection == "UP"){
if (currentFrame != 2){
gotoAndStop(2);
};
};
if (moveDirection == "DOWN"){
if (currentFrame != 3){
gotoAndStop(3);
};
};
};
}
function frame1(){
if (MovieClip(this).init == null){
init = true;
(parent as MovieClip).movingFryerArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
movingCollision.visible = false;
theSpeed.visible = false;
theDirection.visible = false;
theBehaviour.visible = false;
};
lastX = x;
lastY = y;
moveSpeed = Number(theSpeed.text);
if (theDirection.text.split("")[0] == "R"){
moveDirection = "RIGHT";
} else {
if (theDirection.text.split("")[0] == "L"){
moveDirection = "LEFT";
} else {
if (theDirection.text.split("")[0] == "U"){
moveDirection = "UP";
} else {
if (theDirection.text.split("")[0] == "D"){
moveDirection = "DOWN";
};
};
};
};
if (theBehaviour.text.split("")[0] == "A"){
fryerBehaviour = "KILLER";
} else {
if (theBehaviour.text.split("")[0] == "B"){
fryerBehaviour = "BOP";
} else {
if (theBehaviour.text.split("")[0] == "C"){
fryerBehaviour = "PLATFORM";
};
};
};
stop();
bopped = false;
addEventListener(Event.ENTER_FRAME, boppedCheck);
};
}
function frame17(){
stop();
}
}
}//package tableflipdagame_fla
Section 45
//Timeline_62 (tableflipdagame_fla.Timeline_62)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_62 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_62(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 46
//Timeline_64 (tableflipdagame_fla.Timeline_64)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_64 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_64(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 47
//Timeline_65 (tableflipdagame_fla.Timeline_65)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_65 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_65(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 48
//Timeline_66 (tableflipdagame_fla.Timeline_66)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_66 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_66(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 49
//Timeline_69 (tableflipdagame_fla.Timeline_69)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_69 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_69(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 50
//Timeline_70 (tableflipdagame_fla.Timeline_70)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_70 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_70(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 51
//Timeline_71 (tableflipdagame_fla.Timeline_71)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_71 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_71(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 52
//Timeline_73 (tableflipdagame_fla.Timeline_73)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_73 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_73(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 53
//Timeline_74 (tableflipdagame_fla.Timeline_74)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_74 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_74(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 54
//Timeline_75 (tableflipdagame_fla.Timeline_75)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_75 extends MovieClip {
public var theBehaviour:TextField;
public var movingCollision:MovieClip;
public var theDirection:TextField;
public var theSpeed:TextField;
public var init;
public var lastX;
public var lastY;
public var moveSpeed;
public var fryerBehaviour;
public var moveDirection;
public var bopped;
public function Timeline_75(){
addFrameScript(0, frame1, 99, frame100);
}
public function boppedCheck(_arg1:Event){
if (bopped){
gotoAndPlay(4);
movingCollision.visible = false;
theSpeed.visible = false;
theDirection.visible = false;
theBehaviour.visible = false;
removeEventListener(Event.ENTER_FRAME, boppedCheck);
} else {
if (moveDirection == "LEFT"){
scaleX = -1;
if (currentFrame != 1){
gotoAndStop(1);
};
};
if (moveDirection == "RIGHT"){
scaleX = 1;
if (currentFrame != 1){
gotoAndStop(1);
};
};
if (moveDirection == "UP"){
if (currentFrame != 2){
gotoAndStop(2);
};
};
if (moveDirection == "DOWN"){
if (currentFrame != 3){
gotoAndStop(3);
};
};
};
}
function frame1(){
if (MovieClip(this).init == null){
init = true;
(parent as MovieClip).movingFryerArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
movingCollision.visible = false;
theSpeed.visible = false;
theDirection.visible = false;
theBehaviour.visible = false;
};
lastX = x;
lastY = y;
moveSpeed = Number(theSpeed.text);
if (theDirection.text.split("")[0] == "R"){
moveDirection = "RIGHT";
} else {
if (theDirection.text.split("")[0] == "L"){
moveDirection = "LEFT";
} else {
if (theDirection.text.split("")[0] == "U"){
moveDirection = "UP";
} else {
if (theDirection.text.split("")[0] == "D"){
moveDirection = "DOWN";
};
};
};
};
if (theBehaviour.text.split("")[0] == "A"){
fryerBehaviour = "KILLER";
} else {
if (theBehaviour.text.split("")[0] == "B"){
fryerBehaviour = "BOP";
} else {
if (theBehaviour.text.split("")[0] == "C"){
fryerBehaviour = "PLATFORM";
};
};
};
stop();
bopped = false;
addEventListener(Event.ENTER_FRAME, boppedCheck);
};
}
function frame100(){
stop();
}
}
}//package tableflipdagame_fla
Section 55
//Timeline_81 (tableflipdagame_fla.Timeline_81)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_81 extends MovieClip {
public var targetX:TextField;
public var targetY:TextField;
public var teleportType:TextField;
public var teleportGFK:MovieClip;
public var targetLevel:TextField;
public var teleportKey:TextField;
public function Timeline_81(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).teleportArray.push(this);
if (MovieClip(this.parent.parent).debugMode != true){
teleportGFK.visible = false;
teleportKey.visible = false;
targetLevel.visible = false;
teleportType.visible = false;
targetX.visible = false;
targetY.visible = false;
};
}
}
}//package tableflipdagame_fla
Section 56
//Timeline_82 (tableflipdagame_fla.Timeline_82)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class Timeline_82 extends MovieClip {
public var behaviourType:TextField;
public var isCopy;
public var talked;
public var talkType;
public var allowSkip;
public function Timeline_82(){
addFrameScript(0, frame1, 1, frame2);
}
public function Talk(){
var _local1:Class;
var _local2:DisplayObject;
if (isCopy == null){
if (!talked){
if ((((talkType == "ACTION")) || ((talkType == "CONTACT")))){
talked = true;
};
_local1 = this.constructor;
_local2 = new (_local1);
MovieClip(_local2).isCopy = true;
MovieClip(_local2).gotoAndStop(2);
MovieClip(this.parent.parent).addChild(_local2);
MovieClip(this.parent.parent).talking = true;
};
};
}
public function onKeyUnPush(_arg1:KeyboardEvent){
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODE){
advance();
} else {
if (_arg1.keyCode == MovieClip(this.parent).KEYACTIONCODEB){
advance();
};
};
}
public function advance(){
if (allowSkip){
if (currentFrame == totalFrames){
stage.removeEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
MovieClip(this.parent).talking = false;
MovieClip(this.parent).removeChild(this);
} else {
nextFrame();
};
} else {
allowSkip = true;
};
}
function frame1(){
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
stop();
talked = false;
if (behaviourType.text.split("")[0] == "A"){
talkType = "ACTIONLOOP";
} else {
if (behaviourType.text.split("")[0] == "B"){
talkType = "ACTION";
} else {
if (behaviourType.text.split("")[0] == "C"){
talkType = "CONTACT";
} else {
if (behaviourType.text.split("")[0] == "D"){
talkType = "INSTANT";
};
};
};
};
if (talkType != "INSTANT"){
MovieClip(this.parent).messageArray.push(this);
} else {
Talk();
};
}
function frame2(){
allowSkip = true;
if (MovieClip(this.parent).KEYACTIONIN == true){
allowSkip = false;
};
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUnPush);
}
}
}//package tableflipdagame_fla
Section 57
//trampoline_58 (tableflipdagame_fla.trampoline_58)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class trampoline_58 extends MovieClip {
public var power;
public function trampoline_58(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).trampArray.push(this);
power = ((parent.parent as MovieClip).JUMPSTRENGTH * 4);
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla
Section 58
//trampoline_61 (tableflipdagame_fla.trampoline_61)
package tableflipdagame_fla {
import flash.events.*;
import flash.geom.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class trampoline_61 extends MovieClip {
public var power;
public function trampoline_61(){
addFrameScript(0, frame1);
}
function frame1(){
(parent as MovieClip).trampArray.push(this);
power = ((parent.parent as MovieClip).JUMPSTRENGTH * 2);
if (MovieClip(this.parent.parent).debugMode != true){
visible = false;
};
}
}
}//package tableflipdagame_fla