Section 1
//Data (data.Data)
package data {
import flash.filters.*;
public class Data {
public static var SHADOWFILTER:Array = [new DropShadowFilter(0, 45, 0, 100, 10, 10, 0.45, BitmapFilterQuality.HIGH, true, true)];
public static var mode:int = 1;
}
}//package data
Section 2
//Language (data.Language)
package data {
public class Language {
public static var mode:int;
public static var moreGameLink:String;
public static var frame_language:int;
public static var frame_logo:int;
public static var freeGameLink:String;
public function Language():void{
mode = 1;
setPro();
}
private function setPro():void{
switch (mode){
case 1:
moreGameLink = "http://www.girlsgogames.com/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.com/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 1;
frame_logo = 1;
break;
case 2:
moreGameLink = "http://www.game.com.cn/moregames/";
freeGameLink = "http://www.game.com.cn/downloads/";
frame_language = 14;
frame_logo = 2;
break;
case 3:
moreGameLink = "http://www.girlsgogames.nl/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.nl/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 3;
frame_logo = 3;
break;
case 4:
moreGameLink = "http://www.girlsgogames.fr/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.fr/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 4;
frame_logo = 4;
break;
case 5:
moreGameLink = "http://www.girlsgogames.de/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.de/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 5;
frame_logo = 5;
break;
case 6:
moreGameLink = "http://www.girlsgogames.pl/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.pl/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 10;
frame_logo = 6;
break;
case 7:
moreGameLink = "http://www.girlsgogames.se/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.se/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 9;
frame_logo = 7;
break;
case 8:
moreGameLink = "http://www.girlsgogames.it/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.it/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 8;
frame_logo = 8;
break;
case 9:
moreGameLink = "http://www.juegosdechicas.com/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.juegosdechicas.com/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 6;
frame_logo = 9;
break;
case 10:
moreGameLink = "http://www.girlsgogames.com.br/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.com.br/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 7;
frame_logo = 11;
break;
case 11:
moreGameLink = "http://www.games.co.id/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.games.co.id/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 13;
frame_logo = 15;
break;
case 12:
moreGameLink = "http://www.girlsgogames.ru/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.ru/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 11;
frame_logo = 12;
break;
case 13:
moreGameLink = "http://www.girlsgogames.co.uk/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.co.uk/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 2;
frame_logo = 10;
break;
case 14:
moreGameLink = "http://www.girlsgogames.in/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogames.in/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 2;
frame_logo = 13;
break;
case 15:
moreGameLink = "http://www.girlsgogamestr.com/moregames/?utm_source=brandedgames&utm_medium=paper_cutting";
freeGameLink = "http://www.girlsgogamestr.com/freegames/?utm_source=brandedgames&utm_medium=paper_cutting";
frame_language = 12;
frame_logo = 14;
break;
};
}
}
}//package data
Section 3
//Document (manager.Document)
package manager {
import flash.display.*;
import ui.*;
import data.*;
import flash.ui.*;
public final class Document extends MovieClip {
public function Document(){
this.stop();
hideContextMenu();
forbidScale();
new MouseStyle(this);
new Language();
new Game(this);
}
private function hideContextMenu():void{
var _local1:ContextMenu;
_local1 = new ContextMenu();
_local1.hideBuiltInItems();
this.contextMenu = _local1;
this.stage.showDefaultContextMenu = false;
}
private function forbidScale():void{
this.stage.scaleMode = "noScale";
}
}
}//package manager
Section 4
//Game (manager.Game)
package manager {
import flash.display.*;
import ui.*;
import sounds.*;
public final class Game {
private var edit:Edit;
public var mc:MovieClip;
private var choose:Choose;
private var main:Main;
private var loading:Loading;
public function Game(_arg1:MovieClip){
mc = _arg1;
startLoading();
}
public function backMain():void{
new Cutting(mc);
deleteChoose();
createMain();
}
private function createChoose():void{
choose = new Choose(this);
}
public function startChooseAni():void{
choose.startChooseAni();
}
private function deleteMain():void{
SoundsManager.stopMusic();
main.del();
main = null;
}
public function del():void{
}
public function startEdit():void{
new Cutting(mc);
deleteChoose();
createEdit();
}
private function deleteLoading():void{
loading.del();
loading = null;
}
private function sleek():void{
mc.gotoAndStop(3);
mc.gotoAndStop(1);
}
private function createMain():void{
SoundsManager.playMusic("MenuBg");
main = new Main(this);
}
public function startChoose():void{
new Cutting(mc, this);
deleteMain();
createChoose();
}
private function deleteEdit():void{
SoundsManager.stopMusic();
edit.del();
edit = null;
}
public function backChoose():void{
new Cutting(mc, this);
deleteEdit();
createChoose();
}
private function createLoading():void{
loading = new Loading(this);
}
private function deleteChoose():void{
choose.del();
choose = null;
}
private function createEdit():void{
SoundsManager.playMusic("GameBg");
edit = new Edit(this);
}
public function startLoading():void{
createLoading();
}
public function startMain():void{
new SoundsManager();
sleek();
deleteLoading();
createMain();
}
}
}//package manager
Section 5
//branding_aligned_center_24 (paperCutting_fla.branding_aligned_center_24)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class branding_aligned_center_24 extends MovieClip {
public var txt:MovieClip;
public function branding_aligned_center_24(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.moreGameLink);
this.mouseChildren = false;
}
}
}//package paperCutting_fla
Section 6
//currentIcon_9 (paperCutting_fla.currentIcon_9)
package paperCutting_fla {
import flash.display.*;
public dynamic class currentIcon_9 extends MovieClip {
public function currentIcon_9(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package paperCutting_fla
Section 7
//fanyi_back_205 (paperCutting_fla.fanyi_back_205)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_back_205 extends MovieClip {
public function fanyi_back_205(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 8
//fanyi_backgroundcolor_206 (paperCutting_fla.fanyi_backgroundcolor_206)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_backgroundcolor_206 extends MovieClip {
public function fanyi_backgroundcolor_206(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 9
//fanyi_brush_199 (paperCutting_fla.fanyi_brush_199)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_brush_199 extends MovieClip {
public function fanyi_brush_199(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 10
//fanyi_clear_203 (paperCutting_fla.fanyi_clear_203)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_clear_203 extends MovieClip {
public function fanyi_clear_203(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 11
//fanyi_color_211 (paperCutting_fla.fanyi_color_211)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_color_211 extends MovieClip {
public function fanyi_color_211(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 12
//fanyi_examples_195 (paperCutting_fla.fanyi_examples_195)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_examples_195 extends MovieClip {
public function fanyi_examples_195(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 13
//fanyi_freegames_49 (paperCutting_fla.fanyi_freegames_49)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_freegames_49 extends MovieClip {
public function fanyi_freegames_49(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
this.mouseEnabled = false;
}
}
}//package paperCutting_fla
Section 14
//fanyi_knife_200 (paperCutting_fla.fanyi_knife_200)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_knife_200 extends MovieClip {
public function fanyi_knife_200(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 15
//fanyi_materials_197 (paperCutting_fla.fanyi_materials_197)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_materials_197 extends MovieClip {
public function fanyi_materials_197(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 16
//fanyi_modeselection_124 (paperCutting_fla.fanyi_modeselection_124)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_modeselection_124 extends MovieClip {
public function fanyi_modeselection_124(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 17
//fanyi_morefreegamesat_219 (paperCutting_fla.fanyi_morefreegamesat_219)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_morefreegamesat_219 extends MovieClip {
public function fanyi_morefreegamesat_219(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 18
//fanyi_moregames_48 (paperCutting_fla.fanyi_moregames_48)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_moregames_48 extends MovieClip {
public function fanyi_moregames_48(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
this.mouseEnabled = false;
}
}
}//package paperCutting_fla
Section 19
//fanyi_pause_209 (paperCutting_fla.fanyi_pause_209)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_pause_209 extends MovieClip {
public function fanyi_pause_209(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 20
//fanyi_play_207 (paperCutting_fla.fanyi_play_207)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_play_207 extends MovieClip {
public function fanyi_play_207(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 21
//fanyi_print_210 (paperCutting_fla.fanyi_print_210)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_print_210 extends MovieClip {
public function fanyi_print_210(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 22
//fanyi_scissors_198 (paperCutting_fla.fanyi_scissors_198)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_scissors_198 extends MovieClip {
public function fanyi_scissors_198(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 23
//fanyi_show_204 (paperCutting_fla.fanyi_show_204)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_show_204 extends MovieClip {
public function fanyi_show_204(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 24
//fanyi_stamp_201 (paperCutting_fla.fanyi_stamp_201)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_stamp_201 extends MovieClip {
public function fanyi_stamp_201(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 25
//fanyi_startgame_47 (paperCutting_fla.fanyi_startgame_47)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_startgame_47 extends MovieClip {
public function fanyi_startgame_47(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
this.mouseEnabled = false;
}
}
}//package paperCutting_fla
Section 26
//fanyi_stop_208 (paperCutting_fla.fanyi_stop_208)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_stop_208 extends MovieClip {
public function fanyi_stop_208(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 27
//fanyi_undo_202 (paperCutting_fla.fanyi_undo_202)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_undo_202 extends MovieClip {
public function fanyi_undo_202(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 28
//fanyi_white_212 (paperCutting_fla.fanyi_white_212)
package paperCutting_fla {
import flash.display.*;
import data.*;
public dynamic class fanyi_white_212 extends MovieClip {
public function fanyi_white_212(){
addFrameScript(0, frame1);
}
function frame1(){
this.gotoAndStop(Language.frame_language);
}
}
}//package paperCutting_fla
Section 29
//stage_3 (paperCutting_fla.stage_3)
package paperCutting_fla {
import flash.display.*;
public dynamic class stage_3 extends MovieClip {
public var showStage:MovieClip;
public var brokenLine:MovieClip;
}
}//package paperCutting_fla
Section 30
//Timeline_155 (paperCutting_fla.Timeline_155)
package paperCutting_fla {
import flash.display.*;
public dynamic class Timeline_155 extends MovieClip {
public var color1:SimpleButton;
public var color3:SimpleButton;
public var color4:SimpleButton;
public var color5:SimpleButton;
public var color6:SimpleButton;
public var color8:SimpleButton;
public var color2:SimpleButton;
public var color7:SimpleButton;
}
}//package paperCutting_fla
Section 31
//Timeline_188 (paperCutting_fla.Timeline_188)
package paperCutting_fla {
import flash.display.*;
public dynamic class Timeline_188 extends MovieClip {
public function Timeline_188(){
addFrameScript(63, frame64);
}
function frame64(){
stop();
}
}
}//package paperCutting_fla
Section 32
//UIl_Loadingbar_217 (paperCutting_fla.UIl_Loadingbar_217)
package paperCutting_fla {
import flash.display.*;
public dynamic class UIl_Loadingbar_217 extends MovieClip {
public var bar:MovieClip;
}
}//package paperCutting_fla
Section 33
//SoundsManager (sounds.SoundsManager)
package sounds {
import flash.media.*;
import tool.*;
public class SoundsManager {
private static const SOUNDSLINK:Array = ["MenuPress", "MenuTouch", "MenuBack", "MenuBg", "ButtonPress", "ButtonTouch", "Select", "SelectTouch", "Stampe", "Brush", "Forfex", "Knife", "RightIconPress", "GameBg"];
private static const VALUEMUSIC:Number = 1;
private static const VALUESOUND:Number = 1;
public static var enabled:Boolean;
private static var currentMusic:String;
private static var soundsArr:Array;
public function SoundsManager():void{
init();
setEnabled(true);
}
public static function stopMusic():void{
var _local1:int;
var _local2:Object;
if (currentMusic != null){
_local1 = 0;
while (_local1 < soundsArr.length) {
_local2 = soundsArr[_local1];
if (_local2.label == currentMusic){
if (_local2.channel != null){
_local2.channel.stop();
_local2.channel = null;
};
};
_local1++;
};
};
}
public static function StopSound(_arg1:String):void{
var _local2:int;
var _local3:Object;
_local2 = 0;
while (_local2 < soundsArr.length) {
_local3 = soundsArr[_local2];
if (_local3.label == _arg1){
if (_local3.channel != null){
_local3.channel.stop();
_local3.channel = null;
};
};
_local2++;
};
}
private static function init():void{
var _local1:int;
var _local2:String;
var _local3:Sound;
var _local4:Object;
soundsArr = new Array();
_local1 = 0;
while (_local1 < SOUNDSLINK.length) {
_local2 = SOUNDSLINK[_local1];
_local3 = Attach.getSound(_local2);
_local4 = new Object();
_local4.label = _local2;
_local4.sound = _local3;
soundsArr.push(_local4);
_local1++;
};
}
public static function playMusic(_arg1:String):void{
var _local2:int;
var _local3:Object;
var _local4:SoundChannel;
if (enabled){
_local2 = 0;
while (_local2 < soundsArr.length) {
_local3 = soundsArr[_local2];
if (_local3.label == _arg1){
currentMusic = _arg1;
_local4 = _local3.sound.play(0, int.MAX_VALUE, new SoundTransform(VALUEMUSIC));
_local3.channel = _local4;
};
_local2++;
};
};
}
public static function playSound(_arg1:String):void{
var _local2:int;
var _local3:Object;
var _local4:SoundChannel;
if (enabled){
_local2 = 0;
while (_local2 < soundsArr.length) {
_local3 = soundsArr[_local2];
if (_local3.label == _arg1){
_local4 = _local3.sound.play(0, 0, new SoundTransform(VALUESOUND));
_local3.channel = _local4;
};
_local2++;
};
};
}
public static function setEnabled(_arg1:Boolean):void{
enabled = _arg1;
if (_arg1){
playMusic(currentMusic);
} else {
stopMusic();
};
}
}
}//package sounds
Section 34
//Attach (tool.Attach)
package tool {
import flash.display.*;
import flash.media.*;
import flash.utils.*;
public class Attach {
public static function getSound(_arg1:String):Sound{
var _local2:Class;
var _local3:Sound;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getMovieClip(_arg1:String):MovieClip{
var _local2:Class;
var _local3:MovieClip;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getSprite(_arg1:String):Sprite{
var _local2:Class;
var _local3:Sprite;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new (_local2);
return (_local3);
}
public static function getBitmapData(_arg1:String):BitmapData{
var _local2:Class;
var _local3:BitmapData;
_local2 = (getDefinitionByName(_arg1) as Class);
_local3 = new _local2(null, null);
return (_local3);
}
}
}//package tool
Section 35
//Method (tool.Method)
package tool {
import flash.display.*;
import flash.geom.*;
public class Method {
public static function drawLine(_arg1:Sprite, _arg2:uint, _arg3:uint, _arg4:Point, _arg5:Point):void{
var m = _arg1;
var thickness = _arg2;
var color = _arg3;
var pt1 = _arg4;
var pt2 = _arg5;
var _local7 = m.graphics;
with (_local7) {
lineStyle(thickness, color);
moveTo(pt1.x, pt1.y);
lineTo(pt2.x, pt2.y);
};
}
public static function setColorTransform(_arg1:Sprite, _arg2:uint):void{
var _local3:ColorTransform;
_local3 = new ColorTransform();
_local3.color = _arg2;
_arg1.transform.colorTransform = _local3;
}
}
}//package tool
Section 36
//BrushBox (ui.edit.BrushBox)
package ui.edit {
import flash.display.*;
import flash.events.*;
import ui.*;
import flash.geom.*;
import flash.text.*;
import tool.*;
import sounds.*;
public class BrushBox {
private const POSX:Number = 275;
private const POSY:Number = 414;
private var _color10:Sprite;
private var _color11:Sprite;
private var _color12:Sprite;
private var _color13:Sprite;
private var manager:Manager;
private var _txt:TextField;
private var _mc:Sprite;
private var _color1:Sprite;
private var _color2:Sprite;
private var _color3:Sprite;
private var _color4:Sprite;
private var _color5:Sprite;
private var _color6:Sprite;
private var _currentIcon:MovieClip;
private var _color8:Sprite;
private var _color9:Sprite;
private var _color7:Sprite;
private var _show:Sprite;
private var _scrollBg:Sprite;
private var _scroll:Sprite;
public function BrushBox(_arg1:Manager){
manager = _arg1;
initMc();
initEvent();
initScrollPos();
}
public function del():void{
removeEvent();
removeMc();
}
private function rollOutMc(_arg1:MouseEvent):void{
MouseStyle.brushMode(manager.brushColor);
_scroll.stopDrag();
}
private function enterframeMc(_arg1:Event):void{
var _local2:int;
_local2 = Math.round((((_scroll.x - _scrollBg.x) / _scrollBg.width) * manager.MAXBRUSHWIDTH));
if (_local2 == 0){
_local2 = 1;
};
_txt.text = String(_local2);
manager.setBrushWidth(_local2);
}
private function initScrollPos():void{
_scroll.x = (((manager.brushWidth / manager.MAXBRUSHWIDTH) * _scrollBg.width) + _scrollBg.x);
}
public function setBrushWidth(_arg1:int):void{
_show.width = _arg1;
_show.height = _arg1;
}
private function setCurr(_arg1:Sprite):void{
_currentIcon.gotoAndPlay(1);
_currentIcon.x = _arg1.x;
_currentIcon.y = _arg1.y;
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
private function clickMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _color1:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(3459067);
break;
case _color2:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(3365879);
break;
case _color3:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(11429623);
break;
case _color4:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(16735999);
break;
case _color5:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(16735838);
break;
case _color6:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(12543552);
break;
case _color7:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(16751966);
break;
case _color8:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(16772702);
break;
case _color9:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(7339870);
break;
case _color10:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(1294732);
break;
case _color11:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(0xFFFFFF);
break;
case _color12:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(0x8C8C8C);
break;
case _color13:
SoundsManager.playSound("RightIconPress");
manager.setBrushColor(0x373737);
break;
};
}
private function initMc():void{
_mc = Attach.getSprite("EditBrushBoxMC");
manager.mc.addChild(_mc);
_mc.x = POSX;
_mc.y = POSY;
_color1 = (_mc.getChildByName("color1") as Sprite);
_color2 = (_mc.getChildByName("color2") as Sprite);
_color3 = (_mc.getChildByName("color3") as Sprite);
_color4 = (_mc.getChildByName("color4") as Sprite);
_color5 = (_mc.getChildByName("color5") as Sprite);
_color6 = (_mc.getChildByName("color6") as Sprite);
_color7 = (_mc.getChildByName("color7") as Sprite);
_color8 = (_mc.getChildByName("color8") as Sprite);
_color9 = (_mc.getChildByName("color9") as Sprite);
_color10 = (_mc.getChildByName("color10") as Sprite);
_color11 = (_mc.getChildByName("color11") as Sprite);
_color12 = (_mc.getChildByName("color12") as Sprite);
_color13 = (_mc.getChildByName("color13") as Sprite);
_currentIcon = (_mc.getChildByName("currentIcon") as MovieClip);
_show = (_mc.getChildByName("show") as Sprite);
_scroll = (_mc.getChildByName("scroll") as Sprite);
_scrollBg = (_mc.getChildByName("scrollBg") as Sprite);
_txt = (_mc.getChildByName("txt") as TextField);
}
public function setBrushColor(_arg1:uint):void{
var _local2:ColorTransform;
_local2 = new ColorTransform();
_local2.color = _arg1;
_show.transform.colorTransform = _local2;
switch (_arg1){
case 3459067:
setCurr(_color1);
break;
case 3365879:
setCurr(_color2);
break;
case 11429623:
setCurr(_color3);
break;
case 16735999:
setCurr(_color4);
break;
case 16735838:
setCurr(_color5);
break;
case 12543552:
setCurr(_color6);
break;
case 16751966:
setCurr(_color7);
break;
case 16772702:
setCurr(_color8);
break;
case 7339870:
setCurr(_color9);
break;
case 1294732:
setCurr(_color10);
break;
case 0xFFFFFF:
setCurr(_color11);
break;
case 0x8C8C8C:
setCurr(_color12);
break;
case 0x373737:
setCurr(_color13);
break;
};
}
private function mouseUpMc(_arg1:MouseEvent):void{
_scroll.stopDrag();
}
private function mouseDownMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _scroll:
_scroll.startDrag(true, new Rectangle(_scrollBg.x, _scrollBg.y, _scrollBg.width, 0));
break;
case _scrollBg:
_scroll.x = _scroll.parent.mouseX;
_scroll.y = _scroll.parent.mouseY;
break;
};
}
private function rollOverMc(_arg1:MouseEvent):void{
MouseStyle.handleMode();
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.ROLL_OVER, rollOverMc);
_mc.addEventListener(MouseEvent.ROLL_OUT, rollOutMc);
_mc.addEventListener(MouseEvent.CLICK, clickMc);
_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownMc);
_mc.addEventListener(MouseEvent.MOUSE_UP, mouseUpMc);
_mc.addEventListener(Event.ENTER_FRAME, enterframeMc);
}
private function removeEvent():void{
_mc.removeEventListener(MouseEvent.ROLL_OVER, rollOverMc);
_mc.removeEventListener(MouseEvent.ROLL_OUT, rollOutMc);
_mc.removeEventListener(MouseEvent.CLICK, clickMc);
_mc.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownMc);
_mc.removeEventListener(MouseEvent.MOUSE_UP, mouseUpMc);
_mc.removeEventListener(Event.ENTER_FRAME, enterframeMc);
}
}
}//package ui.edit
Section 37
//ExampleBox (ui.edit.ExampleBox)
package ui.edit {
import flash.display.*;
import flash.events.*;
import data.*;
import tool.*;
import sounds.*;
public class ExampleBox {
private const POSX:Number = 275;
private const POSY:Number = 414;
private var _currentIcon:MovieClip;
private var _example1:MovieClip;
private var _example2:MovieClip;
private var _example3:MovieClip;
private var _example4:MovieClip;
private var _example6:MovieClip;
private var _example7:MovieClip;
private var manager:Manager;
private var _example5:MovieClip;
private var _mc:Sprite;
public function ExampleBox(_arg1:Manager){
manager = _arg1;
initMc();
initEvent();
}
private function clickMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _example1:
SoundsManager.playSound("RightIconPress");
manager.setExample(1);
break;
case _example2:
SoundsManager.playSound("RightIconPress");
manager.setExample(2);
break;
case _example3:
SoundsManager.playSound("RightIconPress");
manager.setExample(3);
break;
case _example4:
SoundsManager.playSound("RightIconPress");
manager.setExample(4);
break;
case _example5:
SoundsManager.playSound("RightIconPress");
manager.setExample(5);
break;
case _example6:
SoundsManager.playSound("RightIconPress");
manager.setExample(6);
break;
case _example7:
SoundsManager.playSound("RightIconPress");
manager.setExample(7);
break;
};
}
private function initMc():void{
_mc = Attach.getSprite("EditExampleBoxMC");
manager.mc.addChild(_mc);
_mc.x = POSX;
_mc.y = POSY;
_example1 = (_mc.getChildByName("example1") as MovieClip);
_example2 = (_mc.getChildByName("example2") as MovieClip);
_example3 = (_mc.getChildByName("example3") as MovieClip);
_example4 = (_mc.getChildByName("example4") as MovieClip);
_example5 = (_mc.getChildByName("example5") as MovieClip);
_example6 = (_mc.getChildByName("example6") as MovieClip);
_example7 = (_mc.getChildByName("example7") as MovieClip);
_currentIcon = (_mc.getChildByName("currentIcon") as MovieClip);
_example1.gotoAndStop(Data.mode);
_example2.gotoAndStop(Data.mode);
_example3.gotoAndStop(Data.mode);
_example4.gotoAndStop(Data.mode);
_example5.gotoAndStop(Data.mode);
_example6.gotoAndStop(Data.mode);
_example7.gotoAndStop(Data.mode);
}
public function del():void{
removeEvent();
removeMc();
}
public function setExample(_arg1:Number):void{
switch (_arg1){
case 1:
setCurr(_example1);
break;
case 2:
setCurr(_example2);
break;
case 3:
setCurr(_example3);
break;
case 4:
setCurr(_example4);
break;
case 5:
setCurr(_example5);
break;
case 6:
setCurr(_example6);
break;
case 7:
setCurr(_example7);
break;
};
}
private function setCurr(_arg1:Sprite):void{
_currentIcon.x = (_arg1.x + (_arg1.width / 2));
_currentIcon.y = (_arg1.y - (_arg1.height / 2));
_currentIcon.gotoAndPlay(1);
}
private function removeEvent():void{
_mc.removeEventListener(MouseEvent.CLICK, clickMc);
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.CLICK, clickMc);
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
}
}//package ui.edit
Section 38
//ForfexBox (ui.edit.ForfexBox)
package ui.edit {
import flash.display.*;
import flash.events.*;
import ui.*;
import flash.geom.*;
import flash.text.*;
import tool.*;
public class ForfexBox {
private const POSX:Number = 275;
private const POSY:Number = 414;
private var _scrollBg:Sprite;
private var _show:Sprite;
private var _scroll:Sprite;
private var manager:Manager;
private var _txt:TextField;
private var _mc:Sprite;
public function ForfexBox(_arg1:Manager){
manager = _arg1;
initMc();
initEvent();
initScrollPos();
}
private function initMc():void{
_mc = Attach.getSprite("EditForfexBoxMC");
manager.mc.addChild(_mc);
_mc.x = POSX;
_mc.y = POSY;
_show = (_mc.getChildByName("show") as Sprite);
_scroll = (_mc.getChildByName("scroll") as Sprite);
_scrollBg = (_mc.getChildByName("scrollBg") as Sprite);
_txt = (_mc.getChildByName("txt") as TextField);
}
public function del():void{
removeEvent();
removeMc();
}
private function rollOutMc(_arg1:MouseEvent):void{
MouseStyle.forfexMode();
_scroll.stopDrag();
}
private function enterframeMc(_arg1:Event):void{
var _local2:Number;
_local2 = Math.round((((_scroll.x - _scrollBg.x) / _scrollBg.width) * manager.MAXFORFEXWIDTH));
if (_local2 == 0){
_local2 = 1;
};
_txt.text = String(_local2);
manager.setForfexWidth(_local2);
}
private function mouseUpMc(_arg1:MouseEvent):void{
_scroll.stopDrag();
}
private function initScrollPos():void{
_scroll.x = (((manager.forfexWidth / manager.MAXFORFEXWIDTH) * _scrollBg.width) + _scrollBg.x);
}
private function mouseDownMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _scroll:
_scroll.startDrag(true, new Rectangle(_scrollBg.x, _scrollBg.y, _scrollBg.width, 0));
break;
case _scrollBg:
_scroll.x = _scroll.parent.mouseX;
_scroll.y = _scroll.parent.mouseY;
break;
};
}
private function rollOverMc(_arg1:MouseEvent):void{
MouseStyle.handleMode();
}
public function setForfexWidth(_arg1:uint):void{
_show.width = _arg1;
_show.height = _arg1;
}
private function removeEvent():void{
_mc.removeEventListener(MouseEvent.ROLL_OVER, rollOverMc);
_mc.removeEventListener(MouseEvent.ROLL_OUT, rollOutMc);
_mc.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownMc);
_mc.removeEventListener(MouseEvent.MOUSE_UP, mouseUpMc);
_mc.removeEventListener(Event.ENTER_FRAME, enterframeMc);
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.ROLL_OVER, rollOverMc);
_mc.addEventListener(MouseEvent.ROLL_OUT, rollOutMc);
_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownMc);
_mc.addEventListener(MouseEvent.MOUSE_UP, mouseUpMc);
_mc.addEventListener(Event.ENTER_FRAME, enterframeMc);
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
}
}//package ui.edit
Section 39
//KnifeBox (ui.edit.KnifeBox)
package ui.edit {
import flash.display.*;
import flash.events.*;
import ui.*;
import tool.*;
public class KnifeBox {
private const POSX:Number = 275;
private const POSY:Number = 414;
private var manager:Manager;
private var _mc:Sprite;
public function KnifeBox(_arg1:Manager){
manager = _arg1;
initMc();
initEvent();
}
private function initMc():void{
_mc = Attach.getSprite("EditKnifeBoxMC");
manager.mc.addChild(_mc);
_mc.x = POSX;
_mc.y = POSY;
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
public function del():void{
removeEvent();
removeMc();
}
private function rollOverMc(_arg1:MouseEvent):void{
MouseStyle.handleMode();
}
private function removeEvent():void{
_mc.removeEventListener(MouseEvent.ROLL_OVER, rollOverMc);
_mc.removeEventListener(MouseEvent.ROLL_OUT, rollOutMc);
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.ROLL_OVER, rollOverMc);
_mc.addEventListener(MouseEvent.ROLL_OUT, rollOutMc);
}
private function rollOutMc(_arg1:MouseEvent):void{
MouseStyle.knifeMode();
}
}
}//package ui.edit
Section 40
//Manager (ui.edit.Manager)
package ui.edit {
import flash.display.*;
import ui.*;
public class Manager {
public const MAXBRUSHWIDTH:int = 30;
public const MAXFORFEXWIDTH:int = 30;
public var forfexWidth:int;// = 10
private var exampleBox:ExampleBox;
private var edit:Edit;
public var state:String;
private var stamperBox:StamperBox;
public var mc:Sprite;
private var tool:Tool;
public var bgColor:uint;// = 12490218
private var materialBox:MaterialBox;
public var material:Object;// = 14403739
public var brushWidth:int;// = 5
public var stamper:String;// = "Stamper1"
private var brushBox:BrushBox;
public var brushColor:uint;// = 16735838
private var knifeBox:KnifeBox;
public var example:Number;// = 1
private var forfexBox:ForfexBox;
public var show:Show;
public var stage:Stage;
public function Manager(_arg1:Edit):void{
brushWidth = 5;
brushColor = 16735838;
forfexWidth = 10;
stamper = "Stamper1";
material = 14403739;
bgColor = 12490218;
example = 1;
super();
edit = _arg1;
mc = _arg1.game.mc;
createTool();
createStage();
startExample();
}
private function deleteBrushBox():void{
brushBox.del();
brushBox = null;
}
private function deleteStamperBox():void{
stamperBox.del();
stamperBox = null;
}
private function createKnifeBox():void{
knifeBox = new KnifeBox(this);
state = "knife";
}
public function del():void{
deleteTool();
deleteBox();
deleteStage();
}
private function deleteExampleBox():void{
exampleBox.del();
exampleBox = null;
}
private function createMaterialBox():void{
materialBox = new MaterialBox(this);
state = "material";
}
private function createShow():void{
show = new Show(this);
}
private function deleteStage():void{
stage.del();
stage = null;
}
private function createExampleBox():void{
exampleBox = new ExampleBox(this);
state = "example";
}
public function stopShow():void{
deleteShow();
tool.setVisible(true);
switch (state){
case "brush":
tool.clickBrush();
break;
case "forfex":
tool.clickForfex();
break;
case "knife":
tool.clickKnife();
break;
case "stamper":
tool.clickStamper();
break;
case "material":
tool.clickMaterial();
break;
case "example":
tool.clickExample();
break;
};
}
private function createStamperBox():void{
stamperBox = new StamperBox(this);
state = "stamper";
}
public function setExample(_arg1:Number, _arg2:Boolean=true):void{
if (_arg2){
newStart();
};
example = _arg1;
stage.setExample(_arg1);
exampleBox.setExample(_arg1);
}
public function setMaterial(_arg1:Object):void{
material = _arg1;
stage.setMaterial(_arg1);
materialBox.setMaterial(_arg1);
}
public function setBrushWidth(_arg1:int):void{
brushWidth = _arg1;
brushBox.setBrushWidth(_arg1);
}
public function startExample():void{
deleteBox();
createExampleBox();
setExample(example, false);
}
public function setForfexWidth(_arg1:int):void{
forfexWidth = _arg1;
forfexBox.setForfexWidth(_arg1);
}
public function startMaterial():void{
deleteBox();
createMaterialBox();
setMaterial(material);
}
public function startForfex():void{
deleteBox();
createForfexBox();
stage.startForfex();
MouseStyle.forfexMode();
}
public function newStart():void{
del();
createTool();
createStage();
createExampleBox();
}
private function deleteForfexBox():void{
forfexBox.del();
forfexBox = null;
}
private function deleteKnifeBox():void{
knifeBox.del();
knifeBox = null;
}
private function deleteBox():void{
if (exampleBox != null){
deleteExampleBox();
};
if (materialBox != null){
deleteMaterialBox();
};
if (forfexBox != null){
deleteForfexBox();
stopForfex();
};
if (brushBox != null){
deleteBrushBox();
stopBrush();
};
if (knifeBox != null){
deleteKnifeBox();
stopKnife();
};
if (stamperBox != null){
deleteStamperBox();
stopStamper();
};
}
private function stopKnife():void{
stage.stopKnife();
MouseStyle.handleMode();
}
public function setBrushColor(_arg1:int):void{
brushColor = _arg1;
tool.setBrushColor(brushColor);
brushBox.setBrushColor(brushColor);
}
private function createBrushBox():void{
brushBox = new BrushBox(this);
state = "brush";
}
private function deleteShow():void{
show.del();
show = null;
}
private function stopForfex():void{
stage.stopForfex();
MouseStyle.handleMode();
}
private function stopStamper():void{
stage.stopStamper();
MouseStyle.handleMode();
}
private function createTool():void{
tool = new Tool(this);
}
public function setBgColor(_arg1:uint):void{
bgColor = _arg1;
tool.setBgColor(_arg1);
stage.setBgColor(_arg1);
}
public function backChoose():void{
edit.game.backChoose();
}
private function stopBrush():void{
stage.stopBrush();
MouseStyle.handleMode();
}
public function startKnife():void{
deleteBox();
createKnifeBox();
stage.startKnife();
MouseStyle.knifeMode();
}
private function createStage():void{
stage = new Stage(this);
}
public function setStamper(_arg1:String):void{
stamper = _arg1;
stamperBox.setStamper(_arg1);
}
public function goBack():void{
stage.goBack();
}
private function deleteTool():void{
tool.del();
tool = null;
}
public function startStamper():void{
deleteBox();
createStamperBox();
setStamper(stamper);
stage.startStamper();
}
private function createForfexBox():void{
forfexBox = new ForfexBox(this);
state = "forfex";
}
public function startBrush():void{
deleteBox();
createBrushBox();
setBrushColor(brushColor);
stage.startBrush();
}
private function deleteMaterialBox():void{
materialBox.del();
materialBox = null;
}
public function startShow():void{
tool.setVisible(false);
deleteBox();
createShow();
}
}
}//package ui.edit
Section 41
//MaterialBox (ui.edit.MaterialBox)
package ui.edit {
import flash.display.*;
import flash.events.*;
import tool.*;
import sounds.*;
public class MaterialBox {
private const POSX:Number = 275;
private const POSY:Number = 414;
private var _materail6:Sprite;
private var _color10:Sprite;
private var _color11:Sprite;
private var _color12:Sprite;
private var _materail8:Sprite;
private var _materail2:Sprite;
private var _color13:Sprite;
private var _materail7:Sprite;
private var _materail9:Sprite;
private var _materail4:Sprite;
private var _materail12:Sprite;
private var _materail11:Sprite;
private var manager:Manager;
private var _mc:Sprite;
private var _materail10:Sprite;
private var _color0:Sprite;
private var _color1:Sprite;
private var _color2:Sprite;
private var _color3:Sprite;
private var _color4:Sprite;
private var _color5:Sprite;
private var _color6:Sprite;
private var _color7:Sprite;
private var _color8:Sprite;
private var _color9:Sprite;
private var _currentIcon:MovieClip;
private var _materail1:Sprite;
private var _materail3:Sprite;
private var _materail5:Sprite;
public function MaterialBox(_arg1:Manager){
manager = _arg1;
initMc();
initEvent();
}
private function removeEvent():void{
_mc.removeEventListener(MouseEvent.CLICK, clickMc);
}
public function del():void{
removeEvent();
removeMc();
}
public function setMaterial(_arg1:Object):void{
switch (_arg1){
case 14403739:
setCurr(_color0);
break;
case 3459067:
setCurr(_color1);
break;
case 3365879:
setCurr(_color2);
break;
case 11429623:
setCurr(_color3);
break;
case 16735999:
setCurr(_color4);
break;
case 16735838:
setCurr(_color5);
break;
case 12543552:
setCurr(_color6);
break;
case 16751966:
setCurr(_color7);
break;
case 16772702:
setCurr(_color8);
break;
case 7339870:
setCurr(_color9);
break;
case 1294732:
setCurr(_color10);
break;
case 0xFFFFFF:
setCurr(_color11);
break;
case 0x8C8C8C:
setCurr(_color12);
break;
case 0x373737:
setCurr(_color13);
break;
case "Material_1":
setCurr(_materail1);
break;
case "Material_2":
setCurr(_materail2);
break;
case "Material_3":
setCurr(_materail3);
break;
case "Material_4":
setCurr(_materail4);
break;
case "Material_5":
setCurr(_materail5);
break;
case "Material_6":
setCurr(_materail6);
break;
case "Material_7":
setCurr(_materail7);
break;
case "Material_8":
setCurr(_materail8);
break;
case "Material_9":
setCurr(_materail9);
break;
case "Material_10":
setCurr(_materail10);
break;
case "Material_11":
setCurr(_materail11);
break;
case "Material_12":
setCurr(_materail12);
break;
};
}
private function setCurr(_arg1:Sprite):void{
_currentIcon.gotoAndPlay(1);
_currentIcon.x = _arg1.x;
_currentIcon.y = _arg1.y;
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
private function clickMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _color0:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(14403739);
break;
case _color1:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(3459067);
break;
case _color2:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(3365879);
break;
case _color3:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(11429623);
break;
case _color4:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(16735999);
break;
case _color5:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(16735838);
break;
case _color6:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(12543552);
break;
case _color7:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(16751966);
break;
case _color8:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(16772702);
break;
case _color9:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(7339870);
break;
case _color10:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(1294732);
break;
case _color11:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(0xFFFFFF);
break;
case _color12:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(0x8C8C8C);
break;
case _color13:
SoundsManager.playSound("RightIconPress");
manager.setMaterial(0x373737);
break;
case _materail1:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_1");
break;
case _materail2:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_2");
break;
case _materail3:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_3");
break;
case _materail4:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_4");
break;
case _materail5:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_5");
break;
case _materail6:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_6");
break;
case _materail7:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_7");
break;
case _materail8:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_8");
break;
case _materail9:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_9");
break;
case _materail10:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_10");
break;
case _materail11:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_11");
break;
case _materail12:
SoundsManager.playSound("RightIconPress");
manager.setMaterial("Material_12");
break;
};
}
private function initMc():void{
_mc = Attach.getSprite("EditMaterialBoxMC");
manager.mc.addChild(_mc);
_mc.x = POSX;
_mc.y = POSY;
_color0 = (_mc.getChildByName("color0") as Sprite);
_color1 = (_mc.getChildByName("color1") as Sprite);
_color2 = (_mc.getChildByName("color2") as Sprite);
_color3 = (_mc.getChildByName("color3") as Sprite);
_color4 = (_mc.getChildByName("color4") as Sprite);
_color5 = (_mc.getChildByName("color5") as Sprite);
_color6 = (_mc.getChildByName("color6") as Sprite);
_color7 = (_mc.getChildByName("color7") as Sprite);
_color8 = (_mc.getChildByName("color8") as Sprite);
_color9 = (_mc.getChildByName("color9") as Sprite);
_color10 = (_mc.getChildByName("color10") as Sprite);
_color11 = (_mc.getChildByName("color11") as Sprite);
_color12 = (_mc.getChildByName("color12") as Sprite);
_color13 = (_mc.getChildByName("color13") as Sprite);
_materail1 = (_mc.getChildByName("materail1") as Sprite);
_materail2 = (_mc.getChildByName("materail2") as Sprite);
_materail3 = (_mc.getChildByName("materail3") as Sprite);
_materail4 = (_mc.getChildByName("materail4") as Sprite);
_materail5 = (_mc.getChildByName("materail5") as Sprite);
_materail6 = (_mc.getChildByName("materail6") as Sprite);
_materail7 = (_mc.getChildByName("materail7") as Sprite);
_materail8 = (_mc.getChildByName("materail8") as Sprite);
_materail9 = (_mc.getChildByName("materail9") as Sprite);
_materail10 = (_mc.getChildByName("materail10") as Sprite);
_materail11 = (_mc.getChildByName("materail11") as Sprite);
_materail12 = (_mc.getChildByName("materail12") as Sprite);
_currentIcon = (_mc.getChildByName("currentIcon") as MovieClip);
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.CLICK, clickMc);
}
}
}//package ui.edit
Section 42
//Show (ui.edit.Show)
package ui.edit {
import flash.display.*;
import flash.events.*;
import ui.*;
import flash.geom.*;
import data.*;
import tool.*;
import sounds.*;
import flash.printing.*;
public class Show {
private const PRINTWID:Number = 550;
private const SPEED:Number = 0.5;
private var _showStage:Sprite;
private var stageArr:Array;
private var _brokenLine:MovieClip;
private var _blackWhite:SimpleButton;
private var manager:Manager;
private var bitmap:Sprite;
private var _print:SimpleButton;
private var _mc:Sprite;
private var _back:SimpleButton;
private var _multiColor:SimpleButton;
private var _currentIcon:MovieClip;
private var _show:Sprite;
private var _bg:Sprite;
private var allowRotation:Boolean;
public function Show(_arg1:Manager):void{
manager = _arg1;
initArr();
initMc();
initEvent();
initBrokenLine();
initShowStage();
initBitmap();
allowRotation = true;
clickMultiColor();
setBgColor(manager.bgColor);
}
private function setMaterialWhite():void{
var _local1:int;
var _local2:Sprite;
var _local3:int;
_local1 = 0;
while (_local1 < stageArr.length) {
_local2 = (stageArr[_local1].getChildByName("material") as Sprite);
_local2.graphics.clear();
_local2.graphics.beginFill(0xFFFFFF);
_local2.graphics.moveTo(manager.stage.materialPoint[0].x, manager.stage.materialPoint[0].y);
_local3 = 1;
while (_local3 < manager.stage.materialPoint.length) {
_local2.graphics.lineTo(manager.stage.materialPoint[_local3].x, manager.stage.materialPoint[_local3].y);
_local3++;
};
_local2.graphics.endFill();
_local1++;
};
}
public function del():void{
removeEvent();
removeMc();
}
private function setBrushAreaVisible(_arg1:Boolean):void{
var _local2:int;
var _local3:Sprite;
_local2 = 0;
while (_local2 < stageArr.length) {
_local3 = (stageArr[_local2].getChildByName("brushArea") as Sprite);
_local3.visible = _arg1;
_local2++;
};
}
private function clickPrint():void{
var percent:Number;
var i:int;
var maskMc:MovieClip;
var instruction:MovieClip;
var printJob:PrintJob;
var j:int;
var child1:Sprite;
var child2:Sprite;
setShadow();
if (_currentIcon.x == _blackWhite.x){
setBrushAreaVisible(false);
setMaterialWhite();
} else {
setBrushAreaVisible(true);
revertMaterial();
};
_show.visible = true;
percent = (PRINTWID / _brokenLine.width);
i = 0;
while (i < _show.numChildren) {
child1 = (_show.getChildAt(i) as Sprite);
child1.scaleX = percent;
child1.scaleY = percent;
child1.x = (child1.x + (PRINTWID / 2));
child1.y = (child1.y + (PRINTWID / 2));
i = (i + 1);
};
maskMc = Attach.getMovieClip("Octagon");
_show.addChild(maskMc);
maskMc.gotoAndStop(Data.mode);
maskMc.width = PRINTWID;
maskMc.scaleY = maskMc.scaleX;
instruction = Attach.getMovieClip("Instruction");
_show.addChild(instruction);
instruction.gotoAndStop(Data.mode);
instruction.width = PRINTWID;
instruction.scaleY = instruction.scaleX;
instruction.y = PRINTWID;
printJob = new PrintJob();
printJob.start();
try {
printJob.addPage(_show, new Rectangle(0, 0, PRINTWID, (PRINTWID + instruction.height)));
} catch(e:Error) {
trace("print error");
};
printJob.send();
if (Data.mode == 3){
};
_show.visible = false;
j = 0;
while (j < _show.numChildren) {
child2 = (_show.getChildAt(j) as Sprite);
child2.scaleX = 1;
child2.scaleY = 1;
child2.x = (child2.x - (PRINTWID / 2));
child2.y = (child2.y - (PRINTWID / 2));
j = (j + 1);
};
maskMc.parent.removeChild(maskMc);
instruction.parent.removeChild(instruction);
removeShadow();
}
private function mouseOverMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _blackWhite:
SoundsManager.playSound("SelectTouch");
MouseStyle.setHelp(17);
break;
case _multiColor:
SoundsManager.playSound("SelectTouch");
MouseStyle.setHelp(16);
break;
case _print:
SoundsManager.playSound("SelectTouch");
MouseStyle.setHelp(15);
break;
case _back:
SoundsManager.playSound("ButtonTouch");
MouseStyle.setHelp(10);
break;
};
}
private function getBitmapFromSprite(_arg1:Sprite, _arg2:Number, _arg3:Number, _arg4:Boolean):BitmapData{
var _local5:BitmapData;
var _local6:int;
var _local7:int;
var _local8:Sprite;
var _local9:Sprite;
_local5 = new BitmapData(_arg2, _arg3, true, 0);
if (_arg4){
_local6 = 0;
while (_local6 < _arg1.numChildren) {
_local8 = (_arg1.getChildAt(_local6) as Sprite);
(_arg1.getChildAt(_local6) as Sprite).x = (_local8.x + (_arg2 / 2));
_local8.y = (_local8.y + (_arg3 / 2));
_local6++;
};
_local5.draw(_arg1, null, null, null, null, true);
_local7 = 0;
while (_local7 < _arg1.numChildren) {
_local9 = (_arg1.getChildAt(_local7) as Sprite);
(_arg1.getChildAt(_local7) as Sprite).x = (_local9.x - (_arg2 / 2));
_local9.y = (_local9.y - (_arg3 / 2));
_local7++;
};
} else {
_local5.draw(_arg1, null, null, null, null, true);
};
return (_local5);
}
private function clickBack():void{
manager.stopShow();
}
private function initBrokenLine():void{
switch (Data.mode){
case 1:
_brokenLine.gotoAndStop(1);
break;
case 2:
_brokenLine.gotoAndStop(2);
break;
case 3:
_brokenLine.gotoAndStop(3);
break;
};
_brokenLine.visible = false;
}
private function clickBlackWhite():void{
setCurr(_blackWhite);
setBrushAreaVisible(false);
setMaterialWhite();
setBitmap();
}
private function setShadow():void{
var _local1:int;
var _local2:Sprite;
_local1 = 0;
while (_local1 < stageArr.length) {
_local2 = (stageArr[_local1].getChildByName("cutArea") as Sprite);
_local2.filters = Data.SHADOWFILTER;
_local1++;
};
}
private function revertMaterial():void{
var _local1:int;
var _local2:Sprite;
var _local3:int;
var _local4:BitmapData;
var _local5:uint;
_local1 = 0;
while (_local1 < stageArr.length) {
_local2 = (stageArr[_local1].getChildByName("material") as Sprite);
_local2.graphics.clear();
if ((manager.material is String)){
_local4 = Attach.getBitmapData((manager.material as String));
_local2.graphics.beginBitmapFill(_local4);
} else {
_local5 = (manager.material as uint);
_local2.graphics.beginFill(_local5);
};
_local2.graphics.moveTo(manager.stage.materialPoint[0].x, manager.stage.materialPoint[0].y);
_local3 = 1;
while (_local3 < manager.stage.materialPoint.length) {
_local2.graphics.lineTo(manager.stage.materialPoint[_local3].x, manager.stage.materialPoint[_local3].y);
_local3++;
};
_local2.graphics.endFill();
_local1++;
};
}
private function revertData(_arg1:Sprite):void{
var _local2:Sprite;
var _local3:Sprite;
var _local4:Sprite;
var _local5:Sprite;
var _local6:Sprite;
var _local7:int;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:Sprite;
var _local13:Sprite;
var _local14:Sprite;
var _local15:Sprite;
var _local16:Array;
var _local17:int;
var _local18:BitmapData;
var _local19:uint;
_local2 = (_arg1.getChildByName("cutArea") as Sprite);
_local3 = (_arg1.getChildByName("brushArea") as Sprite);
_local4 = (_arg1.getChildByName("material") as Sprite);
_local5 = (_arg1.getChildByName("cutMask") as Sprite);
_local6 = (_arg1.getChildByName("brushMask") as Sprite);
_local2.mask = _local5;
_local3.mask = _local6;
_local7 = 0;
while (_local7 < manager.stage.stamperArr.length) {
_local12 = Attach.getSprite(manager.stage.stamperArr[_local7][1]);
_local2.addChild(_local12);
_local12.x = manager.stage.stamperArr[_local7][2].x;
_local12.y = manager.stage.stamperArr[_local7][2].y;
Method.setColorTransform(_local12, manager.bgColor);
_local7++;
};
_local8 = 0;
while (_local8 < manager.stage.brushLineArr.length) {
_local13 = new Sprite();
_local3.addChild(_local13);
Method.drawLine(_local13, manager.stage.brushLineArr[_local8][1], manager.stage.brushLineArr[_local8][2], manager.stage.brushLineArr[_local8][3], manager.stage.brushLineArr[_local8][4]);
_local8++;
};
_local9 = 0;
while (_local9 < manager.stage.forfexLineArr.length) {
_local14 = new Sprite();
_local2.addChild(_local14);
Method.drawLine(_local14, manager.stage.forfexLineArr[_local9][1], manager.bgColor, manager.stage.forfexLineArr[_local9][2], manager.stage.forfexLineArr[_local9][3]);
_local9++;
};
_local10 = 0;
while (_local10 < manager.stage.knifeArr.length) {
_local15 = new Sprite();
_local2.addChild(_local15);
_local15.graphics.beginFill(manager.bgColor);
_local16 = manager.stage.knifeArr[_local10][1];
_local15.graphics.moveTo(_local16[0].x, _local16[0].y);
_local17 = 1;
while (_local17 < _local16.length) {
_local15.graphics.lineTo(_local16[_local17].x, _local16[_local17].y);
_local17++;
};
_local15.graphics.endFill();
_local10++;
};
if ((manager.material is String)){
_local18 = Attach.getBitmapData((manager.material as String));
_local4.graphics.beginBitmapFill(_local18);
} else {
_local19 = (manager.material as uint);
_local4.graphics.beginFill(_local19);
};
_local4.graphics.moveTo(manager.stage.materialPoint[0].x, manager.stage.materialPoint[0].y);
_local11 = 1;
while (_local11 < manager.stage.materialPoint.length) {
_local4.graphics.lineTo(manager.stage.materialPoint[_local11].x, manager.stage.materialPoint[_local11].y);
_local11++;
};
_local4.graphics.endFill();
}
private function initArr():void{
stageArr = new Array();
}
private function setCurr(_arg1:SimpleButton):void{
_currentIcon.x = _arg1.x;
_currentIcon.y = _arg1.y;
_currentIcon.gotoAndPlay(1);
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
private function clickMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _blackWhite:
SoundsManager.playSound("Select");
clickBlackWhite();
break;
case _multiColor:
SoundsManager.playSound("Select");
clickMultiColor();
break;
case _print:
SoundsManager.playSound("Select");
clickPrint();
break;
case _back:
MouseStyle.delHelp();
SoundsManager.playSound("MenuBack");
clickBack();
break;
};
}
private function setBitmap():void{
var _local1:BitmapData;
var _local2:Bitmap;
if (!_show.visible){
_show.visible = true;
};
bitmap.parent.removeChild(bitmap);
initBitmap();
_local1 = getBitmapFromSprite(_show, _brokenLine.width, _brokenLine.height, true);
_local2 = new Bitmap(_local1);
bitmap.addChild(_local2);
_local2.x = (_local2.x - (_local2.width / 2));
_local2.y = (_local2.y - (_local2.height / 2));
_show.visible = false;
}
private function removeShadow():void{
var _local1:int;
var _local2:Sprite;
_local1 = 0;
while (_local1 < stageArr.length) {
_local2 = (stageArr[_local1].getChildByName("cutArea") as Sprite);
_local2.filters = null;
_local1++;
};
}
private function initMc():void{
_mc = Attach.getSprite("ShowMC");
manager.mc.addChild(_mc);
_bg = (_mc.getChildByName("bg") as Sprite);
_blackWhite = (_mc.getChildByName("blackWhite") as SimpleButton);
_multiColor = (_mc.getChildByName("multiColor") as SimpleButton);
_print = (_mc.getChildByName("startPrint") as SimpleButton);
_back = (_mc.getChildByName("back") as SimpleButton);
_currentIcon = (_mc.getChildByName("currentIcon") as MovieClip);
_show = (_mc.getChildByName("show") as Sprite);
_brokenLine = (_show.getChildByName("brokenLine") as MovieClip);
_showStage = (_show.getChildByName("showStage") as Sprite);
}
private function initShowStage():void{
var _local1:int;
var _local2:int;
var _local3:Sprite;
_local1 = (4 * Math.pow(2, (Data.mode - 1)));
_local2 = 0;
while (_local2 < _local1) {
_local3 = Attach.getSprite(("EditStageMC" + String(Data.mode)));
_showStage.addChild(_local3);
stageArr.push(_local3);
revertData(_local3);
_local3.x = _brokenLine.x;
_local3.y = _brokenLine.y;
_local3.scaleX = ((_brokenLine.height / 2) / manager.stage.HEIGHT);
_local3.scaleY = ((_brokenLine.height / 2) / manager.stage.HEIGHT);
_local3.rotation = (((360 / _local1) * int((_local2 / 2))) * 2);
if (((_local2 + 1) % 2) == 0){
_local3.scaleX = -(_local3.scaleX);
};
_local2++;
};
}
private function clickMultiColor():void{
setCurr(_multiColor);
setBrushAreaVisible(true);
revertMaterial();
setBitmap();
}
private function mouseOutMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _blackWhite:
MouseStyle.delHelp();
break;
case _multiColor:
MouseStyle.delHelp();
break;
case _print:
MouseStyle.delHelp();
break;
case _back:
MouseStyle.delHelp();
break;
};
}
private function initBitmap():void{
bitmap = new Sprite();
_mc.addChild(bitmap);
_mc.setChildIndex(bitmap, (_mc.getChildIndex(_show) + 1));
bitmap.x = _show.x;
bitmap.y = _show.y;
}
private function enterFrameMc(_arg1:Event):void{
if (allowRotation){
bitmap.rotation = (bitmap.rotation + SPEED);
};
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.CLICK, clickMc);
_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMc);
_mc.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMc);
_mc.addEventListener(Event.ENTER_FRAME, enterFrameMc);
}
private function setBgColor(_arg1:uint):void{
var _local2:ColorTransform;
_local2 = new ColorTransform();
_local2.color = _arg1;
_bg.transform.colorTransform = _local2;
}
private function removeEvent():void{
_mc.removeEventListener(MouseEvent.CLICK, clickMc);
_mc.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverMc);
_mc.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutMc);
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameMc);
}
}
}//package ui.edit
Section 43
//Stage (ui.edit.Stage)
package ui.edit {
import flash.display.*;
import flash.events.*;
import ui.*;
import flash.geom.*;
import data.*;
import tool.*;
import sounds.*;
public class Stage extends Sprite {
private const POSX:Number = 148;
private const POSY:Number = 357;
private const OPOFFSET:Number = 10;
private const SNAPDISTANCE:Number = 10;
private var opArea:Rectangle;
private var _displayLine:Sprite;
public var brushLineArr:Array;
private var _mc:Sprite;
public var HEIGHT:Number;
private var drawTemp:Sprite;
private var _brushArea:Sprite;
public var knifeArr:Array;
private var initPoint:Point;
public var forfexLineArr:Array;
public var stamperArr:Array;
private var _material:Sprite;
public var materialPoint:Array;
private var manager:Manager;
private var _cutArea:Sprite;
private var tempArr:Array;
private var backArr:Array;
public function Stage(_arg1:Manager){
manager = _arg1;
initArr();
initMc();
initOpArea();
initMaterialPoint();
initMaterial();
HEIGHT = _mc.height;
}
private function mouseDownKnife(_arg1:MouseEvent):void{
var _local2:Point;
var _local3:int;
var _local4:Point;
_local2 = new Point((MouseStyle._mc.x - _mc.x), (MouseStyle._mc.y - _mc.y));
if (opArea.containsPoint(_local2)){
tempArr.push(_local2);
if (tempArr.length >= 4){
if ((((tempArr[0].x == _local2.x)) && ((tempArr[0].y == _local2.y)))){
MouseStyle.snapPoint = null;
overKnife();
} else {
_local3 = 0;
for (;_local3 < (tempArr.length - 2);_local3++) {
_local4 = judgeAcross(tempArr[_local3], tempArr[(_local3 + 1)], tempArr[(tempArr.length - 2)], tempArr[(tempArr.length - 1)]);
if (_local4 == null){
continue;
} else {
tempArr.splice(0, (_local3 + 1), _local4);
tempArr.pop();
overKnife();
};
};
};
};
} else {
tempArr.length = 0;
displayLine();
};
}
public function del():void{
removeMc();
}
public function startBrush():void{
_mc.root.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownBrush);
_mc.root.addEventListener(MouseEvent.ROLL_OVER, rollOverBrush);
}
private function addStamperArr(_arg1:Sprite, _arg2:String, _arg3:Point):void{
var _local4:Array;
_local4 = new Array(_arg1, _arg2, _arg3);
stamperArr.push(_local4);
}
private function addBackArr(_arg1:Sprite):void{
backArr.push(_arg1);
}
private function setInitPoint():void{
initPoint = new Point(_mc.mouseX, _mc.mouseY);
}
private function mouseUp(_arg1:MouseEvent):void{
_mc.root.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
_mc.root.removeEventListener(MouseEvent.MOUSE_UP, mouseUp);
_mc.root.removeEventListener(MouseEvent.ROLL_OUT, rollOut);
if ((((drawTemp.width == 0)) && ((drawTemp.height == 0)))){
drawTemp.parent.removeChild(drawTemp);
drawTemp = null;
} else {
addBackArr(drawTemp);
};
}
private function mouseMove(_arg1:MouseEvent):void{
var _local2:Point;
var _local3:Number;
_local2 = new Point(_mc.mouseX, _mc.mouseY);
_local3 = Point.distance(initPoint, _local2);
if (_local3 >= 0.5){
if (((opArea.containsPoint(_local2)) || (opArea.containsPoint(initPoint)))){
if (drawTemp.parent == _brushArea){
Method.drawLine(drawTemp, manager.brushWidth, manager.brushColor, initPoint, _local2);
addBrushLineArr(drawTemp, manager.brushWidth, manager.brushColor, initPoint, _local2);
} else {
if (drawTemp.parent == _cutArea){
Method.drawLine(drawTemp, manager.forfexWidth, manager.bgColor, initPoint, _local2);
addForfexLineArr(drawTemp, manager.forfexWidth, initPoint, _local2);
};
};
};
setInitPoint();
};
}
private function overKnife():void{
displayFill();
tempArr.length = 0;
displayLine();
}
public function startForfex():void{
_mc.root.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownForfex);
_mc.root.addEventListener(MouseEvent.ROLL_OVER, rollOverForfex);
}
private function mouseMoveKnife(_arg1:MouseEvent):void{
if (tempArr.length >= 3){
if (Point.distance(new Point(_mc.mouseX, _mc.mouseY), tempArr[0]) < SNAPDISTANCE){
MouseStyle.snapPoint = new Point((tempArr[0].x + _mc.x), (tempArr[0].y + _mc.y));
} else {
MouseStyle.snapPoint = null;
};
};
displayLine();
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
private function addKnifeArr(_arg1:Sprite, _arg2:Array):void{
var _local3:Array;
_local3 = new Array(_arg1, _arg2.concat());
knifeArr.push(_local3);
}
private function initOpArea():void{
opArea = new Rectangle((0 - OPOFFSET), (-(_mc.height) - OPOFFSET), (_mc.width + (2 * OPOFFSET)), (_mc.height + (2 * OPOFFSET)));
}
private function initArr():void{
backArr = new Array();
tempArr = new Array();
forfexLineArr = new Array();
brushLineArr = new Array();
stamperArr = new Array();
knifeArr = new Array();
}
private function initMaterial():void{
setMaterial(manager.material);
}
public function stopBrush():void{
_mc.root.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownBrush);
_mc.root.removeEventListener(MouseEvent.ROLL_OVER, rollOverBrush);
}
public function setBgColor(_arg1:uint):void{
var _local2:int;
_local2 = (_cutArea.numChildren - 1);
while (_local2 >= 0) {
Method.setColorTransform((_cutArea.getChildAt(_local2) as Sprite), _arg1);
_local2--;
};
}
private function addForfexLineArr(_arg1:Sprite, _arg2:uint, _arg3:Point, _arg4:Point):void{
var _local5:Array;
_local5 = new Array(_arg1, _arg2, _arg3, _arg4);
forfexLineArr.push(_local5);
}
private function displayFill():void{
var _local1:int;
if (tempArr.length != 0){
setDrawTemp(_cutArea);
drawTemp.graphics.beginFill(manager.bgColor);
drawTemp.graphics.moveTo(tempArr[0].x, tempArr[0].y);
_local1 = 1;
while (_local1 < tempArr.length) {
drawTemp.graphics.lineTo(tempArr[_local1].x, tempArr[_local1].y);
_local1++;
};
drawTemp.graphics.endFill();
addBackArr(drawTemp);
addKnifeArr(drawTemp, tempArr);
};
}
private function judgeAcross(_arg1:Point, _arg2:Point, _arg3:Point, _arg4:Point):Point{
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local5 = ((_arg1.y - _arg2.y) / (_arg1.x - _arg2.x));
_local6 = (_arg1.y - (_local5 * _arg1.x));
_local7 = ((_arg3.y - _arg4.y) / (_arg3.x - _arg4.x));
_local8 = (_arg3.y - (_local7 * _arg3.x));
if (_local5 == _local7){
return (null);
};
_local9 = ((_local6 - _local8) / (_local7 - _local5));
_local10 = ((_local5 * _local9) + _local6);
if ((((((((((((((((_local9 < Math.max(_arg1.x, _arg2.x))) && ((_local9 > Math.min(_arg1.x, _arg2.x))))) && ((_local9 < Math.max(_arg3.x, _arg4.x))))) && ((_local9 > Math.min(_arg3.x, _arg4.x))))) && ((_local10 < Math.max(_arg1.y, _arg2.y))))) && ((_local10 > Math.min(_arg1.y, _arg2.y))))) && ((_local10 < Math.max(_arg3.y, _arg4.y))))) && ((_local10 > Math.min(_arg3.y, _arg4.y))))){
return (new Point(_local9, _local10));
};
return (null);
}
public function startKnife():void{
_mc.root.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownKnife);
_mc.root.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveKnife);
}
private function addBrushLineArr(_arg1:Sprite, _arg2:uint, _arg3:uint, _arg4:Point, _arg5:Point):void{
var _local6:Array;
_local6 = new Array(_arg1, _arg2, _arg3, _arg4, _arg5);
brushLineArr.push(_local6);
}
private function rollOverForfex(_arg1:MouseEvent):void{
if (_arg1.buttonDown){
setDrawTemp(_cutArea);
setInitPoint();
_mc.root.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
_mc.root.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
_mc.root.addEventListener(MouseEvent.ROLL_OUT, rollOut);
};
}
private function rollOut(_arg1:MouseEvent):void{
if (_arg1.buttonDown){
_mc.root.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
_mc.root.removeEventListener(MouseEvent.MOUSE_UP, mouseUp);
_mc.root.removeEventListener(MouseEvent.ROLL_OUT, rollOut);
if ((((drawTemp.width == 0)) && ((drawTemp.height == 0)))){
drawTemp.parent.removeChild(drawTemp);
drawTemp = null;
} else {
addBackArr(drawTemp);
};
};
}
private function mouseDownBrush(_arg1:MouseEvent):void{
setDrawTemp(_brushArea);
setInitPoint();
_mc.root.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
_mc.root.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
_mc.root.addEventListener(MouseEvent.ROLL_OUT, rollOut);
}
private function initMaterialPoint():void{
materialPoint = new Array();
switch (Data.mode){
case 1:
materialPoint.push(new Point(0, 0), new Point(0, -(_mc.height)), new Point(_mc.width, -(_mc.height)), new Point(_mc.width, 0));
break;
case 2:
materialPoint.push(new Point(0, 0), new Point(0, -(_mc.height)), new Point(_mc.width, -(_mc.height)));
break;
case 3:
materialPoint.push(new Point(0, 0), new Point(0, -(_mc.height)), new Point(_mc.width, -(_mc.height)));
break;
};
}
public function setExample(_arg1:Number):void{
var _local2:int;
var _local3:Sprite;
_local2 = 0;
while (_local2 < _material.numChildren) {
_material.removeChildAt(_local2);
_local2++;
};
if (_arg1 != 1){
_local3 = Attach.getSprite(((("Example_" + String(Data.mode)) + "_") + String(_arg1)));
_material.addChild(_local3);
_local3.height = HEIGHT;
_local3.scaleX = _local3.scaleY;
};
}
public function stopStamper():void{
_mc.root.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownStamper);
}
private function setDrawTemp(_arg1:Sprite):void{
drawTemp = new Sprite();
_arg1.addChild(drawTemp);
}
public function setMaterial(_arg1:Object):void{
var _local2:int;
var _local3:BitmapData;
var _local4:uint;
_material.graphics.clear();
if ((_arg1 is String)){
_local3 = Attach.getBitmapData((_arg1 as String));
_material.graphics.beginBitmapFill(_local3);
} else {
_local4 = (_arg1 as uint);
_material.graphics.beginFill(_local4);
};
_material.graphics.moveTo(materialPoint[0].x, materialPoint[0].y);
_local2 = 1;
while (_local2 < materialPoint.length) {
_material.graphics.lineTo(materialPoint[_local2].x, materialPoint[_local2].y);
_local2++;
};
_material.graphics.endFill();
}
public function stopKnife():void{
_mc.root.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownKnife);
_mc.root.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveKnife);
}
private function rollOverBrush(_arg1:MouseEvent):void{
if (_arg1.buttonDown){
setDrawTemp(_brushArea);
setInitPoint();
_mc.root.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
_mc.root.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
_mc.root.addEventListener(MouseEvent.ROLL_OUT, rollOut);
};
}
private function initMc():void{
_mc = Attach.getSprite(("EditStageMC" + String(Data.mode)));
manager.mc.addChild(_mc);
_mc.x = POSX;
_mc.y = POSY;
if (Data.mode == 3){
_mc.x = (_mc.x + 70);
};
_material = (_mc.getChildByName("material") as Sprite);
_brushArea = (_mc.getChildByName("brushArea") as Sprite);
_cutArea = (_mc.getChildByName("cutArea") as Sprite);
_displayLine = (_mc.getChildByName("displayLine") as Sprite);
}
public function stopForfex():void{
_mc.root.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownForfex);
_mc.root.removeEventListener(MouseEvent.ROLL_OVER, rollOverForfex);
}
private function displayLine():void{
var _local1:int;
var _local2:int;
_displayLine.graphics.clear();
if (tempArr.length != 0){
_displayLine.graphics.lineStyle(3, 0xFFFFFF, 0.3);
_displayLine.graphics.moveTo(tempArr[0].x, tempArr[0].y);
_local1 = 1;
while (_local1 < tempArr.length) {
_displayLine.graphics.lineTo(tempArr[_local1].x, tempArr[_local1].y);
_local1++;
};
_displayLine.graphics.lineTo((MouseStyle._mc.x - _mc.x), (MouseStyle._mc.y - _mc.y));
_displayLine.graphics.lineStyle(1, manager.bgColor, 1);
_displayLine.graphics.moveTo(tempArr[0].x, tempArr[0].y);
_local2 = 1;
while (_local2 < tempArr.length) {
_displayLine.graphics.lineTo(tempArr[_local2].x, tempArr[_local2].y);
_local2++;
};
_displayLine.graphics.lineTo((MouseStyle._mc.x - _mc.x), (MouseStyle._mc.y - _mc.y));
};
}
private function mouseDownStamper(_arg1:MouseEvent):void{
var _local2:Point;
var _local3:Sprite;
_local2 = new Point(_mc.mouseX, _mc.mouseY);
if (opArea.containsPoint(_local2)){
SoundsManager.playSound("Stampe");
_local3 = Attach.getSprite(manager.stamper);
_cutArea.addChild(_local3);
_local3.x = _local2.x;
_local3.y = _local2.y;
Method.setColorTransform(_local3, manager.bgColor);
addBackArr(_local3);
addStamperArr(_local3, manager.stamper, _local2);
};
}
public function startStamper():void{
_mc.root.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownStamper);
}
public function goBack():void{
var _local1:Sprite;
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
if (backArr.length > 0){
_local1 = backArr.pop();
_local1.parent.removeChild(_local1);
_local2 = 0;
while (_local2 < brushLineArr.length) {
if (_local1 == brushLineArr[_local2][0]){
brushLineArr.splice(_local2, 1);
_local2--;
};
_local2++;
};
_local3 = 0;
while (_local3 < forfexLineArr.length) {
if (_local1 == forfexLineArr[_local3][0]){
forfexLineArr.splice(_local3, 1);
_local3--;
};
_local3++;
};
_local4 = 0;
while (_local4 < stamperArr.length) {
if (_local1 == stamperArr[_local4][0]){
stamperArr.splice(_local4, 1);
_local4--;
};
_local4++;
};
_local5 = 0;
while (_local5 < knifeArr.length) {
if (_local1 == knifeArr[_local5][0]){
knifeArr.splice(_local5, 1);
_local5--;
};
_local5++;
};
};
}
private function mouseDownForfex(_arg1:MouseEvent):void{
setDrawTemp(_cutArea);
setInitPoint();
_mc.root.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
_mc.root.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
_mc.root.addEventListener(MouseEvent.ROLL_OUT, rollOut);
}
}
}//package ui.edit
Section 44
//StamperBox (ui.edit.StamperBox)
package ui.edit {
import flash.display.*;
import flash.events.*;
import ui.*;
import tool.*;
import sounds.*;
public class StamperBox {
private const POSX:Number = 275;
private const POSY:Number = 414;
private var _currentIcon:MovieClip;
private var _stamper1:Sprite;
private var _stamper2:Sprite;
private var _stamper3:Sprite;
private var _stamper4:Sprite;
private var _stamper5:Sprite;
private var _stamper6:Sprite;
private var manager:Manager;
private var _mc:Sprite;
public function StamperBox(_arg1:Manager):void{
manager = _arg1;
initMc();
initEvent();
}
public function del():void{
removeEvent();
removeMc();
}
private function initMc():void{
_mc = Attach.getSprite("StamperBoxMC");
manager.mc.addChild(_mc);
_mc.x = POSX;
_mc.y = POSY;
_currentIcon = (_mc.getChildByName("currentIcon") as MovieClip);
_stamper1 = (_mc.getChildByName("stamper1") as Sprite);
_stamper2 = (_mc.getChildByName("stamper2") as Sprite);
_stamper3 = (_mc.getChildByName("stamper3") as Sprite);
_stamper4 = (_mc.getChildByName("stamper4") as Sprite);
_stamper5 = (_mc.getChildByName("stamper5") as Sprite);
_stamper6 = (_mc.getChildByName("stamper6") as Sprite);
}
private function rollOutMc(_arg1:MouseEvent):void{
MouseStyle.stamperMode(manager.stamper);
}
private function mouseDownMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _stamper1:
SoundsManager.playSound("RightIconPress");
manager.setStamper("Stamper1");
break;
case _stamper2:
SoundsManager.playSound("RightIconPress");
manager.setStamper("Stamper2");
break;
case _stamper3:
SoundsManager.playSound("RightIconPress");
manager.setStamper("Stamper3");
break;
case _stamper4:
SoundsManager.playSound("RightIconPress");
manager.setStamper("Stamper4");
break;
case _stamper5:
SoundsManager.playSound("RightIconPress");
manager.setStamper("Stamper5");
break;
case _stamper6:
SoundsManager.playSound("RightIconPress");
manager.setStamper("Stamper6");
break;
};
}
private function rollOverMc(_arg1:MouseEvent):void{
MouseStyle.handleMode();
}
public function setStamper(_arg1:String):void{
_currentIcon.gotoAndPlay(1);
switch (_arg1){
case "Stamper1":
_currentIcon.x = _stamper1.x;
_currentIcon.y = _stamper1.y;
break;
case "Stamper2":
_currentIcon.x = _stamper2.x;
_currentIcon.y = _stamper2.y;
break;
case "Stamper3":
_currentIcon.x = _stamper3.x;
_currentIcon.y = _stamper3.y;
break;
case "Stamper4":
_currentIcon.x = _stamper4.x;
_currentIcon.y = _stamper4.y;
break;
case "Stamper5":
_currentIcon.x = _stamper5.x;
_currentIcon.y = _stamper5.y;
break;
case "Stamper6":
_currentIcon.x = _stamper6.x;
_currentIcon.y = _stamper6.y;
break;
};
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.ROLL_OVER, rollOverMc);
_mc.addEventListener(MouseEvent.ROLL_OUT, rollOutMc);
_mc.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownMc);
}
private function removeEvent():void{
_mc.removeEventListener(MouseEvent.ROLL_OVER, rollOverMc);
_mc.removeEventListener(MouseEvent.ROLL_OUT, rollOutMc);
_mc.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownMc);
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
}
}//package ui.edit
Section 45
//Tool (ui.edit.Tool)
package ui.edit {
import flash.display.*;
import flash.events.*;
import ui.*;
import tool.*;
import sounds.*;
public class Tool {
private const SPEED:Number = 0.4;
private var _material:SimpleButton;
private var _newStart:SimpleButton;
private var _knife:SimpleButton;
private var _example:SimpleButton;
private var manager:Manager;
private var _mc:Sprite;
private var _colorTray:Sprite;
private var _brush:MovieClip;
private var _back:SimpleButton;
private var _color1:SimpleButton;
private var _color3:SimpleButton;
private var _color4:SimpleButton;
private var _color5:SimpleButton;
private var _color6:SimpleButton;
private var _color7:SimpleButton;
private var _color8:SimpleButton;
private var _color2:SimpleButton;
private var _show:SimpleButton;
private var _forfex:SimpleButton;
private var _bg:Sprite;
private var allowRotation:Boolean;
private var _stamper:SimpleButton;
private var _backChoose:SimpleButton;
public function Tool(_arg1:Manager){
allowRotation = true;
manager = _arg1;
initMc();
initEvent();
setBrushColor(manager.brushColor);
setBgColor(manager.bgColor);
}
public function clickKnife():void{
manager.startKnife();
displayButton();
_knife.visible = false;
}
private function removeEvent():void{
_mc.removeEventListener(MouseEvent.CLICK, clickMc);
_mc.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverMc);
_mc.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutMc);
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameMc);
_colorTray.removeEventListener(MouseEvent.ROLL_OVER, rollOverMc);
_colorTray.removeEventListener(MouseEvent.ROLL_OUT, rollOutMc);
}
public function del():void{
removeEvent();
removeMc();
}
private function rollOutMc(_arg1:MouseEvent):void{
MouseStyle.delHelp();
revertMouseStyle();
allowRotation = true;
}
private function revertMouseStyle():void{
switch (manager.state){
case "brush":
MouseStyle.brushMode(manager.brushColor);
break;
case "forfex":
MouseStyle.forfexMode();
break;
case "knife":
MouseStyle.knifeMode();
break;
case "stamper":
MouseStyle.stamperMode(manager.stamper);
break;
case "material":
break;
case "example":
break;
};
}
public function clickBrush():void{
manager.startBrush();
displayButton();
_brush.visible = false;
}
private function displayButton():void{
_brush.visible = true;
_forfex.visible = true;
_knife.visible = true;
_stamper.visible = true;
}
private function setMouseStyle():void{
MouseStyle.handleMode();
}
private function mouseOverMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _example:
SoundsManager.playSound("SelectTouch");
setMouseStyle();
MouseStyle.setHelp(1);
break;
case _material:
SoundsManager.playSound("SelectTouch");
setMouseStyle();
MouseStyle.setHelp(2);
break;
case _forfex:
SoundsManager.playSound("Forfex");
setMouseStyle();
MouseStyle.setHelp(3);
break;
case _brush:
SoundsManager.playSound("Brush");
_brush.scaleX = 1.1;
_brush.scaleY = 1.1;
setMouseStyle();
MouseStyle.setHelp(4);
break;
case _knife:
SoundsManager.playSound("Knife");
setMouseStyle();
MouseStyle.setHelp(5);
break;
case _stamper:
SoundsManager.playSound("Stampe");
setMouseStyle();
MouseStyle.setHelp(6);
break;
case _back:
SoundsManager.playSound("SelectTouch");
setMouseStyle();
MouseStyle.setHelp(7);
break;
case _newStart:
SoundsManager.playSound("SelectTouch");
setMouseStyle();
MouseStyle.setHelp(8);
break;
case _show:
SoundsManager.playSound("SelectTouch");
setMouseStyle();
MouseStyle.setHelp(9);
break;
case _backChoose:
SoundsManager.playSound("ButtonTouch");
setMouseStyle();
MouseStyle.setHelp(10);
break;
};
}
public function clickStamper():void{
manager.startStamper();
displayButton();
_stamper.visible = false;
}
public function setVisible(_arg1:Boolean):void{
_mc.visible = _arg1;
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
public function clickExample():void{
manager.startExample();
displayButton();
}
private function clickMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _material:
SoundsManager.playSound("Select");
clickMaterial();
break;
case _brush:
MouseStyle.delHelp();
SoundsManager.playSound("Select");
clickBrush();
break;
case _forfex:
MouseStyle.delHelp();
SoundsManager.playSound("Select");
clickForfex();
break;
case _knife:
MouseStyle.delHelp();
SoundsManager.playSound("Select");
clickKnife();
break;
case _stamper:
MouseStyle.delHelp();
SoundsManager.playSound("Select");
clickStamper();
break;
case _example:
SoundsManager.playSound("Select");
clickExample();
break;
case _back:
SoundsManager.playSound("Select");
manager.goBack();
break;
case _newStart:
MouseStyle.delHelp();
SoundsManager.playSound("Select");
manager.newStart();
break;
case _show:
MouseStyle.delHelp();
SoundsManager.playSound("Select");
manager.startShow();
break;
case _backChoose:
MouseStyle.delHelp();
SoundsManager.playSound("MenuBack");
manager.backChoose();
break;
case _color1:
manager.setBgColor(3844310);
break;
case _color2:
manager.setBgColor(12490218);
break;
case _color3:
manager.setBgColor(16374628);
break;
case _color4:
manager.setBgColor(16688718);
break;
case _color5:
manager.setBgColor(5816428);
break;
case _color6:
manager.setBgColor(12740501);
break;
case _color7:
manager.setBgColor(8938573);
break;
case _color8:
manager.setBgColor(4491673);
break;
};
}
public function setBrushColor(_arg1:uint):void{
switch (_arg1){
case 3459067:
_brush.gotoAndStop(1);
break;
case 3365879:
_brush.gotoAndStop(2);
break;
case 11429623:
_brush.gotoAndStop(3);
break;
case 16735999:
_brush.gotoAndStop(4);
break;
case 16735838:
_brush.gotoAndStop(5);
break;
case 12543552:
_brush.gotoAndStop(6);
break;
case 16751966:
_brush.gotoAndStop(7);
break;
case 16772702:
_brush.gotoAndStop(8);
break;
case 7339870:
_brush.gotoAndStop(9);
break;
case 1294732:
_brush.gotoAndStop(10);
break;
case 0xFFFFFF:
_brush.gotoAndStop(11);
break;
case 0x8C8C8C:
_brush.gotoAndStop(12);
break;
case 0x373737:
_brush.gotoAndStop(13);
break;
};
}
public function clickForfex():void{
manager.startForfex();
displayButton();
_forfex.visible = false;
}
private function mouseOutMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _example:
MouseStyle.delHelp();
revertMouseStyle();
break;
case _material:
MouseStyle.delHelp();
revertMouseStyle();
break;
case _forfex:
MouseStyle.delHelp();
revertMouseStyle();
break;
case _brush:
MouseStyle.delHelp();
_brush.scaleX = 1;
_brush.scaleY = 1;
revertMouseStyle();
break;
case _knife:
MouseStyle.delHelp();
revertMouseStyle();
break;
case _stamper:
MouseStyle.delHelp();
revertMouseStyle();
break;
case _back:
MouseStyle.delHelp();
revertMouseStyle();
break;
case _newStart:
MouseStyle.delHelp();
revertMouseStyle();
break;
case _show:
MouseStyle.delHelp();
if (manager.show == null){
revertMouseStyle();
};
break;
case _backChoose:
MouseStyle.delHelp();
revertMouseStyle();
break;
};
}
public function setBgColor(_arg1:uint):void{
Method.setColorTransform(_bg, _arg1);
}
private function initMc():void{
_mc = Attach.getSprite("EditToolMC");
manager.mc.addChild(_mc);
_bg = (_mc.getChildByName("bg") as Sprite);
_example = (_mc.getChildByName("example") as SimpleButton);
_material = (_mc.getChildByName("material") as SimpleButton);
_forfex = (_mc.getChildByName("forfex") as SimpleButton);
_brush = (_mc.getChildByName("brush") as MovieClip);
_brush.mouseChildren = false;
_knife = (_mc.getChildByName("knife") as SimpleButton);
_stamper = (_mc.getChildByName("stamper") as SimpleButton);
_back = (_mc.getChildByName("back") as SimpleButton);
_newStart = (_mc.getChildByName("newStart") as SimpleButton);
_show = (_mc.getChildByName("show") as SimpleButton);
_backChoose = (_mc.getChildByName("backChoose") as SimpleButton);
_colorTray = (_mc.getChildByName("colorTray") as Sprite);
_color1 = (_colorTray.getChildByName("color1") as SimpleButton);
_color2 = (_colorTray.getChildByName("color2") as SimpleButton);
_color3 = (_colorTray.getChildByName("color3") as SimpleButton);
_color4 = (_colorTray.getChildByName("color4") as SimpleButton);
_color5 = (_colorTray.getChildByName("color5") as SimpleButton);
_color6 = (_colorTray.getChildByName("color6") as SimpleButton);
_color7 = (_colorTray.getChildByName("color7") as SimpleButton);
_color8 = (_colorTray.getChildByName("color8") as SimpleButton);
}
private function enterFrameMc(_arg1:Event):void{
if (allowRotation){
_colorTray.rotation = (_colorTray.rotation + SPEED);
};
}
private function rollOverMc(_arg1:MouseEvent):void{
setMouseStyle();
allowRotation = false;
MouseStyle.setHelp(11);
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.CLICK, clickMc);
_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMc);
_mc.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMc);
_mc.addEventListener(Event.ENTER_FRAME, enterFrameMc);
_colorTray.addEventListener(MouseEvent.ROLL_OVER, rollOverMc);
_colorTray.addEventListener(MouseEvent.ROLL_OUT, rollOutMc);
}
public function clickMaterial():void{
manager.startMaterial();
displayButton();
}
}
}//package ui.edit
Section 46
//Choose (ui.Choose)
package ui {
import flash.display.*;
import flash.events.*;
import manager.*;
import data.*;
import tool.*;
import sounds.*;
import flash.net.*;
public class Choose {
private const SPEED:Number = 0.7;
private var _logo:MovieClip;
private var _ani:MovieClip;
private var _wheelBG:Sprite;
private var _aniBG:Sprite;
private var _mc:Sprite;
private var _btn3:Sprite;
private var _btn1:Sprite;
private var _btn2:Sprite;
private var _back:SimpleButton;
private var _stopCurr:SimpleButton;
private var _next:SimpleButton;
private var _currentIcon:MovieClip;
private var _wheel:Sprite;
private var _playFirst:SimpleButton;
private var _playCurr:SimpleButton;
private var game:Game;
private var pause:Boolean;
public function Choose(_arg1:Game):void{
game = _arg1;
initMc();
initEvent();
setCurrrent();
}
public function startChooseAni():void{
_wheel.x = _wheelBG.x;
setPause(false);
}
public function del():void{
removeEvent();
removeMc();
}
private function mouseOverMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _next:
SoundsManager.playSound("ButtonTouch");
break;
case _back:
SoundsManager.playSound("ButtonTouch");
MouseStyle.setHelp(10);
break;
case _playFirst:
SoundsManager.playSound("ButtonTouch");
MouseStyle.setHelp(13);
break;
case _playCurr:
SoundsManager.playSound("ButtonTouch");
MouseStyle.setHelp(12);
break;
case _stopCurr:
SoundsManager.playSound("ButtonTouch");
MouseStyle.setHelp(14);
break;
};
}
private function setMode(_arg1:int):void{
Data.mode = _arg1;
}
private function initAni():void{
_ani = Attach.getMovieClip(String(("Ani" + String(Data.mode))));
_mc.addChild(_ani);
_ani.x = _aniBG.x;
_ani.y = _aniBG.y;
}
private function mouseDownWheel(_arg1:MouseEvent):void{
setPause(true);
_mc.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveMc);
_mc.addEventListener(MouseEvent.MOUSE_UP, mouseUpMc);
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
private function clickMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _btn1:
SoundsManager.playSound("RightIconPress");
setMode(1);
setCurrrent();
break;
case _btn2:
SoundsManager.playSound("RightIconPress");
setMode(2);
setCurrrent();
break;
case _btn3:
SoundsManager.playSound("RightIconPress");
setMode(3);
setCurrrent();
break;
case _next:
SoundsManager.playSound("MenuPress");
game.startEdit();
break;
case _back:
MouseStyle.delHelp();
SoundsManager.playSound("MenuBack");
game.backMain();
break;
case _playFirst:
SoundsManager.playSound("ButtonPress");
_wheel.x = _wheelBG.x;
setPause(true);
break;
case _playCurr:
SoundsManager.playSound("ButtonPress");
setPause(false);
break;
case _stopCurr:
SoundsManager.playSound("ButtonPress");
setPause(true);
break;
case _wheelBG:
setPause(true);
setWheelPos();
break;
case _logo:
navigateToURL(new URLRequest(Language.moreGameLink), "_blank");
break;
};
}
private function removeAni():void{
if (_ani != null){
_mc.removeChild(_ani);
_ani = null;
};
}
private function setPause(_arg1:Boolean):void{
pause = _arg1;
}
private function mouseMoveMc(_arg1:MouseEvent):void{
setWheelPos();
}
private function initMc():void{
_mc = Attach.getSprite("ChooseMC");
game.mc.addChild(_mc);
_btn1 = (_mc.getChildByName("btn1") as Sprite);
_btn1.mouseChildren = false;
_btn2 = (_mc.getChildByName("btn2") as Sprite);
_btn2.mouseChildren = false;
_btn3 = (_mc.getChildByName("btn3") as Sprite);
_btn3.mouseChildren = false;
_next = (_mc.getChildByName("next") as SimpleButton);
_back = (_mc.getChildByName("back") as SimpleButton);
_aniBG = (_mc.getChildByName("aniBG") as Sprite);
_wheel = (_mc.getChildByName("wheel") as Sprite);
_wheelBG = (_mc.getChildByName("wheelBG") as Sprite);
_playFirst = (_mc.getChildByName("playFirst") as SimpleButton);
_playCurr = (_mc.getChildByName("playCurr") as SimpleButton);
_stopCurr = (_mc.getChildByName("stopCurr") as SimpleButton);
_currentIcon = (_mc.getChildByName("currentIcon") as MovieClip);
_logo = (_mc.getChildByName("logo") as MovieClip);
_logo.mouseChildren = false;
_logo.gotoAndStop(Language.frame_logo);
}
private function setCurrentIcon():void{
switch (Data.mode){
case 1:
_currentIcon.x = _btn1.x;
_currentIcon.y = _btn1.y;
break;
case 2:
_currentIcon.x = _btn2.x;
_currentIcon.y = _btn2.y;
break;
case 3:
_currentIcon.x = _btn3.x;
_currentIcon.y = _btn3.y;
break;
};
_currentIcon.gotoAndPlay(1);
}
private function mouseUpMc(_arg1:MouseEvent):void{
_mc.removeEventListener(MouseEvent.MOUSE_MOVE, mouseMoveMc);
_mc.removeEventListener(MouseEvent.MOUSE_UP, mouseUpMc);
}
private function mouseOutMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _back:
MouseStyle.delHelp();
case _playFirst:
MouseStyle.delHelp();
break;
case _playCurr:
MouseStyle.delHelp();
break;
case _stopCurr:
MouseStyle.delHelp();
break;
};
}
private function enterFrameMc(_arg1:Event):void{
var _local2:Number;
if (!pause){
_wheel.x = (_wheel.x + ((SPEED / _ani.totalFrames) * _wheelBG.width));
if (_wheel.x > ((_wheelBG.x + _wheelBG.width) - _wheel.width)){
_wheel.x = ((_wheelBG.x + _wheelBG.width) - _wheel.width);
setPause(true);
};
};
_local2 = ((_wheel.x - _wheelBG.x) / (_wheelBG.width - _wheel.width));
_ani.gotoAndStop(Math.round((_local2 * _ani.totalFrames)));
}
private function setCurrrent():void{
setCurrentIcon();
removeAni();
initAni();
_wheel.x = _wheelBG.x;
setPause(false);
}
private function removeEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameMc);
_mc.removeEventListener(MouseEvent.CLICK, clickMc);
_mc.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverMc);
_mc.removeEventListener(MouseEvent.MOUSE_OUT, mouseOutMc);
_wheel.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownWheel);
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, enterFrameMc);
_mc.addEventListener(MouseEvent.CLICK, clickMc);
_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMc);
_mc.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMc);
_wheel.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownWheel);
}
private function setWheelPos():void{
_wheel.x = (_mc.mouseX - (_wheel.width / 2));
if (_wheel.x < _wheelBG.x){
_wheel.x = _wheelBG.x;
} else {
if (_wheel.x > ((_wheelBG.x + _wheelBG.width) - _wheel.width)){
_wheel.x = ((_wheelBG.x + _wheelBG.width) - _wheel.width);
};
};
}
}
}//package ui
Section 47
//Cutting (ui.Cutting)
package ui {
import flash.display.*;
import flash.events.*;
import manager.*;
import tool.*;
public class Cutting {
private var _container:Sprite;
private var parent:Sprite;
private var game:Game;
private var _mc:MovieClip;
public function Cutting(_arg1:Sprite, _arg2:Game=null){
parent = _arg1;
game = _arg2;
initMc();
initEvent();
}
private function enterFrameMc(_arg1:Event):void{
if (_mc.parent.getChildIndex(_mc) != (_mc.parent.numChildren - 2)){
_mc.parent.setChildIndex(_mc, (_mc.parent.numChildren - 2));
};
if (_mc.currentFrame == _mc.totalFrames){
if (game != null){
game.startChooseAni();
};
del();
};
}
private function initMc():void{
var _local1:BitmapData;
var _local2:Bitmap;
_mc = Attach.getMovieClip("CuttingMC");
parent.addChild(_mc);
_mc.parent.setChildIndex(_mc, (_mc.parent.numChildren - 2));
MouseStyle._mc.visible = false;
_local1 = new BitmapData(parent.width, parent.height);
_local1.draw(parent);
MouseStyle._mc.visible = true;
_container = (_mc.getChildByName("container") as Sprite);
_local2 = new Bitmap(_local1);
_container.addChild(_local2);
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
}
private function removeEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameMc);
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, enterFrameMc);
}
private function del():void{
removeEvent();
removeMc();
}
}
}//package ui
Section 48
//Edit (ui.Edit)
package ui {
import manager.*;
import ui.edit.*;
public class Edit {
public var game:Game;
private var manager:Manager;
public function Edit(_arg1:Game):void{
game = _arg1;
initManager();
}
private function removeManager():void{
manager.del();
manager = null;
}
public function del():void{
removeManager();
}
private function initManager():void{
manager = new Manager(this);
}
}
}//package ui
Section 49
//Loading (ui.Loading)
package ui {
import flash.display.*;
import flash.events.*;
import manager.*;
import data.*;
import flash.text.*;
import tool.*;
import flash.net.*;
public final class Loading {
private var _loadingTxt:TextField;
private var _colorTray:Sprite;
private var _logo:MovieClip;
private var _bar:Sprite;
private var _lightTray:Sprite;
private var game:Game;
private var _mc:Sprite;
private var _loading:Sprite;
public function Loading(_arg1:Game){
game = _arg1;
initMc();
initEvent();
}
private function initMc():void{
_mc = Attach.getSprite("LoadingMC");
game.mc.addChild(_mc);
_loading = (_mc.getChildByName("loading") as Sprite);
_bar = (_loading.getChildByName("bar") as Sprite);
_loadingTxt = (_mc.getChildByName("loadingTxt") as TextField);
_colorTray = (_mc.getChildByName("colorTray") as Sprite);
_lightTray = (_mc.getChildByName("lightTray") as Sprite);
_logo = (_mc.getChildByName("logo") as MovieClip);
_logo.mouseChildren = false;
_logo.gotoAndStop(Language.frame_logo);
}
public function del():void{
removeEvent();
removeMc();
}
private function enterFrameMc(_arg1:Event):void{
var _local2:Number;
_colorTray.rotation = (_colorTray.rotation + 0.25);
_lightTray.rotation = (_lightTray.rotation - 0.3);
_local2 = (game.mc.loaderInfo.bytesLoaded / game.mc.loaderInfo.bytesTotal);
_bar.scaleX = _local2;
_loadingTxt.text = String((Math.round((_local2 * 100)) + "%"));
if (_local2 == 1){
game.startMain();
};
}
private function initEvent():void{
_mc.addEventListener(Event.ENTER_FRAME, enterFrameMc);
_mc.addEventListener(MouseEvent.CLICK, clickMc);
}
private function removeEvent():void{
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameMc);
_mc.removeEventListener(MouseEvent.CLICK, clickMc);
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
private function clickMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _logo:
navigateToURL(new URLRequest(Language.moreGameLink), "_blank");
break;
};
}
}
}//package ui
Section 50
//Main (ui.Main)
package ui {
import flash.display.*;
import flash.events.*;
import manager.*;
import data.*;
import tool.*;
import sounds.*;
import flash.net.*;
public class Main {
private var _startGame:SimpleButton;
private var _logo:MovieClip;
private var _lightTray:Sprite;
private var game:Game;
private var _soundControl:MovieClip;
private var _mc:Sprite;
private var _freeGames:SimpleButton;
private var _colorTray:Sprite;
private var _moreGames:SimpleButton;
public function Main(_arg1:Game):void{
game = _arg1;
initMc();
initEvent();
}
private function initMc():void{
_mc = Attach.getSprite("MainMC");
game.mc.addChild(_mc);
_startGame = (_mc.getChildByName("startGame") as SimpleButton);
_moreGames = (_mc.getChildByName("moreGames") as SimpleButton);
_freeGames = (_mc.getChildByName("freeGames") as SimpleButton);
_colorTray = (_mc.getChildByName("colorTray") as Sprite);
_lightTray = (_mc.getChildByName("lightTray") as Sprite);
_logo = (_mc.getChildByName("logo") as MovieClip);
_logo.mouseChildren = false;
_logo.gotoAndStop(Language.frame_logo);
_soundControl = (_mc.getChildByName("soundControl") as MovieClip);
if (SoundsManager.enabled){
_soundControl.gotoAndStop(1);
} else {
_soundControl.gotoAndStop(2);
};
}
private function removeMc():void{
_mc.parent.removeChild(_mc);
_mc = null;
}
public function del():void{
removeEvent();
removeMc();
}
private function mouseOverMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _startGame:
SoundsManager.playSound("MenuTouch");
break;
case _moreGames:
SoundsManager.playSound("MenuTouch");
break;
case _freeGames:
SoundsManager.playSound("MenuTouch");
break;
};
}
private function enterFrameMc(_arg1:Event):void{
_colorTray.rotation = (_colorTray.rotation + 0.25);
_lightTray.rotation = (_lightTray.rotation - 0.3);
}
private function initEvent():void{
_mc.addEventListener(MouseEvent.CLICK, clickMc);
_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMc);
_mc.addEventListener(Event.ENTER_FRAME, enterFrameMc);
}
private function removeEvent():void{
_mc.removeEventListener(MouseEvent.CLICK, clickMc);
_mc.removeEventListener(MouseEvent.MOUSE_OVER, mouseOverMc);
_mc.removeEventListener(Event.ENTER_FRAME, enterFrameMc);
}
private function clickMc(_arg1:MouseEvent):void{
switch (_arg1.target){
case _startGame:
game.startChoose();
SoundsManager.playSound("MenuPress");
break;
case _moreGames:
SoundsManager.playSound("MenuPress");
navigateToURL(new URLRequest(Language.moreGameLink), "_blank");
break;
case _freeGames:
SoundsManager.playSound("MenuPress");
navigateToURL(new URLRequest(Language.freeGameLink), "_blank");
break;
case _logo:
navigateToURL(new URLRequest(Language.moreGameLink), "_blank");
break;
case _soundControl:
if (_soundControl.currentFrame == 1){
_soundControl.gotoAndStop(2);
SoundsManager.setEnabled(false);
} else {
_soundControl.gotoAndStop(1);
SoundsManager.setEnabled(true);
};
break;
};
}
}
}//package ui
Section 51
//MouseStyle (ui.MouseStyle)
package ui {
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import tool.*;
import flash.ui.*;
public class MouseStyle {
private var parent:MovieClip;
private static var help:MovieClip;
public static var snapPoint:Point;
public static var style:String;
public static var _mc:Sprite;
public function MouseStyle(_arg1:MovieClip):void{
parent = _arg1;
hideMouse();
initMc();
initEvent();
handleMode();
}
private function hideMouse():void{
Mouse.hide();
}
private function initMc():void{
_mc = new Sprite();
parent.addChild(_mc);
_mc.x = _mc.parent.mouseX;
_mc.y = _mc.parent.mouseY;
_mc.mouseEnabled = false;
_mc.mouseChildren = false;
_mc.parent.setChildIndex(_mc, (_mc.parent.numChildren - 1));
}
private function initEvent():void{
_mc.root.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveMc);
_mc.root.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownMc);
_mc.root.addEventListener(Event.ENTER_FRAME, enterFrameMc);
}
private function enterFrameMc(_arg1:Event):void{
if (_mc.parent.getChildIndex(_mc) != (_mc.parent.numChildren - 1)){
_mc.parent.setChildIndex(_mc, (_mc.parent.numChildren - 1));
};
}
private function mouseMoveMc(_arg1:MouseEvent):void{
if (snapPoint != null){
_mc.x = snapPoint.x;
_mc.y = snapPoint.y;
} else {
_mc.x = _mc.parent.mouseX;
_mc.y = _mc.parent.mouseY;
};
_arg1.updateAfterEvent();
}
private function mouseDownMc(_arg1:MouseEvent):void{
hideMouse();
}
public static function stamperMode(_arg1:String):void{
var _local2:MovieClip;
removeMouse();
_local2 = Attach.getMovieClip("StamperMouse");
_mc.addChild(_local2);
style = "StamperMouse";
switch (_arg1){
case "Stamper1":
_local2.gotoAndStop(1);
break;
case "Stamper2":
_local2.gotoAndStop(2);
break;
case "Stamper3":
_local2.gotoAndStop(3);
break;
case "Stamper4":
_local2.gotoAndStop(4);
break;
case "Stamper5":
_local2.gotoAndStop(5);
break;
case "Stamper6":
_local2.gotoAndStop(6);
break;
};
}
public static function setHelp(_arg1:int):void{
help = Attach.getMovieClip("Help");
_mc.addChild(help);
help.gotoAndStop(_arg1);
help.x = 30;
help.y = 25;
}
public static function knifeMode():void{
var _local1:MovieClip;
removeMouse();
_local1 = Attach.getMovieClip("KnifeMouse");
_mc.addChild(_local1);
style = "KnifeMouse";
}
public static function handleMode():void{
var _local1:MovieClip;
removeMouse();
_local1 = Attach.getMovieClip("HandleMouse");
_mc.addChild(_local1);
style = "HandleMouse";
}
private static function removeMouse():void{
var _local1:int;
_local1 = 0;
while (_local1 < _mc.numChildren) {
_mc.removeChildAt(_local1);
_local1++;
};
style = "";
}
public static function forfexMode():void{
var _local1:MovieClip;
removeMouse();
_local1 = Attach.getMovieClip("ForfexMouse");
_mc.addChild(_local1);
style = "ForfexMouse";
}
public static function delHelp():void{
if (help != null){
help.parent.removeChild(help);
help = null;
};
}
public static function brushMode(_arg1:uint):void{
var _local2:MovieClip;
removeMouse();
_local2 = Attach.getMovieClip("BrushMouse");
_mc.addChild(_local2);
style = "BrushMouse";
switch (_arg1){
case 3459067:
_local2.gotoAndStop(1);
break;
case 3365879:
_local2.gotoAndStop(2);
break;
case 11429623:
_local2.gotoAndStop(3);
break;
case 16735999:
_local2.gotoAndStop(4);
break;
case 16735838:
_local2.gotoAndStop(5);
break;
case 12543552:
_local2.gotoAndStop(6);
break;
case 16751966:
_local2.gotoAndStop(7);
break;
case 16772702:
_local2.gotoAndStop(8);
break;
case 7339870:
_local2.gotoAndStop(9);
break;
case 1294732:
_local2.gotoAndStop(10);
break;
case 0xFFFFFF:
_local2.gotoAndStop(11);
break;
case 0x8C8C8C:
_local2.gotoAndStop(12);
break;
case 0x373737:
_local2.gotoAndStop(13);
break;
};
}
}
}//package ui
Section 52
//Ani1 (Ani1)
package {
import flash.display.*;
public dynamic class Ani1 extends MovieClip {
public function Ani1(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package
Section 53
//Ani2 (Ani2)
package {
import flash.display.*;
public dynamic class Ani2 extends MovieClip {
}
}//package
Section 54
//Ani3 (Ani3)
package {
import flash.display.*;
public dynamic class Ani3 extends MovieClip {
public function Ani3(){
addFrameScript(67, frame68);
}
function frame68(){
stop();
}
}
}//package
Section 55
//Brush (Brush)
package {
import flash.media.*;
public dynamic class Brush extends Sound {
}
}//package
Section 56
//BrushMouse (BrushMouse)
package {
import flash.display.*;
public dynamic class BrushMouse extends MovieClip {
}
}//package
Section 57
//ButtonPress (ButtonPress)
package {
import flash.media.*;
public dynamic class ButtonPress extends Sound {
}
}//package
Section 58
//ButtonTouch (ButtonTouch)
package {
import flash.media.*;
public dynamic class ButtonTouch extends Sound {
}
}//package
Section 59
//ChooseMC (ChooseMC)
package {
import flash.display.*;
public dynamic class ChooseMC extends MovieClip {
public var playFirst:SimpleButton;
public var next:SimpleButton;
public var aniBG:MovieClip;
public var btn3:MovieClip;
public var wheel:MovieClip;
public var stopCurr:SimpleButton;
public var btn1:MovieClip;
public var btn2:MovieClip;
public var playCurr:SimpleButton;
public var currentIcon:MovieClip;
public var logo:MovieClip;
public var wheelBG:MovieClip;
public var back:SimpleButton;
}
}//package
Section 60
//CuttingMC (CuttingMC)
package {
import flash.display.*;
public dynamic class CuttingMC extends MovieClip {
public var container:MovieClip;
public function CuttingMC(){
addFrameScript(62, frame63);
}
function frame63(){
stop();
}
}
}//package
Section 61
//EditBrushBoxMC (EditBrushBoxMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class EditBrushBoxMC extends MovieClip {
public var color1:MovieClip;
public var color3:MovieClip;
public var color4:MovieClip;
public var color5:MovieClip;
public var color6:MovieClip;
public var color8:MovieClip;
public var color2:MovieClip;
public var color7:MovieClip;
public var color9:MovieClip;
public var txt:TextField;
public var currentIcon:MovieClip;
public var color10:MovieClip;
public var color11:MovieClip;
public var color13:MovieClip;
public var scroll:MovieClip;
public var color12:MovieClip;
public var scrollBg:MovieClip;
public var show:MovieClip;
}
}//package
Section 62
//EditExampleBoxMC (EditExampleBoxMC)
package {
import flash.display.*;
public dynamic class EditExampleBoxMC extends MovieClip {
public var example2:MovieClip;
public var example3:MovieClip;
public var example5:MovieClip;
public var example7:MovieClip;
public var example1:MovieClip;
public var example6:MovieClip;
public var example4:MovieClip;
public var currentIcon:MovieClip;
}
}//package
Section 63
//EditForfexBoxMC (EditForfexBoxMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class EditForfexBoxMC extends MovieClip {
public var txt:TextField;
public var scroll:MovieClip;
public var scrollBg:MovieClip;
public var show:MovieClip;
}
}//package
Section 64
//EditKnifeBoxMC (EditKnifeBoxMC)
package {
import flash.display.*;
public dynamic class EditKnifeBoxMC extends MovieClip {
}
}//package
Section 65
//EditMaterialBoxMC (EditMaterialBoxMC)
package {
import flash.display.*;
public dynamic class EditMaterialBoxMC extends MovieClip {
public var materail7:MovieClip;
public var materail9:MovieClip;
public var materail5:MovieClip;
public var materail8:MovieClip;
public var materail1:MovieClip;
public var materail3:MovieClip;
public var color0:MovieClip;
public var color1:MovieClip;
public var color3:MovieClip;
public var color4:MovieClip;
public var color5:MovieClip;
public var color6:MovieClip;
public var color8:MovieClip;
public var color2:MovieClip;
public var color7:MovieClip;
public var color9:MovieClip;
public var materail10:MovieClip;
public var materail12:MovieClip;
public var materail2:MovieClip;
public var currentIcon:MovieClip;
public var materail11:MovieClip;
public var color10:MovieClip;
public var color11:MovieClip;
public var color13:MovieClip;
public var color12:MovieClip;
public var materail4:MovieClip;
public var materail6:MovieClip;
}
}//package
Section 66
//EditStageMC1 (EditStageMC1)
package {
import flash.display.*;
public dynamic class EditStageMC1 extends MovieClip {
public var material:MovieClip;
public var cutMask:MovieClip;
public var brushMask:MovieClip;
public var displayLine:MovieClip;
public var brushArea:MovieClip;
public var cutArea:MovieClip;
}
}//package
Section 67
//EditStageMC2 (EditStageMC2)
package {
import flash.display.*;
public dynamic class EditStageMC2 extends MovieClip {
public var material:MovieClip;
public var cutMask:MovieClip;
public var brushMask:MovieClip;
public var displayLine:MovieClip;
public var brushArea:MovieClip;
public var cutArea:MovieClip;
}
}//package
Section 68
//EditStageMC3 (EditStageMC3)
package {
import flash.display.*;
public dynamic class EditStageMC3 extends MovieClip {
public var material:MovieClip;
public var cutMask:MovieClip;
public var brushMask:MovieClip;
public var displayLine:MovieClip;
public var brushArea:MovieClip;
public var cutArea:MovieClip;
}
}//package
Section 69
//EditToolMC (EditToolMC)
package {
import flash.display.*;
public dynamic class EditToolMC extends MovieClip {
public var material:SimpleButton;
public var forfex:SimpleButton;
public var bg:MovieClip;
public var colorTray:MovieClip;
public var example:SimpleButton;
public var brush:MovieClip;
public var newStart:SimpleButton;
public var knife:SimpleButton;
public var stamper:SimpleButton;
public var backChoose:SimpleButton;
public var back:SimpleButton;
public var show:SimpleButton;
}
}//package
Section 70
//Example_1_2 (Example_1_2)
package {
import flash.display.*;
public dynamic class Example_1_2 extends MovieClip {
}
}//package
Section 71
//Example_1_3 (Example_1_3)
package {
import flash.display.*;
public dynamic class Example_1_3 extends MovieClip {
}
}//package
Section 72
//Example_1_4 (Example_1_4)
package {
import flash.display.*;
public dynamic class Example_1_4 extends MovieClip {
}
}//package
Section 73
//Example_1_5 (Example_1_5)
package {
import flash.display.*;
public dynamic class Example_1_5 extends MovieClip {
}
}//package
Section 74
//Example_1_6 (Example_1_6)
package {
import flash.display.*;
public dynamic class Example_1_6 extends MovieClip {
}
}//package
Section 75
//Example_1_7 (Example_1_7)
package {
import flash.display.*;
public dynamic class Example_1_7 extends MovieClip {
}
}//package
Section 76
//Example_2_2 (Example_2_2)
package {
import flash.display.*;
public dynamic class Example_2_2 extends MovieClip {
}
}//package
Section 77
//Example_2_3 (Example_2_3)
package {
import flash.display.*;
public dynamic class Example_2_3 extends MovieClip {
}
}//package
Section 78
//Example_2_4 (Example_2_4)
package {
import flash.display.*;
public dynamic class Example_2_4 extends MovieClip {
}
}//package
Section 79
//Example_2_5 (Example_2_5)
package {
import flash.display.*;
public dynamic class Example_2_5 extends MovieClip {
}
}//package
Section 80
//Example_2_6 (Example_2_6)
package {
import flash.display.*;
public dynamic class Example_2_6 extends MovieClip {
}
}//package
Section 81
//Example_2_7 (Example_2_7)
package {
import flash.display.*;
public dynamic class Example_2_7 extends MovieClip {
}
}//package
Section 82
//Example_3_2 (Example_3_2)
package {
import flash.display.*;
public dynamic class Example_3_2 extends MovieClip {
}
}//package
Section 83
//Example_3_3 (Example_3_3)
package {
import flash.display.*;
public dynamic class Example_3_3 extends MovieClip {
}
}//package
Section 84
//Example_3_4 (Example_3_4)
package {
import flash.display.*;
public dynamic class Example_3_4 extends MovieClip {
}
}//package
Section 85
//Example_3_5 (Example_3_5)
package {
import flash.display.*;
public dynamic class Example_3_5 extends MovieClip {
}
}//package
Section 86
//Example_3_6 (Example_3_6)
package {
import flash.display.*;
public dynamic class Example_3_6 extends MovieClip {
}
}//package
Section 87
//Example_3_7 (Example_3_7)
package {
import flash.display.*;
public dynamic class Example_3_7 extends MovieClip {
}
}//package
Section 88
//Forfex (Forfex)
package {
import flash.media.*;
public dynamic class Forfex extends Sound {
}
}//package
Section 89
//ForfexMouse (ForfexMouse)
package {
import flash.display.*;
public dynamic class ForfexMouse extends MovieClip {
}
}//package
Section 90
//GameBg (GameBg)
package {
import flash.media.*;
public dynamic class GameBg extends Sound {
}
}//package
Section 91
//HandleMouse (HandleMouse)
package {
import flash.display.*;
public dynamic class HandleMouse extends MovieClip {
}
}//package
Section 92
//Help (Help)
package {
import flash.display.*;
public dynamic class Help extends MovieClip {
}
}//package
Section 93
//Instruction (Instruction)
package {
import flash.display.*;
public dynamic class Instruction extends MovieClip {
}
}//package
Section 94
//Knife (Knife)
package {
import flash.media.*;
public dynamic class Knife extends Sound {
}
}//package
Section 95
//KnifeMouse (KnifeMouse)
package {
import flash.display.*;
public dynamic class KnifeMouse extends MovieClip {
}
}//package
Section 96
//LoadingMC (LoadingMC)
package {
import flash.display.*;
import flash.text.*;
public dynamic class LoadingMC extends MovieClip {
public var loading:MovieClip;
public var colorTray:MovieClip;
public var lightTray:MovieClip;
public var loadingTxt:TextField;
public var logo:MovieClip;
}
}//package
Section 97
//MainMC (MainMC)
package {
import flash.display.*;
public dynamic class MainMC extends MovieClip {
public var colorTray:MovieClip;
public var startGameTxt:MovieClip;
public var soundControl:MovieClip;
public var moreGamesTxt:MovieClip;
public var freeGamesTxt:MovieClip;
public var startGame:SimpleButton;
public var moreGames:SimpleButton;
public var lightTray:MovieClip;
public var freeGames:SimpleButton;
public var logo:MovieClip;
}
}//package
Section 98
//Material_1 (Material_1)
package {
import flash.display.*;
public dynamic class Material_1 extends BitmapData {
public function Material_1(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 99
//Material_10 (Material_10)
package {
import flash.display.*;
public dynamic class Material_10 extends BitmapData {
public function Material_10(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 100
//Material_11 (Material_11)
package {
import flash.display.*;
public dynamic class Material_11 extends BitmapData {
public function Material_11(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 101
//Material_12 (Material_12)
package {
import flash.display.*;
public dynamic class Material_12 extends BitmapData {
public function Material_12(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 102
//Material_2 (Material_2)
package {
import flash.display.*;
public dynamic class Material_2 extends BitmapData {
public function Material_2(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 103
//Material_3 (Material_3)
package {
import flash.display.*;
public dynamic class Material_3 extends BitmapData {
public function Material_3(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 104
//Material_4 (Material_4)
package {
import flash.display.*;
public dynamic class Material_4 extends BitmapData {
public function Material_4(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 105
//Material_5 (Material_5)
package {
import flash.display.*;
public dynamic class Material_5 extends BitmapData {
public function Material_5(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 106
//Material_6 (Material_6)
package {
import flash.display.*;
public dynamic class Material_6 extends BitmapData {
public function Material_6(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 107
//Material_7 (Material_7)
package {
import flash.display.*;
public dynamic class Material_7 extends BitmapData {
public function Material_7(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 108
//Material_8 (Material_8)
package {
import flash.display.*;
public dynamic class Material_8 extends BitmapData {
public function Material_8(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 109
//Material_9 (Material_9)
package {
import flash.display.*;
public dynamic class Material_9 extends BitmapData {
public function Material_9(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
}
}//package
Section 110
//MenuBack (MenuBack)
package {
import flash.media.*;
public dynamic class MenuBack extends Sound {
}
}//package
Section 111
//MenuBg (MenuBg)
package {
import flash.media.*;
public dynamic class MenuBg extends Sound {
}
}//package
Section 112
//MenuPress (MenuPress)
package {
import flash.media.*;
public dynamic class MenuPress extends Sound {
}
}//package
Section 113
//MenuTouch (MenuTouch)
package {
import flash.media.*;
public dynamic class MenuTouch extends Sound {
}
}//package
Section 114
//Octagon (Octagon)
package {
import flash.display.*;
public dynamic class Octagon extends MovieClip {
}
}//package
Section 115
//RightIconPress (RightIconPress)
package {
import flash.media.*;
public dynamic class RightIconPress extends Sound {
}
}//package
Section 116
//Select (Select)
package {
import flash.media.*;
public dynamic class Select extends Sound {
}
}//package
Section 117
//SelectTouch (SelectTouch)
package {
import flash.media.*;
public dynamic class SelectTouch extends Sound {
}
}//package
Section 118
//ShowMC (ShowMC)
package {
import flash.display.*;
public dynamic class ShowMC extends MovieClip {
public var bg:MovieClip;
public var blackWhite:SimpleButton;
public var startPrint:SimpleButton;
public var currentIcon:MovieClip;
public var multiColor:SimpleButton;
public var back:SimpleButton;
public var show:MovieClip;
}
}//package
Section 119
//Stampe (Stampe)
package {
import flash.media.*;
public dynamic class Stampe extends Sound {
}
}//package
Section 120
//Stamper1 (Stamper1)
package {
import flash.display.*;
public dynamic class Stamper1 extends MovieClip {
}
}//package
Section 121
//Stamper2 (Stamper2)
package {
import flash.display.*;
public dynamic class Stamper2 extends MovieClip {
}
}//package
Section 122
//Stamper3 (Stamper3)
package {
import flash.display.*;
public dynamic class Stamper3 extends MovieClip {
}
}//package
Section 123
//Stamper4 (Stamper4)
package {
import flash.display.*;
public dynamic class Stamper4 extends MovieClip {
}
}//package
Section 124
//Stamper5 (Stamper5)
package {
import flash.display.*;
public dynamic class Stamper5 extends MovieClip {
}
}//package
Section 125
//Stamper6 (Stamper6)
package {
import flash.display.*;
public dynamic class Stamper6 extends MovieClip {
}
}//package
Section 126
//StamperBoxMC (StamperBoxMC)
package {
import flash.display.*;
public dynamic class StamperBoxMC extends MovieClip {
public var stamper3:MovieClip;
public var stamper4:MovieClip;
public var stamper1:MovieClip;
public var stamper2:MovieClip;
public var stamper6:MovieClip;
public var currentIcon:MovieClip;
public var stamper5:MovieClip;
}
}//package
Section 127
//StamperMouse (StamperMouse)
package {
import flash.display.*;
public dynamic class StamperMouse extends MovieClip {
}
}//package