Section 1
//FWG_90 (DrawIT_Full_fla.FWG_90)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import FWG.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class FWG_90 extends MovieClip {
public var btnVh:BtnVh;
public var btnX:BtnX;
public var btnSubmit:BtnSubmit;
public var scoreTxt:TextField;
public var nameTxt:TextField;
public function FWG_90(){
addFrameScript(2, frame3);
}
function frame3(){
btnVh._release = function ():void{
Net.getURL(("http://www.freeworldgroup.com/score/index.asp?game=" + SubmitScore(parent).game_name));
};
}
}
}//package DrawIT_Full_fla
Section 2
//howTO_51 (DrawIT_Full_fla.howTO_51)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class howTO_51 extends MovieClip {
public var nextPage:SimpleButton;
public var prevPage:SimpleButton;
public var mainMenu1:SimpleButton;
public var mainMenu2:SimpleButton;
public function howTO_51(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package DrawIT_Full_fla
Section 3
//levelselect_67 (DrawIT_Full_fla.levelselect_67)
package DrawIT_Full_fla {
import flash.display.*;
import flash.text.*;
public dynamic class levelselect_67 extends MovieClip {
public var timeAllotted:TextField;
public var level0:MovieClip;
public var level1:MovieClip;
public var level2:MovieClip;
public var level4:MovieClip;
public var level5:MovieClip;
public var level6:MovieClip;
public var level7:MovieClip;
public var level9:MovieClip;
public var level3:MovieClip;
public var level8:MovieClip;
public var levelName:TextField;
public var levelTitle:TextField;
public var startLevel:SimpleButton;
public var percentNeed:TextField;
public var level13:MovieClip;
public var level14:MovieClip;
public var level12:MovieClip;
public var level11:MovieClip;
public var difficulty:TextField;
public var bestPercent:TextField;
public var level10:MovieClip;
public var bestTime:TextField;
}
}//package DrawIT_Full_fla
Section 4
//LOGO_22 (DrawIT_Full_fla.LOGO_22)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class LOGO_22 extends MovieClip {
public function LOGO_22(){
addFrameScript(0, frame1, 119, frame120);
}
public function onMouseUpHandler_st1k(_arg1:MouseEvent):void{
Net.getURL("http://www.freeworldgroup.com/");
}
function frame1(){
root.stop();
this.addEventListener(MouseEvent.MOUSE_UP, onMouseUpHandler_st1k);
}
function frame120(){
parent.play();
}
}
}//package DrawIT_Full_fla
Section 5
//Logo_7 (DrawIT_Full_fla.Logo_7)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class Logo_7 extends MovieClip {
public function Logo_7(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = true;
this.useHandCursor = true;
this.addEventListener(MouseEvent.CLICK, freeLink);
}
public function freeLink(_arg1:MouseEvent){
Net.getURL("http://www.freeworldgroup.com");
}
}
}//package DrawIT_Full_fla
Section 6
//MainTimeline (DrawIT_Full_fla.MainTimeline)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import FWG.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class MainTimeline extends MovieClip {
public const totalPxls:uint = 40000;
public var drawMe:BitmapData;
public var floodFillBtn:SimpleButton;
public var gameInit;
public var preLoad:MovieClip;
public var selectInit;
public var drawing;
public var playing:Boolean;
public var drawApi:Sprite;
public var myScore;
public var startGameBtn:SimpleButton;
public var levelInfo:Array;
public var ssj_Context:ContextMenuItem;
public var c;
public var cY;
public var backHome:SimpleButton;
public var intIntInt;
public var a;
public var i;
public var timeSet:Number;
public var optionsInt;
public var timeLeft:TextField;
public var b;
public var replayIng;
public var playBtn:SimpleButton;
public var drawMeMC:MovieClip;
public var levelWindow:MovieClip;
public var more_Context:ContextMenuItem;
public var mainMenu:SimpleButton;
public var soundInit;
public var brushBtn:SimpleButton;
public var time:Number;
public var calcTime;
public var youSure:SimpleButton;
public var undoBtn:SimpleButton;
public var index;
public var yes;
public var stopBtn:SimpleButton;
public var pass_fail_anime:MovieClip;
public var howToInt;
public var selTool;
public var sound:Object;
public var menuInit;
public var lock:locked;
public var addToYourSite:SimpleButton;
public var tempDrawHere:BitmapData;
public var output1:TextField;
public var output3:TextField;
public var drawHere:BitmapData;
public var grid:Grid;
public var levelDispTxt:TextField;
public var output2:TextField;
public var clearSave:SimpleButton;
public var levels:Array;
public var howToBtn:SimpleButton;
public var myData:SharedObject;
public var menuEndThing:MovieClip;
public var drawHereBmp:Bitmap;
public var levelSelect:SimpleButton;
public var optionBtn:SimpleButton;
public var selectedLevel;
public var cleared:MovieClip;
public var context:ContextMenu;
public var grid2:Grid;
public var pass_fail_int;
public var lineBtn:SimpleButton;
public var st1k_Context:ContextMenuItem;
public var howToPanel:MovieClip;
public var btnSs:BtnSs;
public var replayLevel:SimpleButton;
public var timeInt;
public var rect:Rectangle;
public var drawMeBmp:Bitmap;
public var musicOnOff:SimpleButton;
public var glow:GlowFilter;
public var drawHereMC:MovieClip;
public var moreGameBtn:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 178, frame179, 230, frame231, 282, frame283, 330, frame331, 382, frame383, 430, frame431, 482, frame483);
}
public function soundPausePlay(){
if (!sound.playing){
sound.channel = sound.sound.play(sound.position);
sound.playing = true;
} else {
sound.position = sound.channel.position;
sound.channel.stop();
sound.playing = false;
};
}
public function compareBmps(){
var _local1:uint;
var _local2:uint;
var _local3:*;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:uint;
var _local8:*;
var _local9:*;
var _local10:*;
var _local11:*;
var _local12:*;
var _local13:*;
var _local14:*;
_local3 = Math.round((((200 * cY) / totalPxls) * 100));
output1.text = (("Comparing :: %" + _local3) + " complete...");
_local1 = 0;
while (_local1 < 200) {
_local5 = drawMe.getPixel(_local1, cY);
_local6 = drawHere.getPixel(_local1, cY);
if (_local5 == _local6){
yes++;
} else {
drawHere.setPixel(_local1, cY, 4294901760);
};
_local1++;
};
output2.text = ((("Score: " + yes) + "/") + totalPxls);
_local4 = (Math.round(((yes / totalPxls) * 1000)) / 10);
if (String(_local4).length < 4){
if (_local4 < 10){
};
};
output3.text = (("That's %" + _local4) + "!");
myScore = _local4;
if (cY < 200){
cY++;
};
if (cY >= 200){
clearInterval(calcTime);
stage.addEventListener(MouseEvent.CLICK, highScoreLoad);
stage.removeEventListener(MouseEvent.CLICK, mouse);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, mouse);
stage.removeEventListener(MouseEvent.MOUSE_UP, mouse);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, mouse);
output3.appendText(" -- Click to continue!");
myData = SharedObject.getLocal("DrawItData");
if (_local4 < levelInfo[selectedLevel].per){
pass_fail_int = 1;
} else {
pass_fail_int = 2;
_local8 = 0;
_local9 = 0;
_local10 = 0;
_local7 = 0;
while (_local7 < myData.data.levelData.length) {
if (myData.data.levelData[_local7][0] == selectedLevel){
if (myData.data.levelData[_local7][1] < _local4){
myData.data.levelData[_local7][1] = _local4;
};
if (myData.data.levelData[_local7][2] < (timeSet - time)){
_local11 = (timeSet - time);
while (_local11 >= 60) {
_local9++;
_local11 = (_local11 - 60);
};
_local10 = _local11;
_local9 = ((_local9 <= 9)) ? ("0" + _local9) : _local9;
_local10 = ((_local10 <= 9)) ? ("0" + _local10) : _local10;
myData.data.levelData[_local7][2] = ((_local9 + ":") + _local10);
};
_local8 = 1;
break;
};
_local7++;
};
if (_local8 == 0){
_local11 = (timeSet - time);
while (_local11 >= 60) {
_local9++;
_local11 = (_local11 - 60);
};
_local10 = _local11;
_local9 = ((_local9 <= 9)) ? ("0" + _local9) : _local9;
_local10 = ((_local10 <= 9)) ? ("0" + _local10) : _local10;
myData.data.levelData.push([selectedLevel, _local4, ((_local9 + ":") + _local10)]);
};
_local12 = 1;
_local13 = 1;
_local14 = (selectedLevel + 1);
_local12 = Math.ceil((_local14 / 3));
while (_local14 > 3) {
_local14 = (_local14 - 3);
};
_local13 = ((_local14 == 0)) ? 3 : _local14;
if (_local8 == 0){
if (_local13 == 3){
if (myData.data.unlocked[6] == 0){
myData.data.unlocked[6] = 1;
} else {
if (myData.data.unlocked[9] == 0){
myData.data.unlocked[9] = 1;
};
};
} else {
if (myData.data.unlocked[(selectedLevel + 1)] == 0){
myData.data.unlocked[(selectedLevel + 1)] = 1;
};
};
if (myData.data.levelData.length == 12){
myData.data.unlocked[12] = 1;
};
};
myData.flush();
};
};
}
function frame283(){
gotoAndPlay("menu");
}
public function soundLoop(_arg1:Event){
sound.channel = sound.sound.play();
}
public function selMouse(_arg1:MouseEvent){
var _local2:*;
if ((_arg1.target is locked)){
} else {
if (_arg1.target.name.indexOf("level") != -1){
_local2 = Number(_arg1.target.name.substr(5));
if (_local2 < root.levels.length){
root.selectedLevel = _local2;
loadNewInfo(_local2);
};
};
};
if (_arg1.target == levelWindow.startLevel){
stage.removeEventListener(MouseEvent.CLICK, selMouse);
gotoAndPlay("Game Intro");
};
}
function frame4(){
stop();
}
function frame5(){
stage.frameRate = 40;
if (!soundInit){
soundInit = 1;
sound = new Object();
sound.mixer = new SoundMixer();
sound.sound = new theMusic();
sound.playing = true;
sound.channel = sound.sound.play();
sound.channel.addEventListener(Event.SOUND_COMPLETE, soundLoop);
};
}
function frame3(){
stop();
}
function frame1(){
stop();
stage.frameRate = 30;
context = new ContextMenu();
context.hideBuiltInItems();
context.builtInItems.quality = true;
more_Context = new ContextMenuItem("More Games");
st1k_Context = new ContextMenuItem("St1k.com");
ssj_Context = new ContextMenuItem("ssj's DevArt");
context.customItems.push(more_Context);
context.customItems.push(st1k_Context);
context.customItems.push(ssj_Context);
contextMenu = context;
more_Context.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler);
st1k_Context.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler);
ssj_Context.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuSelectHandler);
stop();
loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadBar);
intIntInt = setInterval(cacheCheck, 50);
}
function frame179(){
stop();
if (!menuInit){
menuInit = 1;
levels = [new Level0(), new Level1(), new Level2(), new Level3(), new Level4(), new Level5(), new Level6(), new Level7(), new Level8(), new Level9(), new Level10(), new Level11(), new Level12(), new Level13(), new Level14()];
levelInfo = [{name:"Simple Square", difficulty:"Very Easy", per:50, time:60, bestPer:0, bestTime:"00:00"}, {name:"Mirror Triangle", difficulty:"Very Easy", per:50, time:65, bestPer:0, bestTime:"00:00"}, {name:"Triangle*3", difficulty:"Easy", per:50, time:70, bestPer:0, bestTime:"00:00"}, {name:"Big Grin", difficulty:"Easy", per:65, time:90, bestPer:0, bestTime:"00:00"}, {name:"Slashed", difficulty:"Moderate", per:85, time:100, bestPer:0, bestTime:"00:00"}, {name:"A Magnet?", difficulty:"Moderate", per:85, time:70, bestPer:0, bestTime:"00:00"}, {name:"Perfect Circle", difficulty:"Moderatly Hard", per:95, time:120, bestPer:0, bestTime:"00:00"}, {name:"Cornered", difficulty:"Hard", per:90, time:200, bestPer:0, bestTime:"00:00"}, {name:"Barred", difficulty:"Moderatly Hard", per:85, time:125, bestPer:0, bestTime:"00:00"}, {name:"Curved", difficulty:"Hard", per:98, time:250, bestPer:0, bestTime:"00:00"}, {name:"Warped", difficulty:"Hard", per:92, time:250, bestPer:0, bestTime:"00:00"}, {name:"Arc", difficulty:"Hard", per:80, time:250, bestPer:0, bestTime:"00:00"}, {name:"Circle Holes", difficulty:"Very Hard", per:50, time:300, bestPer:0, bestTime:"00:00"}, {name:"Soup Bowl", difficulty:"Very Hard", per:50, time:250, bestPer:0, bestTime:"00:00"}, {name:"Insanity", difficulty:"Insane", per:50, time:600, bestPer:0, bestTime:"00:00"}];
timeSet = -1;
selectedLevel = -1;
};
myData = SharedObject.getLocal("DrawItData");
if (!myData.data.levelData){
myData.data.levelData = new Array();
myData.data.unlocked = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myData.flush();
} else {
i = 0;
while (i < myData.data.levelData.length) {
index = myData.data.levelData[i][0];
levelInfo[index].bestPer = myData.data.levelData[i][1];
levelInfo[index].bestTime = myData.data.levelData[i][2];
i++;
};
};
stage.addEventListener(MouseEvent.CLICK, menuItems);
}
function frame2(){
stop();
}
public function highScoreMenuEvent(_arg1:MouseEvent){
if (_arg1.target == levelSelect){
drawHereMC.removeChild(drawHereBmp);
drawMeMC.removeChild(drawMeBmp);
drawHereMC.removeChild(grid);
drawMeMC.removeChild(grid2);
drawHereMC.removeChild(drawApi);
stage.removeEventListener(MouseEvent.CLICK, highScoreMenuEvent);
gotoAndStop("Select");
} else {
if (_arg1.target == mainMenu){
drawHereMC.removeChild(drawHereBmp);
drawMeMC.removeChild(drawMeBmp);
drawHereMC.removeChild(grid);
drawMeMC.removeChild(grid2);
drawHereMC.removeChild(drawApi);
stage.removeEventListener(MouseEvent.CLICK, highScoreMenuEvent);
gotoAndStop("menu");
} else {
if (_arg1.target == this.replayLevel){
replayIng = true;
menuEndThing.play();
levelDispTxt.text = "";
output3.text = "";
output2.text = "";
output1.text = "";
levelDispTxt.text = "";
levelDispTxt.mouseEnabled = false;
levelDispTxt.visible = false;
levelSelect.mouseEnabled = false;
levelSelect.visible = false;
mainMenu.mouseEnabled = false;
mainMenu.visible = false;
replayLevel.visible = false;
replayLevel.mouseEnabled = false;
pass_fail_anime.gotoAndStop(1);
stage.removeEventListener(MouseEvent.CLICK, highScoreMenuEvent);
};
};
};
}
public function cacheCheck(){
if (((!((preLoad.currentFrame == 3))) && ((preLoad.loadPercenttxt.text == "100%")))){
preLoad.gotoAndStop(3);
};
clearInterval(intIntInt);
}
public function loadNewInfo(_arg1){
var _local2:*;
var _local3:*;
var _local4:*;
_local2 = root.levelInfo[_arg1];
_arg1++;
_local3 = 1;
_local4 = 1;
_local3 = Math.ceil((_arg1 / 3));
while (_arg1 > 3) {
_arg1 = (_arg1 - 3);
};
_local4 = ((_arg1 == 0)) ? 3 : _arg1;
levelWindow.levelTitle.text = _local2.name;
levelWindow.levelName.text = ((("Level " + _local3) + " - Stage ") + _local4);
levelWindow.difficulty.text = _local2.difficulty;
levelWindow.bestPercent.text = ("Best %" + _local2.bestPer);
levelWindow.bestTime.text = ("Best Time: " + _local2.bestTime);
levelWindow.percentNeed.text = ("% Needed: " + _local2.per);
levelWindow.timeAllotted.text = ("Time: " + _local2.time);
root.timeSet = _local2.time;
levelWindow.startLevel.mouseEnabled = true;
levelWindow.startLevel.visible = true;
}
public function optionsMouse(_arg1:MouseEvent){
if (_arg1.target == musicOnOff){
soundPausePlay();
};
if (_arg1.target == clearSave){
youSure.visible = true;
youSure.mouseEnabled = true;
};
if (_arg1.target == youSure){
cleared.visible = true;
myData = SharedObject.getLocal("DrawItData");
myData.data.levelData = new Array();
myData.data.unlocked = [1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
myData.flush();
};
if (_arg1.target == backHome){
stage.removeEventListener(MouseEvent.CLICK, optionsMouse);
play();
};
}
public function mouse(_arg1:MouseEvent){
if (_arg1.type == "click"){
if ((((_arg1.target == startGameBtn)) && (!(playing)))){
time = root.timeSet;
timeInt = setInterval(timeStep, 1000);
updateTimeDisp();
startGame(root.selectedLevel);
playing = true;
};
if (_arg1.target == floodFillBtn){
brushBtn.filters = [];
lineBtn.filters = [];
floodFillBtn.filters = [glow];
selTool = 2;
};
if (_arg1.target == brushBtn){
brushBtn.filters = [glow];
lineBtn.filters = [];
floodFillBtn.filters = [];
selTool = 1;
};
if (_arg1.target == lineBtn){
brushBtn.filters = [];
lineBtn.filters = [glow];
floodFillBtn.filters = [];
selTool = 0;
};
if (_arg1.target == undoBtn){
if (playing){
drawHere.draw(tempDrawHere.clone());
};
};
if (_arg1.target == stopBtn){
if (playing){
endGame();
};
};
};
if ((((_arg1.type == "mouseDown")) && ((_arg1.target == drawHereMC)))){
if (playing){
tempDrawHere.draw(drawHere.clone());
if (selTool != 2){
drawing = true;
drawApi.graphics.lineStyle(2);
a = _arg1.localX;
b = _arg1.localY;
drawApi.graphics.moveTo(_arg1.localX, _arg1.localY);
} else {
drawHere.floodFill(_arg1.localX, _arg1.localY, 4278190080);
};
};
};
if ((((_arg1.type == "mouseMove")) && ((_arg1.target == drawHereMC)))){
if (drawing){
if (selTool == 1){
drawApi.graphics.lineTo(_arg1.localX, _arg1.localY);
} else {
if (selTool == 0){
drawApi.graphics.clear();
drawApi.graphics.lineStyle(2);
drawApi.graphics.moveTo(a, b);
drawApi.graphics.lineTo(_arg1.localX, _arg1.localY);
};
};
};
};
if (_arg1.type == "mouseUp"){
if (drawing){
drawing = false;
drawHere.draw(drawApi);
drawApi.graphics.clear();
};
};
}
public function howToMouse(_arg1:MouseEvent){
if (_arg1.target.name == "nextPage"){
howToPanel.gotoAndStop(2);
};
if (_arg1.target.name == "prevPage"){
howToPanel.gotoAndStop(1);
};
if ((((_arg1.target.name == "mainMenu1")) || ((_arg1.target.name == "mainMenu2")))){
howToPanel.gotoAndStop(1);
stage.removeEventListener(MouseEvent.CLICK, howToMouse);
gotoAndPlay("HowTo Outro");
};
}
function frame431(){
stop();
levelWindow.startLevel.mouseEnabled = false;
levelWindow.startLevel.visible = false;
if (!selectInit){
selectInit = 1;
};
myData = SharedObject.getLocal("DrawItData");
i = 0;
while (i < myData.data.levelData.length) {
index = myData.data.levelData[i][0];
levelInfo[index].bestPer = myData.data.levelData[i][1];
levelInfo[index].bestTime = myData.data.levelData[i][2];
i++;
};
i = 0;
while (i < myData.data.unlocked.length) {
if (myData.data.unlocked[i] == 0){
lock = new locked();
lock.name = "Locky";
levelWindow[("level" + i)].addChild(lock);
};
i++;
};
stage.addEventListener(MouseEvent.CLICK, selMouse);
}
public function highScoreLoad(_arg1:MouseEvent){
this.menuEndThing.play();
stage.removeEventListener(MouseEvent.CLICK, highScoreLoad);
}
public function loadHighMenu(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 1;
_local2 = 1;
_local3 = (selectedLevel + 1);
_local1 = Math.ceil((_local3 / 3));
while (_local3 > 3) {
_local3 = (_local3 - 3);
};
_local2 = ((_local3 == 0)) ? 3 : _local3;
levelDispTxt.text = ((("Level " + _local1) + " - Stage ") + _local2);
levelDispTxt.mouseEnabled = false;
levelDispTxt.visible = true;
if (pass_fail_int == 1){
pass_fail_anime.gotoAndPlay("fail_frame");
replayLevel.visible = true;
replayLevel.mouseEnabled = true;
} else {
if (pass_fail_int == 2){
pass_fail_anime.gotoAndPlay("pass_frame");
};
};
if ((((_local2 == 3)) && ((pass_fail_int == 2)))){
myScore = Math.round((((_local1 * 100) + (time * 2)) * myScore));
GameI.submitScore.score = myScore;
btnSs.visible = true;
btnSs.mouseEnabled = true;
};
levelSelect.mouseEnabled = true;
levelSelect.visible = true;
mainMenu.mouseEnabled = true;
mainMenu.visible = true;
stage.addEventListener(MouseEvent.CLICK, highScoreMenuEvent);
}
public function timeStep(){
time--;
updateTimeDisp();
if (time <= 0){
endGame();
};
}
function frame331(){
stop();
if (!optionsInt){
optionsInt = 1;
};
cleared.visible = false;
youSure.visible = false;
youSure.mouseEnabled = false;
stage.addEventListener(MouseEvent.CLICK, optionsMouse);
}
public function loadBar(_arg1:ProgressEvent):void{
var _local2:*;
clearInterval(intIntInt);
_local2 = (_arg1.bytesLoaded / _arg1.bytesTotal);
preLoad.preloadMC.gotoAndStop(Math.floor((_local2 * 100)));
preLoad.loadLoadLoad = _local2;
preLoad.loadPercenttxt.text = (Math.floor((_local2 * 100)) + "%");
if (_local2 >= 1){
preLoad.gotoAndStop(3);
};
}
public function endGame(){
cY = 0;
yes = 0;
if (drawing){
drawHere.draw(drawApi);
drawApi.graphics.clear();
drawing = false;
};
lineBtn.mouseEnabled = false;
lineBtn.visible = false;
brushBtn.mouseEnabled = false;
brushBtn.visible = false;
floodFillBtn.mouseEnabled = false;
floodFillBtn.visible = false;
undoBtn.mouseEnabled = false;
undoBtn.visible = false;
startGameBtn.mouseEnabled = false;
startGameBtn.visible = false;
stopBtn.mouseEnabled = false;
stopBtn.visible = false;
btnSs.visible = false;
btnSs.mouseEnabled = false;
clearInterval(timeInt);
playing = false;
this.menuEndThing.play();
}
public function startGame(_arg1){
drawHere.fillRect(rect, 4294967295);
drawMe.fillRect(rect, 4294967295);
drawMe.draw(levels[_arg1]);
}
function frame231(){
stop();
if (!howToInt){
howToInt = 1;
};
stage.addEventListener(MouseEvent.CLICK, howToMouse);
}
public function menuSelectHandler(_arg1:ContextMenuEvent){
var _local2:String;
switch (_arg1.target){
case more_Context:
_local2 = "http://www.freeworldgroup.com/";
break;
case st1k_Context:
_local2 = "http://www.st1k.com/";
break;
case ssj_Context:
_local2 = "http://ssjskipp.deviantart.com/";
break;
default:
return (false);
};
Net.getURL(_local2);
}
public function menuItems(_arg1:MouseEvent){
var _local2:*;
var _local3:String;
if (_arg1.target == this.howToBtn){
gotoAndPlay("HowTo Intro");
stage.removeEventListener(MouseEvent.CLICK, menuItems);
};
if (_arg1.target == this.playBtn){
gotoAndPlay("Level Select");
stage.removeEventListener(MouseEvent.CLICK, menuItems);
};
if (_arg1.target == this.optionBtn){
gotoAndPlay("Options Intro");
stage.removeEventListener(MouseEvent.CLICK, menuItems);
};
if (_arg1.target == this.moreGameBtn){
_local3 = "http://www.freeworldgroup.com";
Net.getURL(_local3);
};
if (_arg1.target == this.addToYourSite){
_local3 = "http://www.freeworldgroup.com/koalafiles.htm";
Net.getURL(_local3);
};
}
function frame483(){
GameI.btnSs = btnSs;
GameI.submitScore.game_name = "draw_it_1";
GameI.submitScore.score = myScore;
btnSs._release = function ():void{
GameI.submitScore.fadeShow();
};
levelDispTxt.text = "";
levelDispTxt.mouseEnabled = false;
levelDispTxt.visible = false;
levelSelect.mouseEnabled = false;
levelSelect.visible = false;
mainMenu.mouseEnabled = false;
mainMenu.visible = false;
replayLevel.visible = false;
replayLevel.mouseEnabled = false;
btnSs.visible = false;
btnSs.mouseEnabled = false;
pass_fail_anime.gotoAndStop(1);
stop();
if (!gameInit){
myScore = 0;
gameInit = 1;
pass_fail_int = 0;
grid = new Grid();
grid2 = new Grid();
drawApi = new Sprite();
replayIng = false;
drawMe = new BitmapData(200, 200, true, 0xFFFFFF);
drawHere = new BitmapData(200, 200, true, 0xFFFFFF);
drawMeBmp = new Bitmap(drawMe);
drawHereBmp = new Bitmap(drawHere);
tempDrawHere = new BitmapData(200, 200, true, 0xFFFFFF);
grid.mouseEnabled = false;
drawApi.mouseEnabled = false;
rect = new Rectangle(0, 0, 200, 200);
playing = false;
time = 0;
drawing = false;
glow = new GlowFilter(0xFF, 1, 2, 2, 2);
selTool = 0;
lineBtn.filters = [glow];
};
replayIng = false;
drawHere.fillRect(rect, 4294967295);
drawMe.fillRect(rect, 4294967295);
pass_fail_int = 0;
updateTimeDisp();
this.menuEndThing.gotoAndStop(1);
lineBtn.mouseEnabled = true;
lineBtn.visible = true;
brushBtn.mouseEnabled = true;
brushBtn.visible = true;
floodFillBtn.mouseEnabled = true;
floodFillBtn.visible = true;
undoBtn.mouseEnabled = true;
undoBtn.visible = true;
startGameBtn.mouseEnabled = true;
startGameBtn.visible = true;
stopBtn.mouseEnabled = true;
stopBtn.visible = true;
drawHereMC.addChild(drawHereBmp);
drawMeMC.addChild(drawMeBmp);
drawHereMC.addChild(grid);
drawMeMC.addChild(grid2);
drawHereMC.addChild(drawApi);
stage.addEventListener(MouseEvent.CLICK, mouse);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouse);
stage.addEventListener(MouseEvent.MOUSE_UP, mouse);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouse);
}
public function unloadedMenus(){
if (replayIng){
replayIng = false;
drawHere.fillRect(rect, 4294967295);
drawMe.fillRect(rect, 4294967295);
pass_fail_int = 0;
updateTimeDisp();
this.menuEndThing.gotoAndStop(1);
lineBtn.mouseEnabled = true;
lineBtn.visible = true;
brushBtn.mouseEnabled = true;
brushBtn.visible = true;
floodFillBtn.mouseEnabled = true;
floodFillBtn.visible = true;
undoBtn.mouseEnabled = true;
undoBtn.visible = true;
startGameBtn.mouseEnabled = true;
startGameBtn.visible = true;
stopBtn.mouseEnabled = true;
stopBtn.visible = true;
drawHereMC.addChild(drawHereBmp);
drawMeMC.addChild(drawMeBmp);
drawHereMC.addChild(grid);
drawMeMC.addChild(grid2);
drawHereMC.addChild(drawApi);
stage.addEventListener(MouseEvent.CLICK, mouse);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouse);
stage.addEventListener(MouseEvent.MOUSE_UP, mouse);
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouse);
};
}
function frame383(){
gotoAndPlay("menu");
}
public function updateTimeDisp(){
var _local1:*;
var _local2:*;
var _local3:*;
_local1 = 0;
_local2 = 0;
_local3 = time;
while (_local3 >= 60) {
_local1++;
_local3 = (_local3 - 60);
};
_local2 = _local3;
_local1 = ((_local1 <= 9)) ? ("0" + _local1) : _local1;
_local2 = ((_local2 <= 9)) ? ("0" + _local2) : _local2;
timeLeft.text = ((_local1 + ":") + _local2);
}
}
}//package DrawIT_Full_fla
Section 7
//Pass_85 (DrawIT_Full_fla.Pass_85)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class Pass_85 extends MovieClip {
public function Pass_85(){
addFrameScript(0, frame1, 14, frame15, 30, frame31);
}
function frame15(){
stop();
}
function frame1(){
stop();
}
function frame31(){
stop();
}
}
}//package DrawIT_Full_fla
Section 8
//Preload_2_4 (DrawIT_Full_fla.Preload_2_4)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class Preload_2_4 extends MovieClip {
public var preloadMC:MovieClip;
public var playGame:SimpleButton;
public var loadPercenttxt:TextField;
public var loadLoadLoad;
public function Preload_2_4(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
playGame.addEventListener(MouseEvent.CLICK, playGameLink);
}
function frame1(){
if (!loadLoadLoad){
};
}
function frame2(){
if ((((loadLoadLoad > 0)) && ((loadLoadLoad < 1)))){
gotoAndPlay(1);
} else {
gotoAndStop(3);
};
}
public function playGameLink(_arg1:MouseEvent){
root.play();
}
}
}//package DrawIT_Full_fla
Section 9
//Preload_5 (DrawIT_Full_fla.Preload_5)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class Preload_5 extends MovieClip {
public function Preload_5(){
addFrameScript(0, frame1);
}
function frame1(){
this.mouseEnabled = true;
this.useHandCursor = true;
this.addEventListener(MouseEvent.CLICK, freeLink);
}
public function freeLink(_arg1:MouseEvent){
Net.getURL("http://www.freeworldgroup.com");
}
}
}//package DrawIT_Full_fla
Section 10
//Preview_68 (DrawIT_Full_fla.Preview_68)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class Preview_68 extends MovieClip {
public var link;
public var border:MovieClip;
public var sx;
public var dat:BitmapData;
public var bmp:Bitmap;
public var matrix:Matrix;
public function Preview_68(){
addFrameScript(0, frame1);
}
function frame1(){
dat = new BitmapData(40, 40, false);
bmp = new Bitmap(dat);
link = Number(this.name.substr(5));
matrix = new Matrix();
sx = (sy = (40 / 200));
matrix.scale(sx, sy);
if (link < root.levels.length){
dat.draw(root.levels[link], matrix, null, null, null, true);
};
addChild(bmp);
swapChildren(border, bmp);
}
}
}//package DrawIT_Full_fla
Section 11
//SkippFinalIntro_24 (DrawIT_Full_fla.SkippFinalIntro_24)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class SkippFinalIntro_24 extends MovieClip {
public function SkippFinalIntro_24(){
addFrameScript(0, frame1, 112, frame113);
}
public function goToUrl(_arg1:String):void{
Net.getURL(_arg1);
}
public function onMouseUpHandler_st1k(_arg1:MouseEvent):void{
goToUrl("http://ssjskipp.deviantart.com");
}
function frame1(){
root.stop();
this.addEventListener(MouseEvent.MOUSE_UP, onMouseUpHandler_st1k);
}
function frame113(){
root.play();
}
}
}//package DrawIT_Full_fla
Section 12
//St1k_12 (DrawIT_Full_fla.St1k_12)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class St1k_12 extends MovieClip {
public function St1k_12(){
addFrameScript(0, frame1, 135, frame136);
}
public function onMouseUpHandler_st1k(_arg1:MouseEvent):void{
Net.getURL("http://www.st1k.com/");
}
function frame1(){
root.stop();
this.addEventListener(MouseEvent.MOUSE_UP, onMouseUpHandler_st1k);
}
function frame136(){
root.play();
}
}
}//package DrawIT_Full_fla
Section 13
//St1k_21 (DrawIT_Full_fla.St1k_21)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class St1k_21 extends MovieClip {
public function St1k_21(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package DrawIT_Full_fla
Section 14
//Symbol6_74 (DrawIT_Full_fla.Symbol6_74)
package DrawIT_Full_fla {
import flash.net.*;
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.text.*;
import flash.ui.*;
import flash.geom.*;
import flash.filters.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
import flash.utils.*;
public dynamic class Symbol6_74 extends MovieClip {
public function Symbol6_74(){
addFrameScript(0, frame1, 14, frame15, 39, frame40, 65, frame66);
}
function frame15(){
stop();
parent.calcTime = setInterval(parent.compareBmps, 10);
}
function frame1(){
stop();
}
function frame40(){
stop();
parent.loadHighMenu();
}
function frame66(){
stop();
parent.unloadedMenus();
}
}
}//package DrawIT_Full_fla
Section 15
//BtnSs (FWG.BtnSs)
package FWG {
public dynamic class BtnSs extends SBtn {
}
}//package FWG
Section 16
//BtnSubmit (FWG.BtnSubmit)
package FWG {
public dynamic class BtnSubmit extends SBtn {
}
}//package FWG
Section 17
//BtnVh (FWG.BtnVh)
package FWG {
public dynamic class BtnVh extends SBtn {
}
}//package FWG
Section 18
//BtnX (FWG.BtnX)
package FWG {
public dynamic class BtnX extends SBtn {
}
}//package FWG
Section 19
//SBtn (FWG.SBtn)
package FWG {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
public class SBtn extends MovieClip {
public var _press:Function;
public var _rollOver:Function;
public var btn;
public var _rollOut:Function;
public var _release:Function;
public function SBtn(){
var i:int;
var child:*;
super();
btn = this.getChildAt(0);
_rollOver = function (){
};
_rollOut = function (){
};
_press = function (){
};
_release = function (){
};
if ((btn is MovieClip)){
btn.buttonMode = true;
btn.gotoAndStop(1);
};
btn.addEventListener(MouseEvent.MOUSE_OVER, _onRollOver, false, 0, true);
btn.addEventListener(MouseEvent.MOUSE_OUT, _onRollOut, false, 0, true);
btn.addEventListener(MouseEvent.MOUSE_DOWN, _onPress, false, 0, true);
btn.addEventListener(MouseEvent.MOUSE_UP, _onRelease, false, 0, true);
i = this.numChildren;
while ((i = (i - 1)), (i - 1) >= 0) {
child = this.getChildAt(i);
if ((child is InteractiveObject)){
child.mouseEnabled = false;
if ((child is DisplayObjectContainer)){
child.mouseChildren = false;
};
};
};
btn.mouseEnabled = true;
}
public function release():void{
}
public function press():void{
}
public function _onRollOut(_arg1:MouseEvent):void{
rollOut();
_rollOut();
}
public function rollOut():void{
}
public function _onRelease(_arg1:MouseEvent):void{
release();
_release();
}
public function _onRollOver(_arg1:MouseEvent):void{
rollOver();
_rollOver();
}
public function _onPress(_arg1:MouseEvent):void{
press();
_press();
}
public function rollOver():void{
}
}
}//package FWG
Section 20
//SubmitScore (FWG.SubmitScore)
package FWG {
import flash.net.*;
import flash.events.*;
import flash.display.*;
public class SubmitScore extends Sprite {
private var windowBg;
public var score:int;
private var windowBody;
public var game_name:String;
public function SubmitScore(){
GameI.submitScore = this;
windowBody = this.getChildAt(1);
windowBg = this.getChildAt(0);
windowBody.stop();
windowBody.btnSubmit._release = checkSubmit;
windowBody.btnX._release = fadeHide;
hide();
}
private function errorHandler(_arg1:IOErrorEvent):void{
trace(("error: " + _arg1));
}
public function hide():void{
this.removeChild(windowBody);
this.removeChild(windowBg);
}
public function checkSubmit():void{
var _local1:String;
var _local2:URLVariables;
_local1 = windowBody.nameTxt.text;
if (_local1 == ""){
_local1 = ("guest" + int((Math.random() * 1000)));
};
if (score > 0){
_local2 = new URLVariables();
_local2.game = game_name;
_local2.score = windowBody.scoreTxt.text;
_local2.name = _local1;
Net.sendData(_local2, "http://www.freeworldgroup.com/score/score.asp", completeHandler, errorHandler);
windowBody.gotoAndStop(2);
GameI.btnSs.visible = false;
} else {
trace("score is 0! can't submit!");
};
}
public function fadeShow():void{
show();
windowBody.nameTxt.stage.focus = windowBody.nameTxt;
windowBody.nameTxt.setSelection(0, windowBody.nameTxt.text.length);
}
private function completeHandler(_arg1:Event):void{
windowBody.gotoAndStop(3);
}
public function fadeHide():void{
hide();
}
public function show():void{
this.addChild(windowBg);
this.addChild(windowBody);
windowBody.nameTxt.maxChars = 10;
windowBody.nameTxt.text = "";
windowBody.scoreTxt.text = score;
trace(((("playerName=" + windowBody.nameTxt.text) + ",score=") + windowBody.scoreTxt.text));
}
}
}//package FWG
Section 21
//HitRec (ui.HitRec)
package ui {
import flash.display.*;
public dynamic class HitRec extends MovieClip {
}
}//package ui
Section 22
//WindowBg (ui.WindowBg)
package ui {
import flash.display.*;
public dynamic class WindowBg extends MovieClip {
}
}//package ui
Section 23
//GameI (GameI)
package {
import FWG.*;
public class GameI {
public static var submitScore:SubmitScore;
public static var btnSs:BtnSs;
}
}//package
Section 24
//Grid (Grid)
package {
import flash.display.*;
public dynamic class Grid extends MovieClip {
}
}//package
Section 25
//Level0 (Level0)
package {
import flash.display.*;
public dynamic class Level0 extends Sprite {
}
}//package
Section 26
//Level1 (Level1)
package {
import flash.display.*;
public dynamic class Level1 extends Sprite {
}
}//package
Section 27
//Level10 (Level10)
package {
import flash.display.*;
public dynamic class Level10 extends Sprite {
}
}//package
Section 28
//Level11 (Level11)
package {
import flash.display.*;
public dynamic class Level11 extends Sprite {
}
}//package
Section 29
//Level12 (Level12)
package {
import flash.display.*;
public dynamic class Level12 extends Sprite {
}
}//package
Section 30
//Level13 (Level13)
package {
import flash.display.*;
public dynamic class Level13 extends Sprite {
}
}//package
Section 31
//Level14 (Level14)
package {
import flash.display.*;
public dynamic class Level14 extends Sprite {
}
}//package
Section 32
//Level2 (Level2)
package {
import flash.display.*;
public dynamic class Level2 extends Sprite {
}
}//package
Section 33
//Level3 (Level3)
package {
import flash.display.*;
public dynamic class Level3 extends Sprite {
}
}//package
Section 34
//Level4 (Level4)
package {
import flash.display.*;
public dynamic class Level4 extends Sprite {
}
}//package
Section 35
//Level5 (Level5)
package {
import flash.display.*;
public dynamic class Level5 extends Sprite {
}
}//package
Section 36
//Level6 (Level6)
package {
import flash.display.*;
public dynamic class Level6 extends Sprite {
}
}//package
Section 37
//Level7 (Level7)
package {
import flash.display.*;
public dynamic class Level7 extends Sprite {
}
}//package
Section 38
//Level8 (Level8)
package {
import flash.display.*;
public dynamic class Level8 extends Sprite {
}
}//package
Section 39
//Level9 (Level9)
package {
import flash.display.*;
public dynamic class Level9 extends Sprite {
}
}//package
Section 40
//locked (locked)
package {
import flash.display.*;
public dynamic class locked extends MovieClip {
}
}//package
Section 41
//Net (Net)
package {
import flash.net.*;
import flash.events.*;
public class Net {
private static var loader:URLLoader;
private static var request:URLRequest;
public static function sendData(_arg1:URLVariables, _arg2:String, _arg3:Function, _arg4:Function):void{
request = new URLRequest(_arg2);
request.data = _arg1;
request.method = URLRequestMethod.POST;
trace(((("sendToURL: " + request.url) + "?") + request.data));
sendToURL(request);
loader = new URLLoader();
loader.addEventListener(Event.COMPLETE, _arg3, false, 0, true);
loader.addEventListener(IOErrorEvent.IO_ERROR, _arg4, false, 0, true);
loader.load(request);
}
public static function getURL(_arg1:String):void{
var url = _arg1;
try {
navigateToURL(new URLRequest(url), "_blank");
} catch(e) {
trace(("Net.getURL:e=" + e));
};
}
}
}//package
Section 42
//theMusic (theMusic)
package {
import flash.media.*;
public dynamic class theMusic extends Sound {
}
}//package