Section 1
//KongregateEvent (com.kongregate.as3.client.events.KongregateEvent)
package com.kongregate.as3.client.events {
import flash.events.*;
public class KongregateEvent extends Event {
public static const COMPLETE:String = "component_api_available";
public function KongregateEvent(_arg1:String){
super(_arg1);
}
}
}//package com.kongregate.as3.client.events
Section 2
//AbstractShadowService (com.kongregate.as3.client.services.AbstractShadowService)
package com.kongregate.as3.client.services {
import flash.events.*;
public class AbstractShadowService extends EventDispatcher {
protected function alert(_arg1:String, _arg2:String, _arg3="", _arg4:String=""):void{
trace(((((((("Kongregate API: " + _arg1) + ".") + _arg2) + "(") + _arg3) + ") ") + _arg4));
}
}
}//package com.kongregate.as3.client.services
Section 3
//HighScoreServiceShadow (com.kongregate.as3.client.services.HighScoreServiceShadow)
package com.kongregate.as3.client.services {
public class HighScoreServiceShadow extends AbstractShadowService implements IHighScoreServices {
private var mode:String;
public function HighScoreServiceShadow(){
mode = "";
}
public function submit(_arg1:Number, _arg2:String=null):void{
alert("IHighScoreServices", "submit", arguments);
}
public function connect():Boolean{
alert("IKongregateServices", "connect");
return (true);
}
public function requestList(_arg1:Function):void{
alert("IHighScoreServices", "requestList", "", (("[Mode: " + mode) + "]"));
_arg1({success:false});
}
public function setMode(_arg1:String):void{
alert("IHighScoreServices", "setMode", arguments);
this.mode = _arg1;
}
}
}//package com.kongregate.as3.client.services
Section 4
//IHighScoreServices (com.kongregate.as3.client.services.IHighScoreServices)
package com.kongregate.as3.client.services {
public interface IHighScoreServices {
function setMode(_arg1:String):void;
function submit(_arg1:Number, _arg2:String=null):void;
function requestList(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 5
//IKongregateServices (com.kongregate.as3.client.services.IKongregateServices)
package com.kongregate.as3.client.services {
import flash.events.*;
public interface IKongregateServices extends IEventDispatcher {
function getPlayerInfo(_arg1:Function):void;
function connect(_arg1:Number=-1):Boolean;
}
}//package com.kongregate.as3.client.services
Section 6
//IStatServices (com.kongregate.as3.client.services.IStatServices)
package com.kongregate.as3.client.services {
public interface IStatServices {
function submitArray(_arg1:Array):void;
function submit(_arg1:String, _arg2:Number):void;
}
}//package com.kongregate.as3.client.services
Section 7
//IUserServices (com.kongregate.as3.client.services.IUserServices)
package com.kongregate.as3.client.services {
public interface IUserServices {
function getName():String;
function getPlayerInfo(_arg1:Function):void;
}
}//package com.kongregate.as3.client.services
Section 8
//KongregateServiceShadow (com.kongregate.as3.client.services.KongregateServiceShadow)
package com.kongregate.as3.client.services {
public class KongregateServiceShadow extends AbstractShadowService implements IKongregateServices {
public function getName():String{
alert("IKongregateServices", "getName");
return ("Guest");
}
public function connect(_arg1:Number=-1):Boolean{
alert("IKongregateServices", "connect", arguments);
return (true);
}
public function getPlayerInfo(_arg1:Function):void{
alert("IKongregateServices", "getPlayerInfo");
_arg1(new Object());
}
}
}//package com.kongregate.as3.client.services
Section 9
//StatServiceShadow (com.kongregate.as3.client.services.StatServiceShadow)
package com.kongregate.as3.client.services {
public class StatServiceShadow extends AbstractShadowService implements IStatServices {
public function submitArray(_arg1:Array):void{
alert("IStatServices", "submitArray", arguments);
}
public function submit(_arg1:String, _arg2:Number):void{
alert("IStatServices", "submitStat", arguments);
}
}
}//package com.kongregate.as3.client.services
Section 10
//UserServiceShadow (com.kongregate.as3.client.services.UserServiceShadow)
package com.kongregate.as3.client.services {
public class UserServiceShadow extends AbstractShadowService implements IUserServices {
public function getName():String{
alert("UserService", "getName");
return ("Guest");
}
public function getPlayerInfo(_arg1:Function):void{
alert("UserService", "getPlayerInfo");
_arg1({isGuest:true, name:"Guest", points:0, level:0, isMode:false, isAdmin:false, isDeveloper:false, avatarPath:"", chatAvatarPath:""});
}
}
}//package com.kongregate.as3.client.services
Section 11
//IAPIBootstrap (com.kongregate.as3.client.IAPIBootstrap)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
public interface IAPIBootstrap {
function init(_arg1:Event=null, _arg2:Stage=null):void;
function hideLog():void;
function showLog(_arg1:int=0):void;
}
}//package com.kongregate.as3.client
Section 12
//KongregateAPI (com.kongregate.as3.client.KongregateAPI)
package com.kongregate.as3.client {
import flash.events.*;
import flash.display.*;
import com.kongregate.as3.client.services.*;
import com.kongregate.as3.client.events.*;
import flash.system.*;
import flash.errors.*;
import flash.net.*;
import flash.utils.*;
public class KongregateAPI extends Sprite {
private const VERSION:Number = 1;
private var loader:Loader;
private var loadedDomain:ApplicationDomain;
private static const CLASS_USER:String = "com.kongregate.as3.client.services.UserServices";
private static const CLASS_STATS:String = "com.kongregate.as3.client.services.StatServices";
private static const CLASS_SERVICES:String = "com.kongregate.as3.client.services.KongregateServices";
private static const CLASS_SCORES:String = "com.kongregate.as3.client.services.HighScoreServices";
private static const DEBUG_API_URL:String = "//Linuxpc/kongregate/public/flash/API_AS3.swf";
private static var _connected:Boolean;
private static var kUser:IUserServices;
private static var _loaded:Boolean;
private static var kServices:IKongregateServices;
private static var kScores:IHighScoreServices;
private static var mInstance:KongregateAPI;
private static var kStats:IStatServices;
private static var kAPI:IAPIBootstrap;
public function KongregateAPI(){
if (mInstance != null){
throw (new Error("Warning: KongregateAPI has been added to stage more than once or accessed improperly. Use getInstance() or a stage reference to access."));
};
mInstance = this;
this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
}
public function get loaded():Boolean{
return (_loaded);
}
public function get connected():Boolean{
return (_connected);
}
private function alertConnected(_arg1:TimerEvent=null):void{
var _local2:KongregateEvent;
var _local3:Boolean;
_local2 = new KongregateEvent(KongregateEvent.COMPLETE);
_local3 = this.dispatchEvent(_local2);
}
private function init(_arg1:Event):void{
var _local2:Object;
var _local3:String;
var _local4:URLRequest;
var _local5:LoaderContext;
this.removeEventListener(Event.ADDED_TO_STAGE, init);
_loaded = false;
_connected = false;
_local2 = LoaderInfo(root.loaderInfo).parameters;
_local3 = _local2.api_path;
if (_local3 == null){
trace("Alert: Kongregate API could not be loaded, due to local testing. API will load when the game is uploaded.");
createShadowServices();
return;
};
Security.allowDomain("*.kongregate.com");
Security.allowDomain("kongregatetrunk.com");
_local4 = new URLRequest(_local3);
_local5 = new LoaderContext(false);
_local5.applicationDomain = ApplicationDomain.currentDomain;
_local5.securityDomain = SecurityDomain.currentDomain;
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
loader.load(_local4, _local5);
}
public function get api():IAPIBootstrap{
return (kAPI);
}
private function loadComplete(_arg1:Event):void{
getServices();
}
public function get scores():IHighScoreServices{
return (kScores);
}
private function ioErrorHandler(_arg1:IOErrorEvent):void{
throw (new IOError(("API file not found. " + _arg1)));
}
public function get services():IKongregateServices{
return (kServices);
}
public function get stats():IStatServices{
return (kStats);
}
private function createShadowServices():void{
var _local1:Timer;
trace(">>> Kongregate Shadow Services instantiated for local development..");
kServices = new KongregateServiceShadow();
kScores = new HighScoreServiceShadow();
kStats = new StatServiceShadow();
kUser = new UserServiceShadow();
_local1 = new Timer(200, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, alertConnected);
_local1.start();
_connected = true;
}
public function get user():IUserServices{
return (kUser);
}
private function getServices():void{
var _local1:ApplicationDomain;
var _local2:*;
var _local3:*;
var _local4:*;
var _local5:*;
_local1 = ApplicationDomain.currentDomain;
kAPI = IAPIBootstrap(loader.getChildAt(0));
this.addChild(loader);
_local2 = _local1.getDefinition(CLASS_SERVICES);
trace(_local2);
kServices = _local2.getInstance();
_local3 = _local1.getDefinition(CLASS_SCORES);
kScores = _local3.getInstance();
_local4 = _local1.getDefinition(CLASS_STATS);
kStats = _local4.getInstance();
_local5 = _local1.getDefinition(CLASS_USER);
kUser = _local5.getInstance();
kServices.connect(VERSION);
_loaded = true;
_connected = true;
alertConnected();
}
public static function getInstance():KongregateAPI{
if (!mInstance){
throw (new IllegalOperationError("You must add the Kongregate API component to the stage before attempting to access it."));
};
return (mInstance);
}
}
}//package com.kongregate.as3.client
Section 13
//arrow_87 (FloodFill_fla.arrow_87)
package FloodFill_fla {
import flash.display.*;
public dynamic class arrow_87 extends MovieClip {
public var pointer:MovieClip;
}
}//package FloodFill_fla
Section 14
//CloseTut_9 (FloodFill_fla.CloseTut_9)
package FloodFill_fla {
import flash.display.*;
public dynamic class CloseTut_9 extends MovieClip {
public function CloseTut_9(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package FloodFill_fla
Section 15
//confirm_74 (FloodFill_fla.confirm_74)
package FloodFill_fla {
import flash.events.*;
import flash.display.*;
public dynamic class confirm_74 extends MovieClip {
public var N:SimpleButton;
public var Y:SimpleButton;
public function confirm_74(){
addFrameScript(0, frame1);
}
function frame1(){
Y.addEventListener(MouseEvent.CLICK, startOver, false, 0, true);
N.addEventListener(MouseEvent.CLICK, cancel, false, 0, true);
}
public function startOver(_arg1=null):void{
FloodFill.startOverFlag = true;
FloodFill.level = -4;
}
public function cancel(_arg1=null):void{
this.visible = false;
}
}
}//package FloodFill_fla
Section 16
//loaderMC_2 (FloodFill_fla.loaderMC_2)
package FloodFill_fla {
import flash.display.*;
import flash.text.*;
public dynamic class loaderMC_2 extends MovieClip {
public var percentdone:TextField;
public var kilobytes:TextField;
public var barmc:MovieClip;
}
}//package FloodFill_fla
Section 17
//Onefifth_43 (FloodFill_fla.Onefifth_43)
package FloodFill_fla {
import flash.display.*;
import flash.media.*;
public dynamic class Onefifth_43 extends MovieClip {
public var channel:SoundChannel;
public var sound:levelCompleteSFX;
public function Onefifth_43(){
addFrameScript(0, frame1, 40, frame41, 119, frame120);
}
function frame1(){
stop();
}
function frame120(){
stop();
}
function frame41(){
channel = new SoundChannel();
sound = new levelCompleteSFX();
channel = sound.play();
}
}
}//package FloodFill_fla
Section 18
//play_49 (FloodFill_fla.play_49)
package FloodFill_fla {
import flash.display.*;
public dynamic class play_49 extends MovieClip {
public function play_49(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package FloodFill_fla
Section 19
//rolloutblack_63 (FloodFill_fla.rolloutblack_63)
package FloodFill_fla {
import flash.display.*;
public dynamic class rolloutblack_63 extends MovieClip {
public function rolloutblack_63(){
addFrameScript(0, frame1, 29, frame30);
}
function frame1(){
stop();
}
function frame30(){
stop();
}
}
}//package FloodFill_fla
Section 20
//settingsmc_67 (FloodFill_fla.settingsmc_67)
package FloodFill_fla {
import flash.events.*;
import flash.display.*;
import flash.media.*;
import flash.system.*;
import flash.geom.*;
import flash.text.*;
import flash.errors.*;
import flash.net.*;
import flash.utils.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class settingsmc_67 extends MovieClip {
public var rules:SimpleButton;
public var m:SimpleButton;
public var reset:SimpleButton;
public var h:SimpleButton;
public var l:SimpleButton;
public var website:SimpleButton;
public var email:SimpleButton;
public var confirm:MovieClip;
public var sponsorBtn:MovieClip;
public function settingsmc_67(){
addFrameScript(0, frame1);
}
public function toggleQuality(_arg1=null):void{
switch (_arg1.target.name){
case "h":
stage.quality = StageQuality.HIGH;
break;
case "m":
stage.quality = StageQuality.MEDIUM;
break;
case "l":
stage.quality = StageQuality.LOW;
break;
};
}
public function sendEmail(_arg1=null):void{
var _local2:URLRequest;
_local2 = new URLRequest("mailto:mr.onefifth@gmail.com&subject=FloodFill%20Comments");
navigateToURL(_local2);
}
public function sponsorWeb(_arg1=null):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gimme5games.com/?ref=floodfill");
navigateToURL(_local2);
}
public function viewRules(_arg1=null):void{
var _local2:Tutorial;
_local2 = new Tutorial();
parent.addChild(_local2);
}
function frame1(){
h.addEventListener(MouseEvent.CLICK, toggleQuality, false, 0, true);
m.addEventListener(MouseEvent.CLICK, toggleQuality, false, 0, true);
l.addEventListener(MouseEvent.CLICK, toggleQuality, false, 0, true);
reset.addEventListener(MouseEvent.CLICK, resetGame, false, 0, true);
rules.addEventListener(MouseEvent.CLICK, viewRules, false, 0, true);
email.addEventListener(MouseEvent.CLICK, sendEmail, false, 0, true);
website.addEventListener(MouseEvent.CLICK, gotoWebsite, false, 0, true);
sponsorBtn.addEventListener(MouseEvent.CLICK, sponsorWeb, false, 0, true);
confirm.visible = false;
}
public function resetGame(_arg1=null):void{
confirm.visible = true;
}
public function gotoWebsite(_arg1=null):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.paradoxide.com");
navigateToURL(_local2);
}
}
}//package FloodFill_fla
Section 21
//SponsorLogo_34 (FloodFill_fla.SponsorLogo_34)
package FloodFill_fla {
import flash.events.*;
import flash.display.*;
public dynamic class SponsorLogo_34 extends MovieClip {
public var hand:MovieClip;
public var playBtn:SimpleButton;
public var linkObj:MovieClip;
public function SponsorLogo_34(){
addFrameScript(0, frame1, 91, frame92, 92, frame93);
}
function frame93(){
stop();
}
function frame1(){
stop();
}
function frame92(){
stop();
playBtn.addEventListener(MouseEvent.CLICK, go, false, 0, true);
}
public function go(_arg1=null){
play();
}
}
}//package FloodFill_fla
Section 22
//Tween11_32 (FloodFill_fla.Tween11_32)
package FloodFill_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Tween11_32 extends MovieClip {
public var percentdone:TextField;
public var kilobytes:TextField;
public var barmc:MovieClip;
}
}//package FloodFill_fla
Section 23
//Advance (Advance)
package {
import flash.display.*;
public dynamic class Advance extends MovieClip {
}
}//package
Section 24
//advanceBox (advanceBox)
package {
import flash.display.*;
public dynamic class advanceBox extends MovieClip {
}
}//package
Section 25
//BGMusic (BGMusic)
package {
import flash.media.*;
public dynamic class BGMusic extends Sound {
}
}//package
Section 26
//ColourBar (ColourBar)
package {
import flash.events.*;
import flash.display.*;
public class ColourBar extends MovieClip {
public var green:MovieClip;
public var orange:MovieClip;
var selector_x:int;// = 0
var selector_y:int;// = 0
public var blue:MovieClip;
public var pink:MovieClip;
var focused:int;// = 0
var current:int;// = 3
var chips:Array;
var chips_height:Array;
public var currentmc:MovieClip;
public var selector:MovieClip;
public function ColourBar():void{
chips = new Array(4);
focused = 0;
current = 3;
selector_y = 0;
selector_x = 0;
chips_height = new Array(4);
super();
chips = [blue, green, orange, pink];
chips_height = [42, 42, 42, 42];
chips_height[3] = (chips_height[3] + 10);
addEventListener(MouseEvent.CLICK, clickHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, lostFocus, false, 0, true);
addEventListener(Event.ENTER_FRAME, eachFrame, false, 0, true);
blue.addEventListener(MouseEvent.ROLL_OVER, moveSelector, false, 0, true);
green.addEventListener(MouseEvent.ROLL_OVER, moveSelector, false, 0, true);
orange.addEventListener(MouseEvent.ROLL_OVER, moveSelector, false, 0, true);
pink.addEventListener(MouseEvent.ROLL_OVER, moveSelector, false, 0, true);
}
function eachFrame(_arg1=null):void{
var _local2:int;
if (FloodFill.currentColour != current){
chips_height[current] = (chips_height[current] - 10);
current = FloodFill.currentColour;
chips_height[current] = (chips_height[current] + 10);
currentmc.x = (chips[current].x - 5);
};
if (selector.y != selector_y){
selector.y = (selector.y - ((selector.y - selector_y) / 3));
};
if (selector.x != selector_x){
selector.x = (selector.x - ((selector.x - selector_x) / 4));
};
_local2 = 0;
while (_local2 < chips_height.length) {
if (chips[_local2].height != chips_height[_local2]){
chips[_local2].height = (chips[_local2].height - ((chips[_local2].height - chips_height[_local2]) / 4));
};
_local2++;
};
}
function lostFocus(_arg1:MouseEvent):void{
selector_y = 0;
}
function clickHandler(_arg1:MouseEvent):void{
if (focused != current){
FloodFill.currentColour = focused;
};
}
function moveSelector(_arg1:MouseEvent):void{
selector_y = 5;
selector_x = (_arg1.target.x - 5);
focused = ((_arg1.target.x - 5) / 40);
}
}
}//package
Section 27
//Cursor (Cursor)
package {
import flash.display.*;
public dynamic class Cursor extends MovieClip {
public var fill:MovieClip;
}
}//package
Section 28
//fill1 (fill1)
package {
import flash.media.*;
public dynamic class fill1 extends Sound {
}
}//package
Section 29
//fill2 (fill2)
package {
import flash.media.*;
public dynamic class fill2 extends Sound {
}
}//package
Section 30
//fill3 (fill3)
package {
import flash.media.*;
public dynamic class fill3 extends Sound {
}
}//package
Section 31
//fill4 (fill4)
package {
import flash.media.*;
public dynamic class fill4 extends Sound {
}
}//package
Section 32
//FloodFill (FloodFill)
package {
import flash.events.*;
import flash.display.*;
import com.kongregate.as3.client.*;
import flash.media.*;
import flash.geom.*;
import flash.net.*;
import flash.ui.*;
public class FloodFill extends MovieClip {
public var l12p20:p12_12;
public var l12p22:p12_10;
public var l12p24:p12_12;
public var l12p26:p12_26;
public var l8p1:p8_1;
public var l8p2:p8_2;
public var l8p3:p8_3;
public var l8p4:p8_4;
public var l8p5:p8_5;
public var l8p6:p8_6;
public var l12p23:p12_11;
public var l8p8:p8_8;
public var l8p7:p8_7;
public var l8p9:p8_9;
public var backSponsor:MovieClip;
public var l12p21:p12_9;
public var l12p25:p12_25;
public var l13p10:p13_10;
public var l13p11:p13_11;
public var l7p1:p7_1;
public var l7p2:p7_2;
public var l7p5:p7_4;
public var l7p6:p7_6;
public var l7p7:p7_7;
public var l7p3:p7_3;
var nextLevel:Boolean;// = false
public var l7p8:p7_7;
public var l7p9:p7_9;
public var l7p4:p7_4;
public var advance:advanceBox;
public var l6p1:p6_1;
public var l6p2:p6_2;
public var l6p4:p6_4;
public var l6p5:p6_5;
public var l6p6:p6_5;
public var l6p7:p6_4;
public var l6p8:p6_2;
public var l6p9:p6_2;
public var l18p1:p18_1;
public var l18p2:p18_2;
public var l18p3:p18_3;
public var l18p4:p18_4;
public var l18p6:p18_6;
public var l18p8:p18_8;
public var l18p5:p18_5;
public var l14p11:p14_11;
public var l14p14:p14_14;
public var l14p10:p14_10;
public var l14p12:p14_12;
public var l18p9:p18_9;
var checkFlag:Boolean;// = true
public var l6p3:p6_2;
public var l14p13:p14_13;
var coloursUsed:Array;
public var l18p7:p18_7;
public var l5p1:p5_1;
public var l5p2:p5_1;
public var l5p3:p5_3;
public var l5p4:p5_3;
public var l5p5:p5_5;
public var l5p6:p5_3;
public var l5p7:p5_3;
public var l5p9:p5_1;
public var l17p1:p17_1;
public var l17p2:p17_2;
public var l17p3:p17_3;
public var l17p4:p17_4;
public var l17p5:p17_5;
public var l17p6:p17_6;
public var l17p7:p17_7;
public var l17p8:p17_8;
public var l17p9:p17_9;
public var back:SimpleButton;
public var l5p8:p5_8;
var currentCursorColour:ColorTransform;
var cheater:Boolean;// = false
public var l15p10:p15_10;
public var l15p11:p15_11;
public var l15p12:p11_12;
public var l15p15:p15_15;
public var l6p10:p6_1;
public var l15p17:p15_17;
public var l15p18:p15_18;
public var l15p19:p15_19;
public var l4p1:p4_1;
public var l4p3:p4_2;
public var l4p5:p4_5;
public var l4p6:p4_6;
public var l4p7:p4_7;
public var l4p8:p4_8;
public var l4p2:p4_2;
public var l16p1:p16_1;
public var l16p2:p16_2;
public var l16p3:p16_3;
public var l16p4:p16_4;
public var l16p6:p16_6;
public var l16p8:p16_8;
public var l4p4:p4_4;
public var l16p7:p16_7;
public var l16p5:p16_5;
public var l15p13:p15_13;
public var backlevels:SimpleButton;
public var l3p1:p3_1;
public var l3p2:p3_1;
public var l3p3:p3_1;
public var l3p5:p3_1;
public var l3p6:p3_1;
var puzzleLayout:Array;
public var l15p1:p15_1;
public var l15p2:p15_2;
public var l15p3:p15_3;
public var l15p4:p15_4;
public var l15p5:p15_5;
public var l15p6:p15_6;
public var l15p14:p15_14;
public var l15p8:p15_8;
public var l3p4:p3_1;
public var l16p11:p16_11;
public var l16p13:p16_13;
public var l16p14:p16_14;
public var l16p15:p16_15;
public var l7p10:p7_10;
public var l16p17:p16_17;
public var l16p18:p16_18;
public var l16p16:p16_16;
public var l7p11:p7_11;
public var l16p10:p16_10;
public var l16p19:p16_19;
public var l16p12:p16_10;
public var l15p9:p15_9;
var numColoursUsed:int;
public var l7p12:p7_11;
public var l7p13:p7_13;
public var l7p14:p7_14;
public var l15p16:p15_16;
public var l15p7:p15_7;
public var l16p20:p16_20;
public var l16p21:p16_21;
public var l16p22:p16_22;
public var l16p24:p16_24;
public var muteBtn:MuteBtn;
public var l2p1:p2_1;
public var l2p2:p2_1;
public var l2p3:p2_1;
public var l2p4:p2_1;
public var l16p23:p16_23;
public var l14p1:p14_1;
public var l14p2:p14_2;
public var l14p3:p14_3;
public var l14p4:p14_4;
public var l14p6:p14_6;
public var l14p8:p14_8;
public var l14p7:p14_7;
public var l14p9:p14_9;
public var logo:Logo;
public var l14p5:p14_5;
public var l17p10:p17_10;
public var l17p11:p17_11;
public var l17p13:p17_13;
public var l17p14:p17_14;
public var l17p15:p17_15;
public var l17p16:p17_16;
public var l17p18:p17_18;
public var l1p2:p1_1;
public var l8p15:p8_15;
public var l8p16:p8_16;
public var l8p10:p8_10;
public var l8p12:p8_12;
public var l17p19:p17_19;
public var l17p12:p17_12;
public var l13p1:p13_1;
public var l13p2:p13_2;
public var l13p3:p13_3;
public var l13p4:p13_4;
public var l17p17:p17_17;
public var l13p6:p13_6;
public var l1p1:p1_1;
public var l13p8:p13_8;
public var l13p9:p13_9;
public var l13p5:p13_5;
public var l17p21:p17_21;
public var l17p22:p17_22;
public var l8p14:p8_14;
public var playArea:PlayingArea;
public var l17p20:p17_20;
public var l13p7:p13_7;
public var l8p11:p8_11;
public var l8p13:p8_13;
public var pauseScreen:Advance;
public var l12p2:p12_2;
public var l12p6:p12_2;
public var l12p8:p12_2;
public var l12p9:p12_9;
public var l12p3:p12_1;
public var l18p10:p18_10;
public var l12p1:p12_1;
public var l18p12:p18_12;
public var l18p14:p18_14;
public var l18p15:p18_15;
public var l18p16:p18_16;
public var l18p17:p18_17;
public var l18p18:p18_18;
public var l18p19:p18_19;
public var l12p4:p12_2;
public var l9p10:p9_1;
public var sponsorLink:MovieClip;
public var l18p11:p18_11;
public var l12p7:p12_1;
public var l18p20:p18_20;
public var l12p5:p12_1;
public var l18p13:p18_13;
public var l11p3:p11_1;
public var l11p4:p11_2;
public var l11p6:p11_5;
public var l11p7:p11_5;
public var l11p8:p11_5;
public var l11p9:p11_9;
public var l11p5:p11_5;
public var l11p2:p11_2;
public var l2cp1:p2c_1;
public var l2cp2:p2c_2;
public var l2cp3:p2c_2;
public var l2cp4:p2c_1;
public var l2cp5:p2c_1;
public var l2cp6:p2c_2;
public var l11p1:p11_1;
public var l2cp7:p2c_2;
public var l2cp8:p2c_1;
public var l16p9:p16_9;
public var l10p1:p10_1;
public var l10p2:p10_2;
public var l10p4:p10_4;
public var l10p6:p10_6;
public var l10p9:p10_9;
public var l10p3:p10_3;
public var l10p5:p10_5;
public var mainmenu:MainMenu;
public var l10p7:p10_7;
public var l10p8:p10_8;
public var l2bp1:p2b_1;
public var l2bp2:p2b_1;
public var l2bp3:p2b_1;
var kongAPI:KongregateAPI;
public var l10p10:p10_10;
public var l10p11:p10_11;
var out:Boolean;
var cursor:Cursor;
public var l11p10:p11_9;
public var l11p11:p11_9;
public var l11p12:p11_9;
public var secureSWF:MovieClip;
public var l11p13:p11_13;
var gamePaused:Boolean;// = false
public var myLink:MovieClip;
public var l9p1:p9_1;
public var l9p2:p7_11;
public var l9p3:p9_3;
public var l9p4:p9_3;
public var l9p5:p9_3;
public var l9p6:p9_1;
public var l9p7:p9_3;
public var l9p9:p9_8;
public var l9p8:p7_11;
public var l12p10:p12_10;
public var l12p11:p12_11;
public var l12p12:p12_12;
public var sponsorLogo:MovieClip;
public var l12p14:p12_10;
public var l12p15:p12_11;
public var l12p16:p12_12;
public var l12p17:p12_9;
public var l12p19:p12_11;
public var l12p13:p12_9;
public var l12p18:p12_10;
public static var EffectsChannel:SoundChannel = new SoundChannel();
public static var levelBeaten:Array = new Array();
public static var level:int = -1;
public static var FillSounds:Array;
public static var currentLevel:int = 0;
public static var levelBest:Array = new Array();
public static var LevelCompleteSound:levelCompleteSFX = new levelCompleteSFX();
public static var saveFile = SharedObject.getLocal("Onefifth-H94gU-FloodFill");
public static var startOverFlag:Boolean = false;
public static var firstTime:Boolean = true;
public static var levelAchieved:Array = new Array();
public static var mute:Boolean = true;
public static var minColoursUsed:Boolean = false;
public static var ready:Boolean = false;
public static var currentColour:int = 0;
public static var alt15Solution:Boolean = false;
public static var BGM:Sound;
public static var globalCheck:Boolean = false;
public static var gameBeaten:Boolean = false;
public static var colourTransforms:Array = new Array(4);
public static var clickedMBtn:Object = null;
public static var epicwin:Boolean = false;
public static var peices:Array = new Array();
public static var BGChannel:SoundChannel = new SoundChannel();
public static var fillEffects:Boolean = true;
public function FloodFill():void{
kongAPI = new KongregateAPI();
cheater = false;
gamePaused = false;
nextLevel = false;
checkFlag = true;
coloursUsed = new Array(4);
cursor = new Cursor();
puzzleLayout = new Array();
super();
addFrameScript(0, frame1, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24);
Mouse.hide();
stage.addChild(cursor);
cursor.mouseEnabled = false;
cursor.fill.mouseEnabled = false;
cursorColour();
advance.visible = false;
pauseScreen.visible = false;
stage.addEventListener(MouseEvent.MOUSE_DOWN, pointerDown, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, pointerUp, false, 0, true);
FillSounds = [new fill1(), new fill2(), new fill3(), new fill4()];
BGM = new BGMusic();
setArrays();
if (saveFile.data.mute == undefined){
firstTime = true;
saveProgress();
} else {
firstTime = false;
levelBeaten = saveFile.data.levelBeaten;
levelAchieved = saveFile.data.levelAchieved;
gameBeaten = saveFile.data.gameBeaten;
minColoursUsed = saveFile.data.minColoursUsed;
alt15Solution = saveFile.data.alt15Solution;
mute = saveFile.data.mute;
if (mute == false){
mute = true;
} else {
mute = false;
};
};
addChild(kongAPI);
checkAchievements();
muteBtn.mute();
mainmenu.checkContinue();
pauseScreen.addEventListener(MouseEvent.CLICK, unpause, false, 0, true);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_MOVE, hideMouse, false, 0, true);
back.addEventListener(MouseEvent.CLICK, mainMenu, false, 0, true);
backlevels.addEventListener(MouseEvent.CLICK, levelsMenu, false, 0, true);
backSponsor.addEventListener(MouseEvent.CLICK, sponsorWeb, false, 0, true);
backSponsor.addEventListener(MouseEvent.ROLL_OVER, hoverHand, false, 0, true);
backSponsor.addEventListener(MouseEvent.ROLL_OUT, unhoverHand, false, 0, true);
addEventListener(Event.ENTER_FRAME, eachFrame, false, 0, true);
}
function advanceFadeOut(_arg1=null):void{
advance.alpha = (advance.alpha - 0.1);
if (advance.alpha <= 0){
advance.alpha = 0;
advance.visible = false;
advance.removeEventListener(Event.ENTER_FRAME, advanceFadeOut);
};
}
function frame16(){
l11p1.connect(l11p2);
l11p1.connect(l11p4);
l11p1.connect(l11p5);
l11p1.connect(l11p6);
l11p1.connect(l11p8);
l11p2.connect(l11p6);
l11p3.connect(l11p4);
l11p3.connect(l11p6);
l11p3.connect(l11p7);
l11p3.connect(l11p8);
l11p4.connect(l11p8);
l11p5.connect(l11p6);
l11p5.connect(l11p8);
l11p5.connect(l11p9);
l11p5.connect(l11p12);
l11p6.connect(l11p7);
l11p6.connect(l11p9);
l11p6.connect(l11p10);
l11p7.connect(l11p8);
l11p7.connect(l11p10);
l11p7.connect(l11p11);
l11p8.connect(l11p11);
l11p8.connect(l11p12);
l11p9.connect(l11p10);
l11p9.connect(l11p12);
l11p9.connect(l11p13);
l11p10.connect(l11p11);
l11p10.connect(l11p13);
l11p11.connect(l11p12);
l11p11.connect(l11p13);
l11p12.connect(l11p13);
}
function secureWeb(_arg1=null):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.kindisoft.com/");
navigateToURL(_local2);
}
function frame14(){
l9p1.connect(l9p2);
l9p1.connect(l9p3);
l9p1.connect(l9p4);
l9p1.connect(l9p6);
l9p1.connect(l9p7);
l9p2.connect(l9p3);
l9p2.connect(l9p7);
l9p3.connect(l9p4);
l9p3.connect(l9p7);
l9p3.connect(l9p8);
l9p3.connect(l9p9);
l9p4.connect(l9p5);
l9p4.connect(l9p8);
l9p5.connect(l9p8);
l9p5.connect(l9p9);
l9p5.connect(l9p10);
l9p6.connect(l9p7);
l9p6.connect(l9p9);
l9p6.connect(l9p10);
l9p7.connect(l9p9);
l9p8.connect(l9p9);
l9p9.connect(l9p10);
}
function levelFrame(_arg1:int):void{
if (currentLevel != _arg1){
currentLevel = _arg1;
};
if (currentLevel != 1){
if ((((levelBeaten[(currentLevel - 2)] == false)) && ((gameBeaten == false)))){
cheater = true;
};
};
if (globalCheck == true){
checkPeices();
};
if (cheater == true){
punishment();
};
if (nextLevel == true){
advanceLevel(currentLevel);
};
if (epicwin == true){
endGame();
};
}
function frame17(){
l12p1.connect(l12p2);
l12p1.connect(l12p8);
l12p2.connect(l12p3);
l12p2.connect(l12p7);
l12p2.connect(l12p10);
l12p2.connect(l12p11);
l12p2.connect(l12p12);
l12p3.connect(l12p4);
l12p3.connect(l12p13);
l12p4.connect(l12p5);
l12p4.connect(l12p14);
l12p4.connect(l12p15);
l12p4.connect(l12p16);
l12p5.connect(l12p6);
l12p5.connect(l12p17);
l12p6.connect(l12p7);
l12p6.connect(l12p18);
l12p6.connect(l12p19);
l12p6.connect(l12p20);
l12p7.connect(l12p8);
l12p7.connect(l12p21);
l12p8.connect(l12p22);
l12p8.connect(l12p23);
l12p8.connect(l12p24);
l12p9.connect(l12p10);
l12p9.connect(l12p24);
l12p10.connect(l12p11);
l12p10.connect(l12p24);
l12p11.connect(l12p12);
l12p11.connect(l12p15);
l12p11.connect(l12p23);
l12p11.connect(l12p25);
l12p12.connect(l12p13);
l12p12.connect(l12p14);
l12p13.connect(l12p14);
l12p14.connect(l12p15);
l12p15.connect(l12p16);
l12p15.connect(l12p19);
l12p15.connect(l12p25);
l12p16.connect(l12p17);
l12p16.connect(l12p18);
l12p17.connect(l12p18);
l12p18.connect(l12p19);
l12p19.connect(l12p20);
l12p19.connect(l12p23);
l12p19.connect(l12p25);
l12p20.connect(l12p21);
l12p20.connect(l12p22);
l12p21.connect(l12p22);
l12p22.connect(l12p23);
l12p23.connect(l12p24);
l12p23.connect(l12p25);
l12p25.connect(l12p26);
}
function frame18(){
l13p1.connect(l13p2);
l13p1.connect(l13p3);
l13p1.connect(l13p4);
l13p1.connect(l13p5);
l13p1.connect(l13p6);
l13p1.connect(l13p7);
l13p1.connect(l13p8);
l13p1.connect(l13p9);
l13p1.connect(l13p10);
l13p1.connect(l13p11);
l13p2.connect(l13p3);
l13p2.connect(l13p4);
l13p3.connect(l13p4);
l13p5.connect(l13p6);
l13p5.connect(l13p7);
l13p6.connect(l13p8);
l13p6.connect(l13p9);
l13p7.connect(l13p8);
l13p7.connect(l13p10);
l13p8.connect(l13p9);
l13p8.connect(l13p10);
l13p8.connect(l13p11);
l13p10.connect(l13p11);
}
function checkAchievements():void{
if (alt15Solution == true){
kongAPI.stats.submit("TrueFanboy(SolutionForLevel15MatchesLogo)", 1);
};
if (gameBeaten == true){
kongAPI.stats.submit("AllLevelsCompleted", 1);
};
if (minColoursUsed == true){
kongAPI.stats.submit("MinColoursUsedOnEachLevel", 1);
};
}
function startOver():void{
setArrays();
gameBeaten = false;
alt15Solution = false;
saveProgress();
firstTime = true;
}
function setArrays():void{
var _local1:int;
levelBeaten = new Array((totalFrames - 4));
levelAchieved = new Array((totalFrames - 4));
minColoursUsed = false;
_local1 = 0;
while (_local1 < levelBeaten.length) {
levelBeaten[_local1] = false;
_local1++;
};
levelBest = [2, 2, 2, 2, 3, 3, 4, 3, 3, 3, 4, 4, 4, 3, 4, 3, 4, 3, 3, 3];
}
function frame7(){
l2cp1.connect(l2cp2);
l2cp1.connect(l2cp4);
l2cp1.connect(l2cp5);
l2cp2.connect(l2cp3);
l2cp2.connect(l2cp6);
l2cp3.connect(l2cp4);
l2cp3.connect(l2cp7);
l2cp4.connect(l2cp8);
l2cp5.connect(l2cp6);
l2cp5.connect(l2cp8);
l2cp6.connect(l2cp7);
l2cp7.connect(l2cp8);
}
function frame1(){
stop();
sponsorLogo.addEventListener(MouseEvent.CLICK, sponsorWeb, false, 0, true);
}
function frame9(){
l4p1.connect(l4p2);
l4p1.connect(l4p5);
l4p1.connect(l4p6);
l4p2.connect(l4p3);
l4p2.connect(l4p5);
l4p3.connect(l4p4);
l4p3.connect(l4p5);
l4p4.connect(l4p5);
l4p4.connect(l4p7);
l4p4.connect(l4p8);
l4p5.connect(l4p6);
l4p5.connect(l4p7);
l4p6.connect(l4p7);
l4p7.connect(l4p8);
}
function frame19(){
l14p1.connect(l14p2);
l14p1.connect(l14p5);
l14p1.connect(l14p6);
l14p2.connect(l14p3);
l14p2.connect(l14p4);
l14p2.connect(l14p7);
l14p2.connect(l14p9);
l14p3.connect(l14p4);
l14p3.connect(l14p10);
l14p3.connect(l14p11);
l14p4.connect(l14p11);
l14p5.connect(l14p6);
l14p6.connect(l14p7);
l14p6.connect(l14p8);
l14p6.connect(l14p12);
l14p7.connect(l14p8);
l14p8.connect(l14p9);
l14p8.connect(l14p10);
l14p8.connect(l14p12);
l14p8.connect(l14p13);
l14p9.connect(l14p10);
l14p10.connect(l14p11);
l14p10.connect(l14p13);
l14p11.connect(l14p12);
l14p11.connect(l14p14);
l14p12.connect(l14p14);
l14p13.connect(l14p14);
}
function frame4(){
l1p1.connect(l1p2);
}
function frame5(){
l2p1.connect(l2p2);
l2p1.connect(l2p3);
l2p4.connect(l2p2);
l2p4.connect(l2p3);
}
function frame6(){
l2bp2.connect(l2bp1);
l2bp2.connect(l2bp3);
}
function frame13(){
l8p1.connect(l8p2);
l8p1.connect(l8p6);
l8p1.connect(l8p8);
l8p1.connect(l8p9);
l8p2.connect(l8p6);
l8p2.connect(l8p3);
l8p3.connect(l8p4);
l8p3.connect(l8p7);
l8p4.connect(l8p5);
l8p4.connect(l8p7);
l8p4.connect(l8p16);
l8p6.connect(l8p7);
l8p6.connect(l8p9);
l8p7.connect(l8p10);
l8p8.connect(l8p9);
l8p8.connect(l8p12);
l8p8.connect(l8p13);
l8p9.connect(l8p10);
l8p9.connect(l8p11);
l8p9.connect(l8p13);
l8p10.connect(l8p11);
l8p11.connect(l8p15);
l8p11.connect(l8p16);
l8p12.connect(l8p13);
l8p12.connect(l8p14);
l8p13.connect(l8p14);
l8p13.connect(l8p15);
l8p14.connect(l8p16);
l8p15.connect(l8p16);
}
function frame15(){
l10p1.connect(l10p4);
l10p1.connect(l10p5);
l10p1.connect(l10p7);
l10p2.connect(l10p5);
l10p2.connect(l10p6);
l10p2.connect(l10p8);
l10p3.connect(l10p7);
l10p4.connect(l10p7);
l10p5.connect(l10p7);
l10p5.connect(l10p8);
l10p6.connect(l10p7);
l10p6.connect(l10p8);
l10p7.connect(l10p8);
l10p7.connect(l10p9);
l10p7.connect(l10p10);
l10p7.connect(l10p11);
l10p8.connect(l10p10);
l10p8.connect(l10p11);
l10p9.connect(l10p10);
l10p9.connect(l10p11);
l10p10.connect(l10p11);
}
function frame22(){
l17p1.connect(l17p2);
l17p2.connect(l17p3);
l17p2.connect(l17p5);
l17p2.connect(l17p8);
l17p2.connect(l17p11);
l17p3.connect(l17p4);
l17p3.connect(l17p12);
l17p3.connect(l17p13);
l17p4.connect(l17p13);
l17p5.connect(l17p6);
l17p5.connect(l17p7);
l17p5.connect(l17p8);
l17p6.connect(l17p7);
l17p6.connect(l17p15);
l17p7.connect(l17p8);
l17p7.connect(l17p15);
l17p8.connect(l17p9);
l17p8.connect(l17p15);
l17p9.connect(l17p10);
l17p9.connect(l17p11);
l17p9.connect(l17p15);
l17p10.connect(l17p11);
l17p10.connect(l17p16);
l17p10.connect(l17p18);
l17p11.connect(l17p12);
l17p12.connect(l17p13);
l17p13.connect(l17p18);
l17p13.connect(l17p19);
l17p13.connect(l17p22);
l17p14.connect(l17p15);
l17p15.connect(l17p16);
l17p15.connect(l17p17);
l17p16.connect(l17p17);
l17p16.connect(l17p18);
l17p17.connect(l17p19);
l17p17.connect(l17p20);
l17p18.connect(l17p19);
l17p19.connect(l17p20);
l17p19.connect(l17p21);
l17p19.connect(l17p22);
l17p20.connect(l17p21);
}
function frame23(){
l18p1.connect(l18p2);
l18p1.connect(l18p3);
l18p1.connect(l18p7);
l18p1.connect(l18p9);
l18p2.connect(l18p3);
l18p2.connect(l18p5);
l18p3.connect(l18p4);
l18p3.connect(l18p11);
l18p3.connect(l18p12);
l18p4.connect(l18p5);
l18p4.connect(l18p12);
l18p5.connect(l18p6);
l18p5.connect(l18p14);
l18p6.connect(l18p15);
l18p7.connect(l18p8);
l18p7.connect(l18p9);
l18p7.connect(l18p16);
l18p8.connect(l18p9);
l18p8.connect(l18p10);
l18p8.connect(l18p16);
l18p9.connect(l18p10);
l18p9.connect(l18p11);
l18p9.connect(l18p13);
l18p10.connect(l18p17);
l18p10.connect(l18p18);
l18p11.connect(l18p12);
l18p11.connect(l18p13);
l18p12.connect(l18p13);
l18p12.connect(l18p14);
l18p13.connect(l18p14);
l18p13.connect(l18p15);
l18p13.connect(l18p18);
l18p13.connect(l18p19);
l18p14.connect(l18p15);
l18p15.connect(l18p20);
l18p16.connect(l18p17);
l18p17.connect(l18p18);
l18p18.connect(l18p19);
l18p19.connect(l18p20);
}
function frame12(){
l7p1.connect(l7p2);
l7p1.connect(l7p7);
l7p1.connect(l7p8);
l7p2.connect(l7p8);
l7p2.connect(l7p8);
l7p2.connect(l7p9);
l7p2.connect(l7p3);
l7p3.connect(l7p4);
l7p3.connect(l7p6);
l7p3.connect(l7p9);
l7p3.connect(l7p13);
l7p3.connect(l7p14);
l7p4.connect(l7p5);
l7p4.connect(l7p6);
l7p5.connect(l7p6);
l7p7.connect(l7p10);
l7p7.connect(l7p8);
l7p8.connect(l7p11);
l7p8.connect(l7p9);
l7p9.connect(l7p11);
l7p9.connect(l7p12);
l7p9.connect(l7p13);
l7p10.connect(l7p11);
l7p10.connect(l7p14);
l7p11.connect(l7p12);
l7p11.connect(l7p14);
l7p12.connect(l7p13);
l7p12.connect(l7p14);
l7p13.connect(l7p14);
}
function frame24(){
FloodFill.epicwin = true;
sponsorLink.buttonMode = true;
sponsorLink.addEventListener(MouseEvent.CLICK, sponsorWeb, false, 0, true);
myLink.buttonMode = true;
myLink.addEventListener(MouseEvent.CLICK, paradoxWeb, false, 0, true);
secureSWF.buttonMode = true;
secureSWF.addEventListener(MouseEvent.CLICK, secureWeb, false, 0, true);
}
function pointerDown(_arg1=null):void{
cursor.height = 10;
cursor.width = 10;
}
function hideMouse(_arg1=null):void{
Mouse.hide();
}
function frame11(){
l6p1.connect(l6p2);
l6p1.connect(l6p3);
l6p1.connect(l6p4);
l6p1.connect(l6p7);
l6p2.connect(l6p3);
l6p2.connect(l6p5);
l6p3.connect(l6p6);
l6p4.connect(l6p5);
l6p4.connect(l6p10);
l6p5.connect(l6p6);
l6p5.connect(l6p8);
l6p6.connect(l6p7);
l6p6.connect(l6p9);
l6p7.connect(l6p10);
l6p8.connect(l6p9);
l6p8.connect(l6p10);
l6p9.connect(l6p10);
}
function frame8(){
l3p4.connect(l3p1);
l3p4.connect(l3p2);
l3p4.connect(l3p3);
l3p4.connect(l3p6);
l3p1.connect(l3p2);
l3p3.connect(l3p2);
l3p3.connect(l3p5);
l3p3.connect(l3p6);
l3p5.connect(l3p6);
}
function frame20(){
l15p1.connect(l15p2);
l15p1.connect(l15p4);
l15p2.connect(l15p3);
l15p2.connect(l15p4);
l15p2.connect(l15p5);
l15p2.connect(l15p6);
l15p2.connect(l15p7);
l15p2.connect(l15p8);
l15p2.connect(l15p9);
l15p2.connect(l15p11);
l15p2.connect(l15p12);
l15p3.connect(l15p9);
l15p4.connect(l15p5);
l15p4.connect(l15p10);
l15p6.connect(l15p7);
l15p6.connect(l15p8);
l15p6.connect(l15p12);
l15p7.connect(l15p8);
l15p8.connect(l15p9);
l15p9.connect(l15p12);
l15p9.connect(l15p14);
l15p9.connect(l15p15);
l15p10.connect(l15p11);
l15p10.connect(l15p12);
l15p10.connect(l15p13);
l15p10.connect(l15p14);
l15p10.connect(l15p16);
l15p10.connect(l15p18);
l15p10.connect(l15p19);
l15p11.connect(l15p12);
l15p11.connect(l15p13);
l15p11.connect(l15p17);
l15p12.connect(l15p13);
l15p12.connect(l15p14);
l15p13.connect(l15p17);
l15p14.connect(l15p15);
l15p14.connect(l15p19);
l15p15.connect(l15p19);
l15p16.connect(l15p17);
l15p16.connect(l15p18);
l15p17.connect(l15p18);
}
function advanceLevel(_arg1:int):void{
advance.visible = true;
if ((((levelAchieved[(currentLevel - 1)] == null)) || ((numColoursUsed < levelAchieved[(currentLevel - 1)])))){
levelAchieved[(currentLevel - 1)] = numColoursUsed;
};
if (levelAchieved[(currentLevel - 1)] <= levelBest[(currentLevel - 1)]){
playArea.getGold();
};
levelBeaten[(currentLevel - 1)] = true;
playArea.getSilver();
if ((((levelAchieved.toString() == levelBest.toString())) && ((minColoursUsed == false)))){
minColoursUsed = true;
kongAPI.stats.submit("MinColoursUsedOnEachLevel", 1);
};
advance.addEventListener(Event.ENTER_FRAME, advanceFadeIn);
saveProgress();
nextLevel = false;
}
function menuHandler():void{
gamePaused = false;
back.visible = false;
backlevels.visible = false;
backSponsor.visible = false;
if (mainmenu != null){
switch (clickedMBtn){
case mainmenu.playBtn:
startGame();
break;
case mainmenu.settingsBtn:
gotoAndStop(2);
break;
case mainmenu.levelsBtn:
gotoAndStop(3);
break;
};
clickedMBtn = null;
};
}
function cursorColour():void{
cursor.fill.transform.colorTransform = colourTransforms[currentColour];
}
function keyUpHandler(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == 65)) || ((_arg1.keyCode == 49)))){
currentColour = 0;
};
if ((((_arg1.keyCode == 83)) || ((_arg1.keyCode == 50)))){
currentColour = 1;
};
if ((((_arg1.keyCode == 68)) || ((_arg1.keyCode == 51)))){
currentColour = 2;
};
if ((((_arg1.keyCode == 70)) || ((_arg1.keyCode == 52)))){
currentColour = 3;
};
if (_arg1.keyCode == 80){
gamePaused = true;
};
if (_arg1.keyCode == 77){
muteBtn.mute();
};
}
function frame10(){
l5p1.connect(l5p2);
l5p1.connect(l5p3);
l5p1.connect(l5p4);
l5p1.connect(l5p5);
l5p1.connect(l5p6);
l5p2.connect(l5p4);
l5p2.connect(l5p8);
l5p2.connect(l5p9);
l5p3.connect(l5p4);
l5p3.connect(l5p5);
l5p4.connect(l5p5);
l5p4.connect(l5p8);
l5p5.connect(l5p6);
l5p5.connect(l5p7);
l5p5.connect(l5p8);
l5p6.connect(l5p7);
l5p6.connect(l5p8);
l5p6.connect(l5p9);
l5p7.connect(l5p8);
l5p8.connect(l5p9);
}
function unhoverHand(_arg1=null):void{
backSponsor.gotoAndStop(1);
}
function settingsHandler():void{
}
function pointerUp(_arg1=null):void{
cursor.height = 12;
cursor.width = 12;
}
function sponsorWeb(_arg1=null):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gimme5games.com/?ref=floodfill");
navigateToURL(_local2);
}
function logoFlash(_arg1:Event):void{
if (out == true){
_arg1.target.alpha = (_arg1.target.alpha - 0.1);
_arg1.target.scaleX = (_arg1.target.scaleX * 1.01);
_arg1.target.scaleY = (_arg1.target.scaleY * 1.01);
if (_arg1.target.alpha <= 0){
_arg1.target.removeEventListener(Event.ENTER_FRAME, logoFlash);
removeChild((_arg1.target as DisplayObject));
};
} else {
_arg1.target.alpha = (_arg1.target.alpha + 0.15);
if (advance.alpha >= 0.94){
advance.alpha = 2;
};
if (_arg1.target.alpha >= 2.5){
out = true;
_arg1.target.alpha = 1;
advance.alpha = 1;
};
};
}
function checkPeices():void{
var _local1:int;
var _local2:OnefifthLogo;
if (peices.length > 0){
_local1 = 0;
while (_local1 < peices.length) {
if (peices[_local1].flag == false){
checkFlag = false;
break;
};
_local1++;
};
if (currentLevel == 15){
_local1 = 0;
while (_local1 < peices.length) {
if ((peices[_local1].colour is int)){
puzzleLayout[_local1] = peices[_local1].colour;
};
_local1++;
};
if (puzzleLayout.toString() == "-1,3,0,2,1,0,2,3,1,0,-1"){
if (alt15Solution == false){
kongAPI.stats.submit("TrueFanboy(SolutionForLevel15MatchesLogo)", 1);
};
alt15Solution = true;
_local2 = new OnefifthLogo();
_local2.x = 253.3;
_local2.y = 306;
addChild(_local2);
_local2.alpha = 0;
out = false;
checkFlag = true;
_local2.addEventListener(Event.ENTER_FRAME, logoFlash, false, 0, true);
};
};
} else {
checkFlag = false;
};
if (checkFlag == true){
_local1 = 0;
while (_local1 < peices.length) {
coloursUsed[peices[_local1].colour] = (coloursUsed[peices[_local1].colour] + 1);
_local1++;
};
coloursUsed = [0, 0, 0, 0];
_local1 = 0;
while (_local1 < peices.length) {
coloursUsed[peices[_local1].colour] = (coloursUsed[peices[_local1].colour] + 1);
_local1++;
};
numColoursUsed = 4;
_local1 = 0;
while (_local1 < 4) {
if (coloursUsed[_local1] == 0){
numColoursUsed = (numColoursUsed - 1);
};
_local1++;
};
nextLevel = true;
if (mute == false){
EffectsChannel = LevelCompleteSound.play();
};
};
checkFlag = true;
globalCheck = false;
}
function pausedHandler(_arg1:int):void{
pauseScreen.visible = true;
}
function frame21(){
l16p1.connect(l16p2);
l16p1.connect(l16p7);
l16p1.connect(l16p8);
l16p1.connect(l16p11);
l16p2.connect(l16p3);
l16p2.connect(l16p10);
l16p3.connect(l16p4);
l16p3.connect(l16p5);
l16p3.connect(l16p9);
l16p3.connect(l16p10);
l16p3.connect(l16p12);
l16p3.connect(l16p19);
l16p4.connect(l16p5);
l16p4.connect(l16p6);
l16p4.connect(l16p14);
l16p5.connect(l16p6);
l16p5.connect(l16p13);
l16p6.connect(l16p13);
l16p7.connect(l16p9);
l16p7.connect(l16p15);
l16p8.connect(l16p9);
l16p8.connect(l16p11);
l16p9.connect(l16p12);
l16p9.connect(l16p15);
l16p9.connect(l16p17);
l16p9.connect(l16p19);
l16p10.connect(l16p11);
l16p10.connect(l16p12);
l16p11.connect(l16p12);
l16p13.connect(l16p19);
l16p13.connect(l16p20);
l16p13.connect(l16p14);
l16p14.connect(l16p20);
l16p14.connect(l16p22);
l16p14.connect(l16p24);
l16p15.connect(l16p16);
l16p15.connect(l16p19);
l16p15.connect(l16p23);
l16p16.connect(l16p17);
l16p16.connect(l16p18);
l16p17.connect(l16p18);
l16p18.connect(l16p19);
l16p19.connect(l16p20);
l16p19.connect(l16p23);
l16p20.connect(l16p21);
l16p20.connect(l16p23);
l16p21.connect(l16p22);
l16p23.connect(l16p24);
}
function paradoxWeb(_arg1=null):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.paradoxide.com/");
navigateToURL(_local2);
}
function mainMenu(_arg1=null){
gotoAndStop(1);
}
function saveProgress():void{
saveFile.data.levelBeaten = levelBeaten;
saveFile.data.levelAchieved = levelAchieved;
saveFile.data.gameBeaten = gameBeaten;
saveFile.data.mute = mute;
saveFile.data.minColoursUsed = minColoursUsed;
saveFile.data.alt15Solution = alt15Solution;
saveFile.flush();
}
function levelsHandler():void{
gamePaused = false;
backlevels.visible = false;
}
function unpause(_arg1=null){
gamePaused = false;
pauseScreen.visible = false;
}
function endGame():void{
var _local1:int;
backSponsor.visible = false;
if (cheater == false){
if (gameBeaten == false){
kongAPI.stats.submit("AllLevelsCompleted", 1);
gameBeaten = true;
};
_local1 = 0;
while (_local1 < levelBeaten.length) {
levelBeaten[_local1] = false;
_local1++;
};
};
epicwin = false;
saveProgress();
}
function levelsMenu(_arg1=null){
gotoAndStop(3);
}
function startGame(_arg1=null){
var _local2:int;
var _local3:int;
var _local4:Tutorial;
_local2 = 0;
_local3 = 0;
while (_local3 < levelBeaten.length) {
if (levelBeaten[_local3] == true){
_local2 = (_local2 + 1);
};
_local3++;
};
peices = [];
gotoAndStop((4 + _local2));
if (firstTime == true){
_local4 = new Tutorial();
addChild(_local4);
firstTime = false;
};
}
function hoverHand(_arg1=null):void{
backSponsor.play();
}
function punishment():void{
var _local1:OWNED;
_local1 = new OWNED();
_local1.x = (stage.width / 2);
_local1.y = (stage.height / 2);
stage.addChild(_local1);
kongAPI.stats.submit("ITriedToRightClickAndSkipFrames", 1);
startOver();
gotoAndStop(1);
cheater = false;
}
public function gotoLevel(_arg1:int):void{
peices = [];
gotoAndStop((4 + _arg1));
}
function advanceFadeIn(_arg1=null):void{
advance.alpha = (advance.alpha + 0.15);
if (advance.alpha >= 1){
advance.alpha = 1;
peices = [];
gotoAndStop((currentLevel + 4));
advance.removeEventListener(Event.ENTER_FRAME, advanceFadeIn);
advance.addEventListener(Event.ENTER_FRAME, advanceFadeOut);
};
}
function eachFrame(_arg1:Event):void{
cursor.x = mouseX;
cursor.y = mouseY;
cursorColour();
if (((!((back == null))) && ((back.visible == false)))){
back.visible = true;
};
if (((!((backlevels == null))) && ((backlevels.visible == false)))){
backlevels.visible = true;
};
if (((!((backSponsor == null))) && ((backSponsor.visible == false)))){
backSponsor.visible = true;
};
if (startOverFlag == true){
startOver();
startOverFlag = false;
};
if (level != -1){
gotoLevel(level);
level = -1;
};
switch (_arg1.target.currentFrame){
case 1:
menuHandler();
break;
case 2:
settingsHandler();
break;
case 3:
levelsHandler();
break;
default:
if (gamePaused == false){
levelFrame((_arg1.target.currentFrame - 3));
} else {
pausedHandler((_arg1.target.currentFrame - 3));
};
break;
};
}
colourTransforms[0] = new ColorTransform(0, 0, 0, 1, 5, 203, 252);
colourTransforms[1] = new ColorTransform(0, 0, 0, 1, 152, 205, 5);
colourTransforms[2] = new ColorTransform(0, 0, 0, 1, 0xFF, 153, 51);
colourTransforms[3] = new ColorTransform(0, 0, 0, 1, 247, 5, 138);
colourTransforms[4] = new ColorTransform();
}
}//package
Section 33
//level01 (level01)
package {
import flash.display.*;
public dynamic class level01 extends Sprite {
}
}//package
Section 34
//level02 (level02)
package {
import flash.display.*;
public dynamic class level02 extends Sprite {
}
}//package
Section 35
//level02b (level02b)
package {
import flash.display.*;
public dynamic class level02b extends Sprite {
}
}//package
Section 36
//level02c (level02c)
package {
import flash.display.*;
public dynamic class level02c extends Sprite {
}
}//package
Section 37
//level03 (level03)
package {
import flash.display.*;
public dynamic class level03 extends Sprite {
}
}//package
Section 38
//level04 (level04)
package {
import flash.display.*;
public dynamic class level04 extends Sprite {
}
}//package
Section 39
//level05 (level05)
package {
import flash.display.*;
public dynamic class level05 extends Sprite {
}
}//package
Section 40
//level06 (level06)
package {
import flash.display.*;
public dynamic class level06 extends Sprite {
}
}//package
Section 41
//level07 (level07)
package {
import flash.display.*;
public dynamic class level07 extends Sprite {
}
}//package
Section 42
//level08 (level08)
package {
import flash.display.*;
public dynamic class level08 extends Sprite {
}
}//package
Section 43
//level09 (level09)
package {
import flash.display.*;
public dynamic class level09 extends Sprite {
}
}//package
Section 44
//level10 (level10)
package {
import flash.display.*;
public dynamic class level10 extends Sprite {
}
}//package
Section 45
//level11 (level11)
package {
import flash.display.*;
public dynamic class level11 extends Sprite {
}
}//package
Section 46
//level12 (level12)
package {
import flash.display.*;
public dynamic class level12 extends Sprite {
}
}//package
Section 47
//level13 (level13)
package {
import flash.display.*;
public dynamic class level13 extends Sprite {
}
}//package
Section 48
//level14 (level14)
package {
import flash.display.*;
public dynamic class level14 extends Sprite {
}
}//package
Section 49
//level15 (level15)
package {
import flash.display.*;
public dynamic class level15 extends Sprite {
}
}//package
Section 50
//level16 (level16)
package {
import flash.display.*;
public dynamic class level16 extends Sprite {
}
}//package
Section 51
//level17 (level17)
package {
import flash.display.*;
public dynamic class level17 extends Sprite {
}
}//package
Section 52
//level18 (level18)
package {
import flash.display.*;
public dynamic class level18 extends Sprite {
}
}//package
Section 53
//levelCompleteSFX (levelCompleteSFX)
package {
import flash.media.*;
public dynamic class levelCompleteSFX extends Sound {
}
}//package
Section 54
//LevelSelector (LevelSelector)
package {
import flash.events.*;
import flash.display.*;
public class LevelSelector extends MovieClip {
var children:Array;
var float_x:int;// = 0
public var gameBeaten:MovieClip;
var mouse_x:Number;// = 0
var mfocus:Boolean;// = false
var scrollSpeed:Number;// = 0
var levelThumbnails:Array;
public var goldGold:MovieClip;
public var supahHidden:MovieClip;
public function LevelSelector():void{
levelThumbnails = new Array(FloodFill.levelBeaten.length);
children = new Array(FloodFill.levelBeaten.length);
scrollSpeed = 0;
float_x = 0;
mfocus = false;
mouse_x = 0;
super();
levelThumbnails = [new level01(), new level02(), new level02b(), new level02c(), new level03(), new level04(), new level05(), new level06(), new level07(), new level08(), new level09(), new level10(), new level11(), new level12(), new level13(), new level14(), new level15(), new level16(), new level17(), new level18()];
getChildren();
gameBeaten.visible = false;
goldGold.visible = false;
supahHidden.visible = false;
if (FloodFill.gameBeaten == true){
gameBeaten.visible = true;
};
if (FloodFill.minColoursUsed == true){
goldGold.visible = true;
};
if (FloodFill.alt15Solution == true){
supahHidden.visible = true;
};
addEventListener(MouseEvent.ROLL_OVER, focused);
addEventListener(MouseEvent.ROLL_OUT, unfocused);
addEventListener(Event.ENTER_FRAME, eachFrame);
}
function eachFrame(_arg1=null):void{
if (mfocus == true){
mouse_x = (Math.round((mouseX / 440)) * 110);
mouse_x = (mouse_x + (Math.round((mouseX / 220)) * 110));
};
calcSpeed();
children.forEach(calcPosition);
}
function addLevel(_arg1:Object, _arg2:int, _arg3:Array):void{
_arg3[_arg2] = new LevelThumb();
_arg3[_arg2].x = (200 * _arg2);
_arg3[_arg2].level = _arg2;
_arg3[_arg2].thumb = levelThumbnails[_arg2];
if (FloodFill.gameBeaten == false){
_arg3[_arg2].beaten = FloodFill.levelBeaten[_arg2];
_arg3[_arg2].active = FloodFill.levelBeaten[(_arg2 - 1)];
if (_arg3[_arg2].active == true){
float_x = (-200 * _arg2);
};
if (_arg2 == 0){
_arg3[_arg2].active = true;
};
} else {
_arg3[_arg2].active = true;
_arg3[_arg2].beaten = true;
};
if (FloodFill.levelAchieved[_arg2] == FloodFill.levelBest[_arg2]){
_arg3[_arg2].goldStar = true;
};
_arg3[_arg2].update();
}
function getChildren():void{
children.forEach(addLevel);
}
function focused(_arg1=null):void{
mfocus = true;
}
function calcPosition(_arg1:LevelThumb, _arg2:int, _arg3:Array):void{
float_x = (Math.round((float_x / children.length)) * children.length);
_arg1.x = (_arg1.x - (((_arg1.x - float_x) - (200 * _arg1.level)) / 4));
if ((((_arg1.x >= -380)) && ((_arg1.x <= 380)))){
if (_arg1.parent != this){
addChild(_arg1);
};
} else {
if (_arg1.parent == this){
removeChild(_arg1);
};
};
}
function addObject(_arg1:Object){
children.push(_arg1);
}
function unfocused(_arg1=null):void{
mfocus = false;
mouse_x = 0;
}
function calcSpeed():void{
float_x = (float_x - (mouse_x / 4));
if (float_x <= (-200 * (children.length - 1))){
float_x = (-200 * (children.length - 1));
};
if (float_x >= 0){
float_x = 0;
};
}
}
}//package
Section 55
//LevelThumb (LevelThumb)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class LevelThumb extends MovieClip {
public var active:Boolean;// = false
public var silver:MovieClip;
public var star:MovieClip;
var scale:Number;// = 1
var level:int;// = 0
public var LevelNum:TextField;
public var greyedOut:MovieClip;
public var goldStar:Boolean;// = false
public var thumb:DisplayObject;
public var beaten:Boolean;// = false
public function LevelThumb():void{
level = 0;
beaten = false;
active = false;
goldStar = false;
scale = 1;
super();
star.visible = false;
silver.visible = false;
greyedOut.visible = true;
addEventListener(Event.ENTER_FRAME, eachFrame);
addEventListener(MouseEvent.CLICK, clickHandler);
addEventListener(MouseEvent.ROLL_OVER, focused);
addEventListener(MouseEvent.ROLL_OUT, unfocused);
}
function eachFrame(_arg1=null):void{
if (scale != scaleX){
scaleX = (scaleX - ((scaleX - scale) / 4));
};
if (scale != scaleY){
scaleY = (scaleY - ((scaleY - scale) / 4));
};
}
function clickHandler(_arg1:MouseEvent):void{
if (active == true){
FloodFill.level = level;
};
}
function focused(_arg1=null){
scale = 1.2;
}
function unfocused(_arg1=null){
scale = 1;
}
public function update(){
if (goldStar == true){
star.visible = true;
};
if (active == true){
greyedOut.visible = false;
if (thumb != null){
thumb.x = -49;
thumb.y = -49;
addChildAt(thumb, 1);
};
};
if (beaten == true){
silver.visible = true;
};
LevelNum.text = String((level + 1));
}
}
}//package
Section 56
//Logo (Logo)
package {
import flash.events.*;
import flash.display.*;
public class Logo extends MovieClip {
var sheen_x:int;// = -100
public var chip2:MovieClip;
public var sheen:MovieClip;
public var chip3:MovieClip;
public var chip4:MovieClip;
var delay:int;// = 0
public var chip1:MovieClip;
var chips:Array;
public function Logo(){
var _local1:int;
chips = new Array(4);
sheen_x = -100;
delay = 0;
super();
addEventListener(Event.ENTER_FRAME, eachFrame);
addEventListener(MouseEvent.ROLL_OVER, SHING);
addEventListener(MouseEvent.ROLL_OUT, UNSHING);
chips = [chip1, chip2, chip3, chip4];
chip1.transform.colorTransform = FloodFill.colourTransforms[0];
chip2.transform.colorTransform = FloodFill.colourTransforms[1];
chip3.transform.colorTransform = FloodFill.colourTransforms[2];
chip4.transform.colorTransform = FloodFill.colourTransforms[3];
_local1 = 0;
while (_local1 < chips.length) {
chips[_local1].addEventListener(MouseEvent.CLICK, clickHandler);
_local1++;
};
}
function eachFrame(_arg1=null){
var _local2:int;
var _local3:int;
sheen.x = (sheen.x - ((sheen.x - sheen_x) / 6));
if (delay < 20){
delay = (delay + 1);
};
if ((((delay > 15)) && ((sheen_x == 320)))){
_local2 = 0;
while (_local2 < chips.length) {
_local3 = 0;
while (_local3 < (FloodFill.colourTransforms.length + 1)) {
if (FloodFill.colourTransforms[_local3].greenOffset == chips[_local2].transform.colorTransform.greenOffset){
if (_local3 == 0){
chips[_local2].transform.colorTransform = FloodFill.colourTransforms[3];
} else {
chips[_local2].transform.colorTransform = FloodFill.colourTransforms[(_local3 - 1)];
};
break;
};
_local3++;
};
_local2++;
};
delay = 0;
};
}
function UNSHING(_arg1=null){
sheen_x = -100;
}
function SHING(_arg1=null){
sheen_x = 320;
}
function clickHandler(_arg1:MouseEvent){
var _local2:int;
_local2 = 0;
while (_local2 < FloodFill.colourTransforms.length) {
if (String(FloodFill.colourTransforms[_local2]) == String(_arg1.target.transform.colorTransform)){
FloodFill.currentColour = _local2;
break;
};
_local2++;
};
}
}
}//package
Section 57
//MainMenu (MainMenu)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class MainMenu extends MovieClip {
public var settingsBtn:MovieClip;
public var levelsBtn:MovieClip;
public var playBtn:MovieClip;
var current:Object;
var slider_y:int;// = 0
public var websiteBtn:MovieClip;
public var slider:MovieClip;
public function MainMenu():void{
slider_y = 0;
super();
addEventListener(MouseEvent.CLICK, clickHandler, false, 0, true);
addEventListener(Event.ENTER_FRAME, eachFrame, false, 0, true);
playBtn.addEventListener(MouseEvent.ROLL_OVER, moveSelector, false, 0, true);
settingsBtn.addEventListener(MouseEvent.ROLL_OVER, moveSelector, false, 0, true);
levelsBtn.addEventListener(MouseEvent.ROLL_OVER, moveSelector, false, 0, true);
websiteBtn.addEventListener(MouseEvent.ROLL_OVER, moveSelector, false, 0, true);
checkContinue();
}
function eachFrame(_arg1=null):void{
slider.y = (slider.y - (((slider.y - slider_y) / 3) - 0.15));
}
function clickHandler(_arg1:MouseEvent):void{
var _local2:URLRequest;
if (current == websiteBtn){
_local2 = new URLRequest("http://www.gimme5games.com/?ref=floodfill");
navigateToURL(_local2);
} else {
FloodFill.clickedMBtn = current;
};
}
public function checkContinue():void{
if (FloodFill.levelBeaten[0] == true){
playBtn.gotoAndStop(2);
} else {
playBtn.gotoAndStop(1);
};
}
function moveSelector(_arg1:MouseEvent):void{
slider_y = (_arg1.target.y - 140);
current = _arg1.target;
}
}
}//package
Section 58
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 59
//movSplash (movSplash)
package {
import flash.display.*;
public dynamic class movSplash extends MovieClip {
public var hand:MovieClip;
}
}//package
Section 60
//MuteBtn (MuteBtn)
package {
import flash.events.*;
import flash.display.*;
public class MuteBtn extends MovieClip {
public var mutetab:MovieClip;
var mutetab_y:int;// = 0
var _a:Number;// = 0.2
public function MuteBtn():void{
mutetab_y = 0;
_a = 0.2;
super();
addEventListener(MouseEvent.ROLL_OUT, lostFocus, false, 0, true);
addEventListener(MouseEvent.ROLL_OVER, gainFocus, false, 0, true);
addEventListener(MouseEvent.CLICK, mute, false, 0, true);
addEventListener(Event.ENTER_FRAME, eachFrame, false, 0, true);
}
function eachFrame(_arg1=null):void{
if (mutetab.y != mutetab_y){
mutetab.y = (mutetab.y - ((mutetab.y - mutetab_y) / 3));
};
if (alpha != _a){
alpha = (alpha - ((alpha - _a) / 4));
};
}
function lostFocus(_arg1=null):void{
mutetab_y = 0;
_a = 0.2;
}
public function mute(_arg1=null):void{
if (FloodFill.mute == true){
gotoAndStop(1);
mutetab.gotoAndStop(1);
SoundHandler.BGM = new BGMusic();
FloodFill.BGChannel = SoundHandler.BGM.play(0, int.MAX_VALUE);
FloodFill.mute = false;
} else {
gotoAndStop(2);
mutetab.gotoAndStop(2);
FloodFill.BGChannel.stop();
FloodFill.mute = true;
};
}
function gainFocus(_arg1=null):void{
mutetab_y = 8.2;
_a = 1;
}
}
}//package
Section 61
//OnefifthLogo (OnefifthLogo)
package {
import flash.display.*;
public dynamic class OnefifthLogo extends Sprite {
}
}//package
Section 62
//OWNED (OWNED)
package {
import flash.display.*;
public dynamic class OWNED extends Sprite {
}
}//package
Section 63
//p1_1 (p1_1)
package {
public dynamic class p1_1 extends Peice {
}
}//package
Section 64
//p10_1 (p10_1)
package {
public dynamic class p10_1 extends Peice {
}
}//package
Section 65
//p10_10 (p10_10)
package {
public dynamic class p10_10 extends Peice {
}
}//package
Section 66
//p10_11 (p10_11)
package {
public dynamic class p10_11 extends Peice {
}
}//package
Section 67
//p10_2 (p10_2)
package {
public dynamic class p10_2 extends Peice {
}
}//package
Section 68
//p10_3 (p10_3)
package {
public dynamic class p10_3 extends Peice {
}
}//package
Section 69
//p10_4 (p10_4)
package {
public dynamic class p10_4 extends Peice {
}
}//package
Section 70
//p10_5 (p10_5)
package {
public dynamic class p10_5 extends Peice {
}
}//package
Section 71
//p10_6 (p10_6)
package {
public dynamic class p10_6 extends Peice {
}
}//package
Section 72
//p10_7 (p10_7)
package {
public dynamic class p10_7 extends Peice {
}
}//package
Section 73
//p10_8 (p10_8)
package {
public dynamic class p10_8 extends Peice {
}
}//package
Section 74
//p10_9 (p10_9)
package {
public dynamic class p10_9 extends Peice {
}
}//package
Section 75
//p11_1 (p11_1)
package {
public dynamic class p11_1 extends Peice {
}
}//package
Section 76
//p11_12 (p11_12)
package {
public dynamic class p11_12 extends Peice {
}
}//package
Section 77
//p11_13 (p11_13)
package {
public dynamic class p11_13 extends Peice {
}
}//package
Section 78
//p11_2 (p11_2)
package {
public dynamic class p11_2 extends Peice {
}
}//package
Section 79
//p11_5 (p11_5)
package {
public dynamic class p11_5 extends Peice {
}
}//package
Section 80
//p11_9 (p11_9)
package {
public dynamic class p11_9 extends Peice {
}
}//package
Section 81
//p12_1 (p12_1)
package {
public dynamic class p12_1 extends Peice {
}
}//package
Section 82
//p12_10 (p12_10)
package {
public dynamic class p12_10 extends Peice {
}
}//package
Section 83
//p12_11 (p12_11)
package {
public dynamic class p12_11 extends Peice {
}
}//package
Section 84
//p12_12 (p12_12)
package {
public dynamic class p12_12 extends Peice {
}
}//package
Section 85
//p12_2 (p12_2)
package {
public dynamic class p12_2 extends Peice {
}
}//package
Section 86
//p12_25 (p12_25)
package {
public dynamic class p12_25 extends Peice {
}
}//package
Section 87
//p12_26 (p12_26)
package {
public dynamic class p12_26 extends Peice {
}
}//package
Section 88
//p12_9 (p12_9)
package {
public dynamic class p12_9 extends Peice {
}
}//package
Section 89
//p13_1 (p13_1)
package {
public dynamic class p13_1 extends Peice {
}
}//package
Section 90
//p13_10 (p13_10)
package {
public dynamic class p13_10 extends Peice {
}
}//package
Section 91
//p13_11 (p13_11)
package {
public dynamic class p13_11 extends Peice {
}
}//package
Section 92
//p13_2 (p13_2)
package {
public dynamic class p13_2 extends Peice {
}
}//package
Section 93
//p13_3 (p13_3)
package {
public dynamic class p13_3 extends Peice {
}
}//package
Section 94
//p13_4 (p13_4)
package {
public dynamic class p13_4 extends Peice {
}
}//package
Section 95
//p13_5 (p13_5)
package {
public dynamic class p13_5 extends Peice {
}
}//package
Section 96
//p13_6 (p13_6)
package {
public dynamic class p13_6 extends Peice {
}
}//package
Section 97
//p13_7 (p13_7)
package {
public dynamic class p13_7 extends Peice {
}
}//package
Section 98
//p13_8 (p13_8)
package {
public dynamic class p13_8 extends Peice {
}
}//package
Section 99
//p13_9 (p13_9)
package {
public dynamic class p13_9 extends Peice {
}
}//package
Section 100
//p14_1 (p14_1)
package {
public dynamic class p14_1 extends Peice {
}
}//package
Section 101
//p14_10 (p14_10)
package {
public dynamic class p14_10 extends Peice {
}
}//package
Section 102
//p14_11 (p14_11)
package {
public dynamic class p14_11 extends Peice {
}
}//package
Section 103
//p14_12 (p14_12)
package {
public dynamic class p14_12 extends Peice {
}
}//package
Section 104
//p14_13 (p14_13)
package {
public dynamic class p14_13 extends Peice {
}
}//package
Section 105
//p14_14 (p14_14)
package {
public dynamic class p14_14 extends Peice {
}
}//package
Section 106
//p14_2 (p14_2)
package {
public dynamic class p14_2 extends Peice {
}
}//package
Section 107
//p14_3 (p14_3)
package {
public dynamic class p14_3 extends Peice {
}
}//package
Section 108
//p14_4 (p14_4)
package {
public dynamic class p14_4 extends Peice {
}
}//package
Section 109
//p14_5 (p14_5)
package {
public dynamic class p14_5 extends Peice {
}
}//package
Section 110
//p14_6 (p14_6)
package {
public dynamic class p14_6 extends Peice {
}
}//package
Section 111
//p14_7 (p14_7)
package {
public dynamic class p14_7 extends Peice {
}
}//package
Section 112
//p14_8 (p14_8)
package {
public dynamic class p14_8 extends Peice {
}
}//package
Section 113
//p14_9 (p14_9)
package {
public dynamic class p14_9 extends Peice {
}
}//package
Section 114
//p15_1 (p15_1)
package {
public dynamic class p15_1 extends Peice {
}
}//package
Section 115
//p15_10 (p15_10)
package {
public dynamic class p15_10 extends Peice {
}
}//package
Section 116
//p15_11 (p15_11)
package {
public dynamic class p15_11 extends Peice {
}
}//package
Section 117
//p15_13 (p15_13)
package {
public dynamic class p15_13 extends Peice {
}
}//package
Section 118
//p15_14 (p15_14)
package {
public dynamic class p15_14 extends Peice {
}
}//package
Section 119
//p15_15 (p15_15)
package {
public dynamic class p15_15 extends Peice {
}
}//package
Section 120
//p15_16 (p15_16)
package {
public dynamic class p15_16 extends Peice {
}
}//package
Section 121
//p15_17 (p15_17)
package {
public dynamic class p15_17 extends Peice {
}
}//package
Section 122
//p15_18 (p15_18)
package {
public dynamic class p15_18 extends Peice {
}
}//package
Section 123
//p15_19 (p15_19)
package {
public dynamic class p15_19 extends Peice {
}
}//package
Section 124
//p15_2 (p15_2)
package {
public dynamic class p15_2 extends Peice {
}
}//package
Section 125
//p15_3 (p15_3)
package {
public dynamic class p15_3 extends Peice {
}
}//package
Section 126
//p15_4 (p15_4)
package {
public dynamic class p15_4 extends Peice {
}
}//package
Section 127
//p15_5 (p15_5)
package {
public dynamic class p15_5 extends Peice {
}
}//package
Section 128
//p15_6 (p15_6)
package {
public dynamic class p15_6 extends Peice {
}
}//package
Section 129
//p15_7 (p15_7)
package {
public dynamic class p15_7 extends Peice {
}
}//package
Section 130
//p15_8 (p15_8)
package {
public dynamic class p15_8 extends Peice {
}
}//package
Section 131
//p15_9 (p15_9)
package {
public dynamic class p15_9 extends Peice {
}
}//package
Section 132
//p16_1 (p16_1)
package {
public dynamic class p16_1 extends Peice {
}
}//package
Section 133
//p16_10 (p16_10)
package {
public dynamic class p16_10 extends Peice {
}
}//package
Section 134
//p16_11 (p16_11)
package {
public dynamic class p16_11 extends Peice {
}
}//package
Section 135
//p16_13 (p16_13)
package {
public dynamic class p16_13 extends Peice {
}
}//package
Section 136
//p16_14 (p16_14)
package {
public dynamic class p16_14 extends Peice {
}
}//package
Section 137
//p16_15 (p16_15)
package {
public dynamic class p16_15 extends Peice {
}
}//package
Section 138
//p16_16 (p16_16)
package {
public dynamic class p16_16 extends Peice {
}
}//package
Section 139
//p16_17 (p16_17)
package {
public dynamic class p16_17 extends Peice {
}
}//package
Section 140
//p16_18 (p16_18)
package {
public dynamic class p16_18 extends Peice {
}
}//package
Section 141
//p16_19 (p16_19)
package {
public dynamic class p16_19 extends Peice {
}
}//package
Section 142
//p16_2 (p16_2)
package {
public dynamic class p16_2 extends Peice {
}
}//package
Section 143
//p16_20 (p16_20)
package {
public dynamic class p16_20 extends Peice {
}
}//package
Section 144
//p16_21 (p16_21)
package {
public dynamic class p16_21 extends Peice {
}
}//package
Section 145
//p16_22 (p16_22)
package {
public dynamic class p16_22 extends Peice {
}
}//package
Section 146
//p16_23 (p16_23)
package {
public dynamic class p16_23 extends Peice {
}
}//package
Section 147
//p16_24 (p16_24)
package {
public dynamic class p16_24 extends Peice {
}
}//package
Section 148
//p16_3 (p16_3)
package {
public dynamic class p16_3 extends Peice {
}
}//package
Section 149
//p16_4 (p16_4)
package {
public dynamic class p16_4 extends Peice {
}
}//package
Section 150
//p16_5 (p16_5)
package {
public dynamic class p16_5 extends Peice {
}
}//package
Section 151
//p16_6 (p16_6)
package {
public dynamic class p16_6 extends Peice {
}
}//package
Section 152
//p16_7 (p16_7)
package {
public dynamic class p16_7 extends Peice {
}
}//package
Section 153
//p16_8 (p16_8)
package {
public dynamic class p16_8 extends Peice {
}
}//package
Section 154
//p16_9 (p16_9)
package {
public dynamic class p16_9 extends Peice {
}
}//package
Section 155
//p17_1 (p17_1)
package {
public dynamic class p17_1 extends Peice {
}
}//package
Section 156
//p17_10 (p17_10)
package {
public dynamic class p17_10 extends Peice {
}
}//package
Section 157
//p17_11 (p17_11)
package {
public dynamic class p17_11 extends Peice {
}
}//package
Section 158
//p17_12 (p17_12)
package {
public dynamic class p17_12 extends Peice {
}
}//package
Section 159
//p17_13 (p17_13)
package {
public dynamic class p17_13 extends Peice {
}
}//package
Section 160
//p17_14 (p17_14)
package {
public dynamic class p17_14 extends Peice {
}
}//package
Section 161
//p17_15 (p17_15)
package {
public dynamic class p17_15 extends Peice {
}
}//package
Section 162
//p17_16 (p17_16)
package {
public dynamic class p17_16 extends Peice {
}
}//package
Section 163
//p17_17 (p17_17)
package {
public dynamic class p17_17 extends Peice {
}
}//package
Section 164
//p17_18 (p17_18)
package {
public dynamic class p17_18 extends Peice {
}
}//package
Section 165
//p17_19 (p17_19)
package {
public dynamic class p17_19 extends Peice {
}
}//package
Section 166
//p17_2 (p17_2)
package {
public dynamic class p17_2 extends Peice {
}
}//package
Section 167
//p17_20 (p17_20)
package {
public dynamic class p17_20 extends Peice {
}
}//package
Section 168
//p17_21 (p17_21)
package {
public dynamic class p17_21 extends Peice {
}
}//package
Section 169
//p17_22 (p17_22)
package {
public dynamic class p17_22 extends Peice {
}
}//package
Section 170
//p17_3 (p17_3)
package {
public dynamic class p17_3 extends Peice {
}
}//package
Section 171
//p17_4 (p17_4)
package {
public dynamic class p17_4 extends Peice {
}
}//package
Section 172
//p17_5 (p17_5)
package {
public dynamic class p17_5 extends Peice {
}
}//package
Section 173
//p17_6 (p17_6)
package {
public dynamic class p17_6 extends Peice {
}
}//package
Section 174
//p17_7 (p17_7)
package {
public dynamic class p17_7 extends Peice {
}
}//package
Section 175
//p17_8 (p17_8)
package {
public dynamic class p17_8 extends Peice {
}
}//package
Section 176
//p17_9 (p17_9)
package {
public dynamic class p17_9 extends Peice {
}
}//package
Section 177
//p18_1 (p18_1)
package {
public dynamic class p18_1 extends Peice {
}
}//package
Section 178
//p18_10 (p18_10)
package {
public dynamic class p18_10 extends Peice {
}
}//package
Section 179
//p18_11 (p18_11)
package {
public dynamic class p18_11 extends Peice {
}
}//package
Section 180
//p18_12 (p18_12)
package {
public dynamic class p18_12 extends Peice {
}
}//package
Section 181
//p18_13 (p18_13)
package {
public dynamic class p18_13 extends Peice {
}
}//package
Section 182
//p18_14 (p18_14)
package {
public dynamic class p18_14 extends Peice {
}
}//package
Section 183
//p18_15 (p18_15)
package {
public dynamic class p18_15 extends Peice {
}
}//package
Section 184
//p18_16 (p18_16)
package {
public dynamic class p18_16 extends Peice {
}
}//package
Section 185
//p18_17 (p18_17)
package {
public dynamic class p18_17 extends Peice {
}
}//package
Section 186
//p18_18 (p18_18)
package {
public dynamic class p18_18 extends Peice {
}
}//package
Section 187
//p18_19 (p18_19)
package {
public dynamic class p18_19 extends Peice {
}
}//package
Section 188
//p18_2 (p18_2)
package {
public dynamic class p18_2 extends Peice {
}
}//package
Section 189
//p18_20 (p18_20)
package {
public dynamic class p18_20 extends Peice {
}
}//package
Section 190
//p18_3 (p18_3)
package {
public dynamic class p18_3 extends Peice {
}
}//package
Section 191
//p18_4 (p18_4)
package {
public dynamic class p18_4 extends Peice {
}
}//package
Section 192
//p18_5 (p18_5)
package {
public dynamic class p18_5 extends Peice {
}
}//package
Section 193
//p18_6 (p18_6)
package {
public dynamic class p18_6 extends Peice {
}
}//package
Section 194
//p18_7 (p18_7)
package {
public dynamic class p18_7 extends Peice {
}
}//package
Section 195
//p18_8 (p18_8)
package {
public dynamic class p18_8 extends Peice {
}
}//package
Section 196
//p18_9 (p18_9)
package {
public dynamic class p18_9 extends Peice {
}
}//package
Section 197
//p2_1 (p2_1)
package {
public dynamic class p2_1 extends Peice {
}
}//package
Section 198
//p2b_1 (p2b_1)
package {
public dynamic class p2b_1 extends Peice {
}
}//package
Section 199
//p2c_1 (p2c_1)
package {
public dynamic class p2c_1 extends Peice {
}
}//package
Section 200
//p2c_2 (p2c_2)
package {
public dynamic class p2c_2 extends Peice {
}
}//package
Section 201
//p3_1 (p3_1)
package {
public dynamic class p3_1 extends Peice {
}
}//package
Section 202
//p4_1 (p4_1)
package {
public dynamic class p4_1 extends Peice {
}
}//package
Section 203
//p4_2 (p4_2)
package {
public dynamic class p4_2 extends Peice {
}
}//package
Section 204
//p4_4 (p4_4)
package {
public dynamic class p4_4 extends Peice {
}
}//package
Section 205
//p4_5 (p4_5)
package {
public dynamic class p4_5 extends Peice {
}
}//package
Section 206
//p4_6 (p4_6)
package {
public dynamic class p4_6 extends Peice {
}
}//package
Section 207
//p4_7 (p4_7)
package {
public dynamic class p4_7 extends Peice {
}
}//package
Section 208
//p4_8 (p4_8)
package {
public dynamic class p4_8 extends Peice {
}
}//package
Section 209
//p5_1 (p5_1)
package {
public dynamic class p5_1 extends Peice {
}
}//package
Section 210
//p5_3 (p5_3)
package {
public dynamic class p5_3 extends Peice {
}
}//package
Section 211
//p5_5 (p5_5)
package {
public dynamic class p5_5 extends Peice {
}
}//package
Section 212
//p5_8 (p5_8)
package {
public dynamic class p5_8 extends Peice {
}
}//package
Section 213
//p6_1 (p6_1)
package {
public dynamic class p6_1 extends Peice {
}
}//package
Section 214
//p6_2 (p6_2)
package {
public dynamic class p6_2 extends Peice {
}
}//package
Section 215
//p6_4 (p6_4)
package {
public dynamic class p6_4 extends Peice {
}
}//package
Section 216
//p6_5 (p6_5)
package {
public dynamic class p6_5 extends Peice {
}
}//package
Section 217
//p7_1 (p7_1)
package {
public dynamic class p7_1 extends Peice {
}
}//package
Section 218
//p7_10 (p7_10)
package {
public dynamic class p7_10 extends Peice {
}
}//package
Section 219
//p7_11 (p7_11)
package {
public dynamic class p7_11 extends Peice {
}
}//package
Section 220
//p7_13 (p7_13)
package {
public dynamic class p7_13 extends Peice {
}
}//package
Section 221
//p7_14 (p7_14)
package {
public dynamic class p7_14 extends Peice {
}
}//package
Section 222
//p7_2 (p7_2)
package {
public dynamic class p7_2 extends Peice {
}
}//package
Section 223
//p7_3 (p7_3)
package {
public dynamic class p7_3 extends Peice {
}
}//package
Section 224
//p7_4 (p7_4)
package {
public dynamic class p7_4 extends Peice {
}
}//package
Section 225
//p7_6 (p7_6)
package {
public dynamic class p7_6 extends Peice {
}
}//package
Section 226
//p7_7 (p7_7)
package {
public dynamic class p7_7 extends Peice {
}
}//package
Section 227
//p7_9 (p7_9)
package {
public dynamic class p7_9 extends Peice {
}
}//package
Section 228
//p8_1 (p8_1)
package {
public dynamic class p8_1 extends Peice {
}
}//package
Section 229
//p8_10 (p8_10)
package {
public dynamic class p8_10 extends Peice {
}
}//package
Section 230
//p8_11 (p8_11)
package {
public dynamic class p8_11 extends Peice {
}
}//package
Section 231
//p8_12 (p8_12)
package {
public dynamic class p8_12 extends Peice {
}
}//package
Section 232
//p8_13 (p8_13)
package {
public dynamic class p8_13 extends Peice {
}
}//package
Section 233
//p8_14 (p8_14)
package {
public dynamic class p8_14 extends Peice {
}
}//package
Section 234
//p8_15 (p8_15)
package {
public dynamic class p8_15 extends Peice {
}
}//package
Section 235
//p8_16 (p8_16)
package {
public dynamic class p8_16 extends Peice {
}
}//package
Section 236
//p8_2 (p8_2)
package {
public dynamic class p8_2 extends Peice {
}
}//package
Section 237
//p8_3 (p8_3)
package {
public dynamic class p8_3 extends Peice {
}
}//package
Section 238
//p8_4 (p8_4)
package {
public dynamic class p8_4 extends Peice {
}
}//package
Section 239
//p8_5 (p8_5)
package {
public dynamic class p8_5 extends Peice {
}
}//package
Section 240
//p8_6 (p8_6)
package {
public dynamic class p8_6 extends Peice {
}
}//package
Section 241
//p8_7 (p8_7)
package {
public dynamic class p8_7 extends Peice {
}
}//package
Section 242
//p8_8 (p8_8)
package {
public dynamic class p8_8 extends Peice {
}
}//package
Section 243
//p8_9 (p8_9)
package {
public dynamic class p8_9 extends Peice {
}
}//package
Section 244
//p9_1 (p9_1)
package {
public dynamic class p9_1 extends Peice {
}
}//package
Section 245
//p9_3 (p9_3)
package {
public dynamic class p9_3 extends Peice {
}
}//package
Section 246
//p9_8 (p9_8)
package {
public dynamic class p9_8 extends Peice {
}
}//package
Section 247
//Peice (Peice)
package {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class Peice extends Sprite {
public var touching:Array;
public var flag:Boolean;// = false
public var colour:int;// = -1
public function Peice():void{
touching = new Array();
flag = false;
colour = -1;
super();
this.transform.colorTransform = new ColorTransform(0, 0, 0, 1, 0, 0, 0, -100);
FloodFill.peices.push(this);
addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
}
public function t_check():void{
var _local1:Boolean;
var _local2:int;
_local1 = true;
if (colour != -1){
_local2 = 0;
while (_local2 < touching.length) {
if ((((touching[_local2].colour == colour)) || ((touching[_local2].colour == -1)))){
_local1 = false;
};
_local2++;
};
} else {
_local1 = false;
};
if (_local1 == true){
flag = true;
} else {
flag = false;
};
}
function changeColour(_arg1:Object):void{
var _local2:int;
_arg1.transform.colorTransform = FloodFill.colourTransforms[colour];
t_check();
if (colour != -1){
_local2 = 0;
while (_local2 < touching.length) {
touching[_local2].t_check();
_local2++;
};
};
FloodFill.globalCheck = true;
}
function onClick(_arg1:MouseEvent):void{
if (colour == FloodFill.currentColour){
colour = -1;
this.transform.colorTransform = new ColorTransform(0, 0, 0, 1, 0, 0, 0, -100);
} else {
colour = FloodFill.currentColour;
if (FloodFill.fillEffects == true){
changeColour(_arg1.currentTarget);
} else {
changeColour(_arg1.currentTarget);
};
};
if (FloodFill.mute == false){
FloodFill.EffectsChannel = FloodFill.FillSounds[Math.floor((Math.random() * 4))].play();
};
}
public function connect(_arg1:Peice){
touching.push(_arg1);
_arg1.touching.push(this);
t_check();
_arg1.t_check();
}
}
}//package
Section 248
//PlayingArea (PlayingArea)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class PlayingArea extends MovieClip {
var next:Boolean;// = false
public var silver:MovieClip;
var prev:Boolean;// = false
var transition:Boolean;// = false
var fader:advanceBox;
public var levelnum:TextField;
public var gold:MovieClip;
public var prevArrow:MovieClip;
var nscale:Number;// = 1
public var nextArrow:MovieClip;
var pscale:Number;// = 1
public function PlayingArea():void{
pscale = 1;
nscale = 1;
transition = false;
next = false;
prev = false;
fader = new advanceBox();
super();
prevArrow.visible = false;
nextArrow.visible = false;
gold.visible = false;
silver.visible = false;
fader.x = 69;
fader.y = 124;
fader.alpha = 0;
fader.visible = false;
stage.addChildAt(fader, 1);
addEventListener(Event.ENTER_FRAME, eachFrame, false, 0, true);
nextArrow.addEventListener(MouseEvent.CLICK, nextlevel, false, 0, true);
nextArrow.addEventListener(MouseEvent.ROLL_OVER, nextHover, false, 0, true);
nextArrow.addEventListener(MouseEvent.ROLL_OUT, nextUnhover, false, 0, true);
prevArrow.addEventListener(MouseEvent.CLICK, prevlevel, false, 0, true);
prevArrow.addEventListener(MouseEvent.ROLL_OVER, prevHover, false, 0, true);
prevArrow.addEventListener(MouseEvent.ROLL_OUT, prevUnhover, false, 0, true);
}
function nextHover(_arg1=null):void{
nextArrow.pointer.transform.colorTransform = FloodFill.colourTransforms[1];
nscale = 1.2;
}
function checkVisuals():void{
if (FloodFill.gameBeaten == false){
if (FloodFill.levelBeaten[(FloodFill.currentLevel - 1)] == true){
nextArrow.visible = true;
} else {
nextArrow.visible = false;
};
if (FloodFill.levelBeaten[(FloodFill.currentLevel - 1)] == true){
silver.visible = true;
} else {
silver.visible = false;
};
} else {
nextArrow.visible = true;
silver.visible = true;
};
if (FloodFill.currentLevel == 1){
prevArrow.visible = false;
} else {
prevArrow.visible = true;
};
if (FloodFill.levelAchieved[(FloodFill.currentLevel - 1)] == FloodFill.levelBest[(FloodFill.currentLevel - 1)]){
gold.visible = true;
} else {
gold.visible = false;
};
}
public function getSilver():void{
silver.scaleX = 0.8;
silver.scaleY = 0.8;
silver.visible = true;
silver.addEventListener(Event.ENTER_FRAME, PopIn, false, 0, true);
}
function eachFrame(_arg1=null):void{
if (currentFrame == 1){
checkVisuals();
};
if (levelnum != null){
levelnum.text = String(FloodFill.currentLevel);
};
if (pscale != prevArrow.scaleX){
prevArrow.scaleX = (prevArrow.scaleX - ((prevArrow.scaleX - pscale) / 3));
};
if (pscale != prevArrow.scaleY){
prevArrow.scaleY = (prevArrow.scaleY - ((prevArrow.scaleY - pscale) / 3));
};
if (nscale != nextArrow.scaleX){
nextArrow.scaleX = (nextArrow.scaleX - ((nextArrow.scaleX - nscale) / 3));
};
if (nscale != nextArrow.scaleY){
nextArrow.scaleY = (nextArrow.scaleY - ((nextArrow.scaleY - nscale) / 3));
};
if (next == true){
FloodFill.level = FloodFill.currentLevel;
next = false;
};
if (prev == true){
FloodFill.level = (FloodFill.currentLevel - 2);
prev = false;
};
}
function prevlevel(_arg1=null):void{
fader.visible = true;
if (transition == false){
fader.addEventListener(Event.ENTER_FRAME, FadePrev, false, 0, true);
if (FloodFill.mute == false){
FloodFill.EffectsChannel = FloodFill.LevelCompleteSound.play();
};
};
}
function PopIn(_arg1:Event):void{
_arg1.target.scaleX = (_arg1.target.scaleX - 0.06);
_arg1.target.scaleY = (_arg1.target.scaleY - 0.06);
if (_arg1.target.scaleX <= 0.43){
_arg1.target.scaleX = 0.43;
_arg1.target.scaleY = 0.43;
_arg1.target.removeEventListener(Event.ENTER_FRAME, PopIn);
};
}
function FadeOut(_arg1=null):void{
fader.alpha = (fader.alpha - 0.1);
if (fader.alpha <= 0){
fader.visible = false;
checkVisuals();
fader.removeEventListener(Event.ENTER_FRAME, FadeOut);
transition = false;
};
}
function nextlevel(_arg1=null):void{
fader.visible = true;
if (transition == false){
fader.addEventListener(Event.ENTER_FRAME, FadeNext, false, 0, true);
if (FloodFill.mute == false){
FloodFill.EffectsChannel = FloodFill.LevelCompleteSound.play();
};
};
}
function prevUnhover(_arg1=null):void{
prevArrow.pointer.transform.colorTransform = FloodFill.colourTransforms[4];
pscale = 1;
}
function FadeNext(_arg1=null):void{
transition = true;
fader.alpha = (fader.alpha + 0.15);
if (fader.alpha >= 1){
next = true;
fader.removeEventListener(Event.ENTER_FRAME, FadeNext);
fader.addEventListener(Event.ENTER_FRAME, FadeOut, false, 0, true);
};
}
function prevHover(_arg1=null):void{
prevArrow.pointer.transform.colorTransform = FloodFill.colourTransforms[1];
pscale = 1.2;
}
function nextUnhover(_arg1=null):void{
nextArrow.pointer.transform.colorTransform = FloodFill.colourTransforms[4];
nscale = 1;
}
public function getGold():void{
gold.scaleX = 0.8;
gold.scaleY = 0.8;
gold.visible = true;
gold.addEventListener(Event.ENTER_FRAME, PopIn, false, 0, true);
}
function FadePrev(_arg1=null):void{
transition = true;
fader.alpha = (fader.alpha + 0.15);
if (fader.alpha >= 1){
prev = true;
fader.removeEventListener(Event.ENTER_FRAME, FadePrev);
fader.addEventListener(Event.ENTER_FRAME, FadeOut, false, 0, true);
};
}
}
}//package
Section 249
//Preloader (Preloader)
package {
import flash.display.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.events.*;
public dynamic class Preloader extends MovieClip {
public var loadmc:MovieClip;
var sponsorSiteLink:ContextMenuItem;
public var sitelocked:MovieClip;
var loaded:int;
var URLofSWF:String;
var adDone:Boolean;// = false
public var percentdone:TextField;
public var onefifthLogo:MovieClip;
var MENU;
public var skip:MovieClip;
var mySiteLink:ContextMenuItem;
public var kilobytes:TextField;
public var soundsObject:MovieClip;
public var bgstripes:MovieClip;
public var sponsorLogo:MovieClip;
public var barmc:MovieClip;
public function Preloader(){
adDone = false;
URLofSWF = root.loaderInfo.loaderURL;
MENU = new ContextMenu();
mySiteLink = new ContextMenuItem("Paradoxide (Author)");
sponsorSiteLink = new ContextMenuItem("Gimmie5Games (Sponsor)");
super();
addFrameScript(0, frame1, 1, frame2, 3, frame4, 20, frame21, 21, frame22, 36, frame37, 37, frame38, 57, frame58);
stop();
MENU.hideBuiltInItems();
mySiteLink.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, paradoxWeb);
sponsorSiteLink.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, sponsorWeb);
MENU.customItems.push(mySiteLink);
MENU.customItems.push(sponsorSiteLink);
this.contextMenu = MENU;
loadmc.visible = false;
loadmc.addEventListener(MouseEvent.CLICK, sponsorWeb, false, 0, true);
loadmc.visible = true;
adDone = true;
addEventListener(Event.ENTER_FRAME, loading, false, 0, true);
}
public function sitelock(_arg1):Boolean{
var _local2:RegExp;
_local2 = /^www\./;
if ((((URLofSWF.split("://")[1].split("/")[0].replace(_local2, "") == _arg1)) || ((URLofSWF.split("://")[0] == "file")))){
return (true);
};
return (false);
}
public function animateOnefifth(_arg1=null):void{
if (onefifthLogo.currentFrame == onefifthLogo.totalFrames){
play();
};
}
public function skipIntro(_arg1=null):void{
gotoAndPlay(38);
}
private function loading(_arg1=null):void{
loaded = Math.round(((loaderInfo.bytesLoaded / loaderInfo.bytesTotal) * 100));
loadmc.barmc.gotoAndStop((Math.round((loaded / 12.5)) + 1));
if (loaderInfo.bytesLoaded < loaderInfo.bytesTotal){
loadmc.kilobytes.text = String((((Math.round((loaderInfo.bytesLoaded / 1000)) + "/") + Math.round((loaderInfo.bytesTotal / 1000))) + " kb"));
loadmc.percentdone.text = String((Math.round(((loaderInfo.bytesLoaded / loaderInfo.bytesTotal) * 100)) + "%"));
} else {
removeEventListener(Event.ENTER_FRAME, loading);
if (adDone){
play();
};
};
}
function frame1(){
stop();
}
function frame22(){
sponsorLogo.removeEventListener(Event.ENTER_FRAME, animateSponsor);
sponsorLogo.removeEventListener(MouseEvent.CLICK, sponsorWeb);
skip.addEventListener(MouseEvent.CLICK, skipIntro, false, 0, true);
sponsorLogo.gotoAndStop(126);
}
function frame4(){
MochiBot.track(this, "10c3a292");
MochiBot.track(this, "542c9114");
sitelocked.visible = false;
loadmc.barmc.gotoAndStop(10);
}
public function adSkip():void{
loadmc.visible = true;
if (loaderInfo.bytesLoaded >= loaderInfo.bytesTotal){
play();
} else {
adDone = true;
};
}
function frame21(){
stop();
sponsorLogo.play();
sponsorLogo.buttonMode = true;
sponsorLogo.addEventListener(Event.ENTER_FRAME, animateSponsor, false, 0, true);
sponsorLogo.linkObj.addEventListener(MouseEvent.CLICK, sponsorWeb, false, 0, true);
}
function frame37(){
stop();
onefifthLogo.play();
onefifthLogo.buttonMode = true;
onefifthLogo.addEventListener(Event.ENTER_FRAME, animateOnefifth, false, 0, true);
onefifthLogo.addEventListener(MouseEvent.CLICK, paradoxWeb, false, 0, true);
}
function frame38(){
skip.removeEventListener(MouseEvent.CLICK, skipIntro);
onefifthLogo.removeEventListener(Event.ENTER_FRAME, animateOnefifth);
onefifthLogo.removeEventListener(MouseEvent.CLICK, paradoxWeb);
}
public function paradoxWeb(_arg1=null):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.paradoxide.com/");
navigateToURL(_local2);
}
function frame2(){
gotoAndPlay(4);
}
function frame58(){
stop();
}
public function sponsorWeb(_arg1=null):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.gimme5games.com/?ref=floodfill");
navigateToURL(_local2);
}
public function animateSponsor(_arg1=null):void{
if (sponsorLogo.currentFrame == sponsorLogo.totalFrames){
sponsorLogo.linkObj.removeEventListener(Event.ENTER_FRAME, animateSponsor);
play();
};
}
}
}//package
Section 250
//sndSlap (sndSlap)
package {
import flash.media.*;
public dynamic class sndSlap extends Sound {
}
}//package
Section 251
//SoundHandler (SoundHandler)
package {
import flash.display.*;
import flash.media.*;
public class SoundHandler extends Sprite {
public var FillSounds:Array;
public static var BGM:Sound;
public function SoundHandler():void{
FillSounds = new Array(4);
super();
initSounds();
}
public function initSounds():void{
FillSounds = [new fill1(), new fill2(), new fill3(), new fill4()];
}
}
}//package
Section 252
//Tutorial (Tutorial)
package {
import flash.events.*;
import flash.display.*;
public dynamic class Tutorial extends MovieClip {
public var star:MovieClip;
public var done:MovieClip;
public var selector:MovieClip;
public function Tutorial(){
addFrameScript(0, frame1);
}
public function hover(_arg1=null):void{
done.gotoAndStop(2);
}
public function unhover(_arg1=null):void{
done.gotoAndStop(1);
}
function frame1(){
done.addEventListener(MouseEvent.CLICK, finishTut, false, 0, true);
done.addEventListener(MouseEvent.MOUSE_OVER, hover, false, 0, true);
done.addEventListener(MouseEvent.MOUSE_OUT, unhover, false, 0, true);
}
public function finishTut(_arg1=null):void{
this.addEventListener(Event.ENTER_FRAME, fadeOutTut, false, 0, true);
}
public function fadeOutTut(_arg1=null):void{
this.alpha = (this.alpha - 0.2);
if (this.alpha <= 0){
this.removeEventListener(Event.ENTER_FRAME, fadeOutTut);
this.visible = false;
parent.removeChild(this);
};
}
}
}//package