Section 1
//ComicMain (c.ComicMain)
package c {
import com.adobe.images.*;
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import caurina.transitions.*;
import fl.transitions.easing.*;
import flash.net.*;
import flash.text.*;
import flash.geom.*;
import flash.printing.*;
public class ComicMain extends MovieClip {
private const TOTAL_LINES:int = 6;
private const TOTAL_VIEW:int = 3;
private const DIST:Number = 342;
private const SPEED:int = 10;
private const ZOOM_DIST:Number = 195.6;
private const SERVER_PATH:String = "http://pbskids.org/arthur/games/comiccreator/";
private const SAVE_URL:String = "saveJPGToDesktop.php?name=";
public var btn_right:MovieClip;
public var btn_slide_left:MovieClip;
public var nav:TopNav;
public var storyStarter_mc:MovieClip;
public var btn_clearall:SimpleButton;
public var btn_slide_right:MovieClip;
public var panels_mc:MovieClip;
public var btn_print:SimpleButton;
public var instr_mc:MovieClip;
public var btn_left:MovieClip;
public var bg:MovieClip;
public var btn_zoom:MovieClip;
public var border1:MovieClip;
public var border2:MovieClip;
public var btn_save:SimpleButton;
public var clearall_mc:MovieClip;
private var firstTime:Boolean;// = true
private var view:int;// = 1
private var lastView:int;// = 1
private var slideDir:String;// = ""
private var targetX:Number;// = 0
private var prevTxt:String;// = ""
private var openPrompt:Boolean;// = true
private var currentPanel:MovieClip;
private var currentSticker:MovieClip;
private var speechHeightArr:Array;
private var storyStarterXML:ComicXML;
private var jpgStream:ByteArray;
private var xmlReady:Boolean;// = false
private var shiftKey:Boolean;// = false
private var xml:XML;
private var sndManager:Sounds;
public function ComicMain():void{
speechHeightArr = [21.95, 37.9, 55.85];
storyStarterXML = new ComicXML();
sndManager = new Sounds();
super();
addFrameScript(0, frame1);
init();
}
private function init():void{
var _local2:MovieClip;
clearall_mc.visible = false;
storyStarter_mc.gotoAndStop(1);
storyStarter_mc.lever_mc.visible = false;
storyStarter_mc.lever_mc.gotoAndStop(1);
storyStarter_mc.btn_close.visible = false;
storyStarter_mc.prompt_mc.visible = false;
setBorders(3);
setupView();
btn_left.removeEventListener(MouseEvent.CLICK, slideLeft);
btn_slide_left.gotoAndStop(2);
btn_slide_left.removeEventListener(MouseEvent.CLICK, slideLeft);
btn_right.removeEventListener(MouseEvent.CLICK, slideRight);
btn_slide_right.gotoAndStop(2);
btn_slide_right.removeEventListener(MouseEvent.CLICK, slideRight);
btn_zoom.gotoAndStop(1);
btn_zoom.removeEventListener(MouseEvent.CLICK, toggleZoom);
checkForBorder();
border1.addEventListener("TOOLS_READY", checkEvent, false, 0, true);
border2.addEventListener("TOOLS_READY", checkEvent, false, 0, true);
var _local1 = 1;
while (_local1 < 4) {
_local2 = MovieClip(panels_mc.getChildByName(("panel" + _local1)));
_local2.overlay.visible = false;
_local2.overlay.gotoAndStop(1);
_local2.bg.gotoAndStop(1);
_local2.bg.addEventListener(MouseEvent.CLICK, disableStickerOutline, false, 0, true);
_local2.bg.addEventListener(MouseEvent.CLICK, panelActive, false, 0, true);
_local1++;
};
nav.addEventListener("CHANGE_BG", checkEvent, false, 0, true);
nav.addEventListener("STICKER_SELECTED", checkEvent, false, 0, true);
nav.addEventListener("TAB_SELECTED", checkEvent, false, 0, true);
nav.addEventListener("SCROLL_SFX", checkEvent, false, 0, true);
nav.addEventListener("STOP_SFX", checkEvent, false, 0, true);
nav.addEventListener("CLICK_SFX", checkEvent, false, 0, true);
bg.addEventListener(MouseEvent.CLICK, disableSelected, false, 0, true);
storyStarterXML.addEventListener("XML_READY", checkEvent, false, 0, true);
}
private function checkEvent(_arg1):void{
var _local2:Class;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:String;
switch (_arg1.type){
case "CHANGE_BG":
if (firstTime){
instr_mc.visible = false;
firstTime = false;
setupView();
setBorders(1);
btn_save.addEventListener(MouseEvent.CLICK, saveImg, false, 0, true);
btn_print.addEventListener(MouseEvent.CLICK, printImg, false, 0, true);
btn_clearall.addEventListener(MouseEvent.CLICK, clearAll, false, 0, true);
btn_zoom.addEventListener(MouseEvent.CLICK, toggleZoom, false, 0, true);
};
if (view != TOTAL_VIEW){
currentPanel.bg.gotoAndStop(_arg1.arg.frame);
} else {
toggleZoom(null);
};
break;
case "STICKER_SELECTED":
sndManager.playSFX("pick");
if (firstTime){
instr_mc.visible = false;
firstTime = false;
setupView();
setBorders(1);
btn_save.addEventListener(MouseEvent.CLICK, saveImg, false, 0, true);
btn_print.addEventListener(MouseEvent.CLICK, printImg, false, 0, true);
btn_clearall.addEventListener(MouseEvent.CLICK, clearAll, false, 0, true);
btn_zoom.addEventListener(MouseEvent.CLICK, toggleZoom, false, 0, true);
};
if (view == TOTAL_VIEW){
toggleZoom(null);
};
disableStickerOutline(null);
_local2 = (getDefinitionByName(_arg1.arg.type) as Class);
_local3 = new (_local2);
addChild(_local3);
currentSticker = _local3;
currentSticker.x = mouseX;
currentSticker.y = mouseY;
currentSticker.gotoAndStop(_arg1.arg.frame);
currentSticker.addEventListener("AT_FRAME", checkEvent, false, 0, true);
if (((!((_arg1.arg.type == "MenuSpeech"))) && (!((_arg1.arg.type == "MenuBG"))))){
currentSticker.scaleX = (currentSticker.scaleY = 0.8);
} else {
currentSticker.scaleX = (currentSticker.scaleY = 1);
};
currentSticker.startDrag();
stage.addEventListener(MouseEvent.MOUSE_MOVE, checkPanel, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, stickerPlaced, false, 0, true);
break;
case "AT_FRAME":
_arg1.currentTarget.removeEventListener("AT_FRAME", checkEvent);
_arg1.currentTarget.m.gotoAndStop(1);
break;
case "TAB_SELECTED":
disableStickerOutline(null);
break;
case "SCROLL_SFX":
sndManager.playSFX("scroll");
break;
case "CLICK_SFX":
sndManager.playSFX("click");
break;
case "STOP_SFX":
sndManager.stopSFX();
break;
case "TOOLS_READY":
_local5 = getQualifiedClassName(currentSticker);
if (border1.visible){
_local4 = border1;
} else {
if (border2.visible){
_local4 = border2;
};
};
_local4.btn_plus.gotoAndStop(1);
_local4.btn_plus.addEventListener(MouseEvent.CLICK, enlargeIt, false, 0, true);
if (currentSticker.scaleY >= 0.2){
_local4.btn_minus.gotoAndStop(1);
_local4.btn_minus.addEventListener(MouseEvent.CLICK, shrinkIt, false, 0, true);
} else {
_local4.btn_minus.gotoAndStop(2);
};
_local4.btn_rotate_left.gotoAndStop(1);
_local4.btn_rotate_left.addEventListener(MouseEvent.CLICK, rotateLeft, false, 0, true);
_local4.btn_rotate_right.gotoAndStop(1);
_local4.btn_rotate_right.addEventListener(MouseEvent.CLICK, rotateRight, false, 0, true);
if ((((((((_local5 == "MenuSpeech")) || ((_local5 == "Speech1")))) || ((_local5 == "Speech2")))) || ((_local5 == "Speech3")))){
_local4.btn_flip.gotoAndStop(2);
} else {
_local4.btn_flip.gotoAndStop(1);
_local4.btn_flip.addEventListener(MouseEvent.CLICK, flipIt, false, 0, true);
};
_local4.btn_delete.gotoAndStop(1);
_local4.btn_delete.addEventListener(MouseEvent.CLICK, deleteIt, false, 0, true);
break;
case "XML_READY":
trace("xml is ready to use");
xmlReady = true;
storyStarter_mc.btn_story.addEventListener(MouseEvent.CLICK, openSS, false, 0, true);
break;
};
}
private function setBorders(_arg1:int):void{
if (_arg1 == 1){
border1.visible = true;
border1.gotoAndStop(1);
border2.visible = false;
border2.gotoAndStop(1);
} else {
if (_arg1 == 2){
border1.visible = false;
border1.gotoAndStop(1);
border2.visible = true;
border2.gotoAndStop(1);
} else {
border1.visible = false;
border1.gotoAndStop(1);
border2.visible = false;
border2.gotoAndStop(1);
};
};
checkForBorder();
}
private function checkForBorder():void{
if (view == 1){
if (border1.visible){
currentPanel = panels_mc.panel1;
} else {
currentPanel = panels_mc.panel2;
};
} else {
if (view == 2){
if (border1.visible){
currentPanel = panels_mc.panel2;
} else {
currentPanel = panels_mc.panel3;
};
} else {
currentPanel = null;
};
};
}
private function xmlSlideDone():void{
slideDone();
if (view != 3){
setBorders(1);
};
buildPanels();
}
private function slideDone():void{
setupView();
sndManager.stopSFX();
}
private function setupView():void{
btn_left.visible = false;
btn_right.visible = false;
btn_left.gotoAndStop(1);
btn_right.gotoAndStop(1);
btn_left.removeEventListener(MouseEvent.CLICK, slideLeft);
btn_slide_left.gotoAndStop(2);
btn_slide_left.removeEventListener(MouseEvent.CLICK, slideLeft);
btn_right.removeEventListener(MouseEvent.CLICK, slideRight);
btn_slide_right.gotoAndStop(2);
btn_slide_right.removeEventListener(MouseEvent.CLICK, slideRight);
if (view != TOTAL_VIEW){
nav.enableAll();
enableBtn();
};
if (view == 1){
btn_right.visible = true;
btn_right.addEventListener(MouseEvent.CLICK, slideRight, false, 0, true);
btn_slide_right.gotoAndStop(1);
btn_slide_right.addEventListener(MouseEvent.CLICK, slideRight, false, 0, true);
} else {
if (view == 2){
btn_left.visible = true;
btn_left.addEventListener(MouseEvent.CLICK, slideLeft, false, 0, true);
btn_slide_left.gotoAndStop(1);
btn_slide_left.addEventListener(MouseEvent.CLICK, slideLeft, false, 0, true);
} else {
border1.visible = false;
border2.visible = false;
disableStickerOutline(null);
};
};
checkForBorder();
}
private function showTools():void{
if (border1.visible){
border1.gotoAndStop(2);
} else {
if (border2.visible){
border2.gotoAndStop(2);
};
};
}
private function disableTools():void{
var _local1:MovieClip;
if ((((border1.currentFrame == 2)) || ((border2.currentFrame == 2)))){
if (border1.visible){
_local1 = border1;
} else {
if (border2.visible){
_local1 = border2;
};
};
_local1.btn_plus.removeEventListener(MouseEvent.CLICK, enlargeIt);
_local1.btn_minus.removeEventListener(MouseEvent.CLICK, shrinkIt);
_local1.btn_rotate_left.removeEventListener(MouseEvent.CLICK, rotateLeft);
_local1.btn_rotate_right.removeEventListener(MouseEvent.CLICK, rotateRight);
_local1.btn_flip.removeEventListener(MouseEvent.CLICK, flipIt);
_local1.btn_delete.removeEventListener(MouseEvent.CLICK, deleteIt);
_local1.gotoAndStop(1);
};
}
private function disableBtn():void{
btn_left.visible = false;
btn_right.visible = false;
btn_left.gotoAndStop(1);
btn_right.gotoAndStop(1);
btn_left.removeEventListener(MouseEvent.CLICK, slideLeft);
btn_slide_left.gotoAndStop(2);
btn_slide_left.removeEventListener(MouseEvent.CLICK, slideLeft);
btn_right.removeEventListener(MouseEvent.CLICK, slideRight);
btn_slide_right.gotoAndStop(2);
btn_slide_right.removeEventListener(MouseEvent.CLICK, slideRight);
btn_zoom.removeEventListener(MouseEvent.CLICK, toggleZoom);
btn_clearall.removeEventListener(MouseEvent.CLICK, clearAll);
bg.removeEventListener(MouseEvent.CLICK, disableSelected);
btn_save.removeEventListener(MouseEvent.CLICK, saveImg);
btn_print.removeEventListener(MouseEvent.CLICK, printImg);
if (xmlReady){
if (storyStarter_mc.currentLabel == "prompt"){
storyStarter_mc.lever_mc.btn_l.buttonMode = false;
storyStarter_mc.lever_mc.btn_l.removeEventListener(MouseEvent.MOUSE_DOWN, SSDown);
storyStarter_mc.btn_close.removeEventListener(MouseEvent.CLICK, closeSS);
} else {
storyStarter_mc.btn_story.removeEventListener(MouseEvent.CLICK, openSS);
};
};
}
private function enableBtn():void{
btn_zoom.addEventListener(MouseEvent.CLICK, toggleZoom, false, 0, true);
btn_clearall.addEventListener(MouseEvent.CLICK, clearAll, false, 0, true);
bg.addEventListener(MouseEvent.CLICK, disableSelected, false, 0, true);
btn_save.addEventListener(MouseEvent.CLICK, saveImg, false, 0, true);
btn_print.addEventListener(MouseEvent.CLICK, printImg, false, 0, true);
if (xmlReady){
if (storyStarter_mc.currentLabel == "prompt"){
storyStarter_mc.lever_mc.btn_l.buttonMode = true;
storyStarter_mc.lever_mc.btn_l.addEventListener(MouseEvent.MOUSE_DOWN, SSDown, false, 0, true);
storyStarter_mc.btn_close.addEventListener(MouseEvent.CLICK, closeSS, false, 0, true);
} else {
storyStarter_mc.btn_story.addEventListener(MouseEvent.CLICK, openSS, false, 0, true);
};
};
}
private function buildPanels():void{
var _local1:MovieClip;
var _local2:Class;
var _local3:int;
var _local4:MovieClip;
var _local6:String;
var _local7:int;
var _local8:String;
var _local5 = 1;
while (_local5 < 4) {
_local1 = MovieClip(panels_mc.getChildByName(("panel" + _local5)));
_local3 = storyStarterXML.getStickerLength(_local5);
_local7 = 0;
while (_local7 < _local3) {
_local6 = storyStarterXML.getClassRef(_local5, _local7);
_local2 = (getDefinitionByName(_local6) as Class);
_local4 = new (_local2);
_local1.stickerStage.addChild(_local4);
_local1.bg.gotoAndStop(storyStarterXML.getBG(_local5));
_local4.gotoAndStop(storyStarterXML.getFrameNum(_local5, _local7));
_local4.scaleX = storyStarterXML.getScaleX(_local5, _local7);
_local4.scaleY = storyStarterXML.getScaleY(_local5, _local7);
_local4.rotation = storyStarterXML.getRotation(_local5, _local7);
_local4.x = storyStarterXML.getX(_local5, _local7);
_local4.y = storyStarterXML.getY(_local5, _local7);
_local4.buttonMode = true;
if ((((((_local6 == "Speech1")) || ((_local6 == "Speech2")))) || ((_local6 == "Speech3")))){
_local4.txt.selectable = true;
_local4.bubble.scaleX = storyStarterXML.getBubbleX(_local5, _local7);
_local8 = storyStarterXML.getBubbleTxt(_local5, _local7);
_local4.txt.text = _local8;
_local4.txt.autoSize = TextFieldAutoSize.LEFT;
_local4.bubble.gotoAndStop(storyStarterXML.getBubbleBG(_local5, _local7));
_local4.txt.addEventListener(Event.CHANGE, txtChanged, false, 0, true);
_local4.txt.addEventListener(MouseEvent.CLICK, txtFieldSelected, false, 0, true);
_local4.bubble.addEventListener(MouseEvent.CLICK, txtFieldSelected, false, 0, true);
_local4.bubble.addEventListener(MouseEvent.MOUSE_DOWN, dragSticker, false, 0, true);
} else {
_local4.addEventListener(MouseEvent.MOUSE_DOWN, dragSticker, false, 0, true);
};
_local7++;
};
_local5++;
};
storyStarterXML.nextSet();
}
private function saveJPG(_arg1:MovieClip, _arg2:Number, _arg3:String):void{
var _local4:BitmapData = new BitmapData(1086, 550, false, 0xFFFFFF);
var _local5:Matrix = new Matrix();
_local5.scale(1, 1);
_local4.draw(_arg1, _local5);
var _local6:JPGEncoder = new JPGEncoder(_arg2);
jpgStream = _local6.encode(_local4);
var _local7:URLLoader = new URLLoader();
var _local8:URLRequestHeader = new URLRequestHeader("Content-type", "application/octet-stream");
var _local9:URLRequest = new URLRequest();
_local9.requestHeaders.push(_local8);
_local9.data = jpgStream;
_local9.method = URLRequestMethod.POST;
_local9.url = (((SERVER_PATH + SAVE_URL) + _arg3) + ".jpg");
trace(("link:::: " + _local9.url));
navigateToURL(_local9, "_self");
}
private function clone(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number):MovieClip{
var _local5:BitmapData = new BitmapData(_arg2, _arg3, true, 0xFFFFFF);
var _local6:Matrix = new Matrix();
_local6.scale(_arg4, _arg4);
_local5.draw(_arg1, _local6);
var _local7:Bitmap = new Bitmap(_local5);
var _local8:MovieClip = new MovieClip();
_local8.addChild(_local7);
return (_local8);
}
private function checkPanel(_arg1:MouseEvent):void{
if (view == 1){
if (panels_mc.panel1.hitTestPoint(mouseX, mouseY, true)){
setBorders(1);
} else {
if (panels_mc.panel2.hitTestPoint(mouseX, mouseY, true)){
setBorders(2);
};
};
} else {
if (view == 2){
if (panels_mc.panel2.hitTestPoint(mouseX, mouseY, true)){
setBorders(1);
} else {
if (panels_mc.panel3.hitTestPoint(mouseX, mouseY, true)){
setBorders(2);
};
};
};
};
checkForBorder();
}
private function panelActive(_arg1:MouseEvent):void{
checkPanel(null);
}
private function disableSelected(_arg1:MouseEvent):void{
disableStickerOutline(null);
disableTools();
}
private function enlargeIt(_arg1:MouseEvent):void{
var _local2:MovieClip;
if (currentSticker.scaleX < 0){
currentSticker.scaleX = -(currentSticker.scaleX);
currentSticker.scaleX = (currentSticker.scaleY = (currentSticker.scaleY + 0.1));
currentSticker.scaleX = -(currentSticker.scaleX);
} else {
currentSticker.scaleX = (currentSticker.scaleY = (currentSticker.scaleY + 0.1));
};
if (border1.visible){
_local2 = border1;
} else {
if (border2.visible){
_local2 = border2;
};
};
_local2.btn_minus.gotoAndStop(1);
_local2.btn_minus.addEventListener(MouseEvent.CLICK, shrinkIt, false, 0, true);
}
private function shrinkIt(_arg1:MouseEvent):void{
var _local2:MovieClip;
if (currentSticker.scaleX < 0){
if (currentSticker.scaleY > 0.2){
currentSticker.scaleX = -(currentSticker.scaleX);
currentSticker.scaleX = (currentSticker.scaleY = (currentSticker.scaleY - 0.1));
currentSticker.scaleX = -(currentSticker.scaleX);
if (currentSticker.scaleY < 0.2){
if (border1.visible){
_local2 = border1;
} else {
if (border2.visible){
_local2 = border2;
};
};
_local2.btn_minus.gotoAndStop(2);
_local2.btn_minus.removeEventListener(MouseEvent.CLICK, shrinkIt);
};
};
} else {
if (currentSticker.scaleY > 0.2){
currentSticker.scaleX = (currentSticker.scaleY = (currentSticker.scaleY - 0.1));
if (currentSticker.scaleY < 0.2){
if (border1.visible){
_local2 = border1;
} else {
if (border2.visible){
_local2 = border2;
};
};
_local2.btn_minus.gotoAndStop(2);
_local2.btn_minus.removeEventListener(MouseEvent.CLICK, shrinkIt);
};
};
};
}
private function rotateLeft(_arg1:MouseEvent):void{
currentSticker.rotation = (currentSticker.rotation - 10);
}
private function rotateRight(_arg1:MouseEvent):void{
currentSticker.rotation = (currentSticker.rotation + 10);
}
private function flipIt(_arg1:MouseEvent):void{
currentSticker.scaleX = -(currentSticker.scaleX);
}
private function deleteIt(_arg1:MouseEvent):void{
sndManager.playSFX("delete");
currentPanel.stickerStage.removeChild(currentSticker);
currentSticker = null;
disableTools();
}
private function stickerPlaced(_arg1:MouseEvent):void{
var _local2:Point;
var _local3:Point;
var _local4:String;
var _local5:int;
var _local6:Class;
var _local7:MovieClip;
sndManager.playSFX("drop");
stage.removeEventListener(MouseEvent.MOUSE_UP, stickerPlaced);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, checkPanel);
if (view != TOTAL_VIEW){
_local2 = new Point(mouseX, mouseY);
_local3 = currentPanel.stickerStage.globalToLocal(_local2);
_local4 = getQualifiedClassName(currentSticker);
if (_local4 == "MenuSpeech"){
_local5 = currentSticker.currentFrame;
if ((((_local5 <= 4)) || ((_local5 == 17)))){
if (_local5 <= 2){
_local4 = "Speech1";
} else {
if (_local5 <= 4){
_local4 = "Speech2";
} else {
_local4 = "Speech3";
};
};
removeChild(currentSticker);
_local6 = (getDefinitionByName(_local4) as Class);
_local7 = new (_local6);
currentSticker = _local7;
_local7.bubble.gotoAndStop(2);
_local7.txt.selectable = true;
stage.focus = _local7.txt;
_local7.txt.text = "";
_local7.txt.setSelection(0, _local7.txt.length);
_local7.txt.autoSize = TextFieldAutoSize.LEFT;
_local7.txt.addEventListener(Event.CHANGE, txtChanged, false, 0, true);
_local7.txt.addEventListener(MouseEvent.CLICK, txtFieldSelected, false, 0, true);
_local7.bubble.addEventListener(MouseEvent.CLICK, txtFieldSelected, false, 0, true);
prevTxt = _local7.txt.text;
if ((((_local5 == 2)) || ((_local5 == 4)))){
_local7.bubble.scaleX = -1;
};
};
};
if (_local4 == "MenuBG"){
currentPanel.bg.gotoAndStop(currentSticker.currentFrame);
currentSticker.stopDrag();
removeChild(currentSticker);
currentSticker = null;
} else {
currentPanel.stickerStage.addChild(currentSticker);
currentSticker.x = (_local3.x - 10);
currentSticker.y = _local3.y;
if (currentSticker.m != null){
currentSticker.m.gotoAndStop(2);
};
if (!currentSticker.hitTestObject(currentPanel.bg)){
currentPanel.stickerStage.removeChild(currentSticker);
currentSticker = null;
trace("sticker removed @ stickerPlaced");
disableTools();
} else {
showTools();
currentSticker.stopDrag();
currentSticker.scaleX = (currentSticker.scaleY = 1);
currentSticker.buttonMode = true;
if ((((((_local4 == "Speech1")) || ((_local4 == "Speech2")))) || ((_local4 == "Speech3")))){
currentSticker.bubble.addEventListener(MouseEvent.MOUSE_DOWN, dragSticker, false, 0, true);
} else {
currentSticker.addEventListener(MouseEvent.MOUSE_DOWN, dragSticker, false, 0, true);
};
};
};
nav.stickerPlaced();
};
}
private function dragSticker(_arg1:MouseEvent):void{
if (view != TOTAL_VIEW){
sndManager.playSFX("pick");
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, dragSticker);
disableStickerOutline(null);
if (_arg1.currentTarget.name == "bubble"){
currentSticker = MovieClip(_arg1.currentTarget.parent);
} else {
currentSticker = MovieClip(_arg1.currentTarget);
};
checkPanel(null);
currentPanel.stickerStage.addChild(currentSticker);
if (currentSticker.m != null){
currentSticker.m.gotoAndStop(2);
} else {
currentSticker.bubble.gotoAndStop((currentSticker.bubble.currentFrame + 1));
};
currentSticker.startDrag();
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragSticker, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_MOVE, checkForStage, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_MOVE, checkPanel);
};
}
private function stopDragSticker(_arg1:MouseEvent):void{
sndManager.playSFX("drop");
showTools();
stage.removeEventListener(MouseEvent.MOUSE_MOVE, checkForStage);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, checkPanel);
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_UP, stopDragSticker);
currentSticker.stopDrag();
var _local2:String = getQualifiedClassName(currentSticker);
if (!currentSticker.hitTestObject(currentPanel.bg)){
currentPanel.stickerStage.removeChild(currentSticker);
currentSticker = null;
trace("sticker removed @ stopDragSticker");
disableTools();
} else {
if ((((((_local2 == "Speech1")) || ((_local2 == "Speech2")))) || ((_local2 == "Speech3")))){
currentSticker.bubble.addEventListener(MouseEvent.MOUSE_DOWN, dragSticker, false, 0, true);
stage.focus = currentSticker.txt;
currentSticker.txt.setSelection(currentSticker.txt.length, currentSticker.txt.length);
} else {
currentSticker.addEventListener(MouseEvent.MOUSE_DOWN, dragSticker, false, 0, true);
};
};
}
private function disableStickerOutline(_arg1:MouseEvent):void{
if (currentSticker != null){
if (currentSticker.m != null){
currentSticker.m.gotoAndStop(1);
} else {
currentSticker.bubble.gotoAndStop(int((currentSticker.bubble.currentFrame - 1)));
};
currentSticker = null;
};
}
private function checkForStage(_arg1:MouseEvent):void{
var _local2:Point;
var _local3:Point;
if (currentSticker.parent != currentPanel.stickerStage){
currentPanel.stickerStage.addChild(currentSticker);
_local2 = new Point(mouseX, mouseY);
_local3 = currentPanel.stickerStage.globalToLocal(_local2);
currentSticker.x = _local3.x;
currentSticker.y = (_local3.y - 30);
_arg1.updateAfterEvent();
};
}
private function txtChanged(_arg1:Event):void{
var _local2:Boolean;
if (currentSticker.txt.numLines <= TOTAL_LINES){
currentSticker.bubble.gotoAndStop(("outline" + currentSticker.txt.numLines));
prevTxt = currentSticker.txt.text;
} else {
currentSticker.txt.text = prevTxt;
};
}
private function txtFieldSelected(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = MovieClip(_arg1.currentTarget.parent);
disableStickerOutline(null);
currentSticker = _local2;
stage.focus = currentSticker.txt;
checkPanel(null);
currentPanel.stickerStage.addChild(currentSticker);
currentSticker.bubble.gotoAndStop(("outline" + currentSticker.txt.numLines));
showTools();
}
private function btnOver(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(2);
}
private function btnOut(_arg1:MouseEvent):void{
_arg1.currentTarget.gotoAndStop(1);
}
private function slideRight(_arg1:MouseEvent):void{
if (_arg1.currentTarget.name == "btn_slide_right"){
sndManager.playSFX("click");
};
if (view != 2){
view++;
disableBtn();
slideDir = "right";
targetX = (panels_mc.x - DIST);
disableTools();
disableStickerOutline(null);
nav.disableAll();
Tweener.addTween(panels_mc, {x:targetX, time:1, transition:Regular.easeInOut, onComplete:slideDone});
sndManager.playSFX("scroll");
};
}
private function slideLeft(_arg1:MouseEvent):void{
if (_arg1.currentTarget.name == "btn_slide_left"){
sndManager.playSFX("click");
};
if (view != 1){
view--;
disableBtn();
targetX = (panels_mc.x + DIST);
slideDir = "left";
disableTools();
disableStickerOutline(null);
nav.disableAll();
Tweener.addTween(panels_mc, {x:targetX, time:1, transition:Regular.easeInOut, onComplete:slideDone});
sndManager.playSFX("scroll");
};
}
private function toggleZoom(_arg1:MouseEvent):void{
var _local2:Number;
sndManager.playSFX("click");
if (btn_zoom.currentFrame == 1){
disableStickerOutline(null);
lastView = view;
view = TOTAL_VIEW;
btn_zoom.gotoAndStop(2);
setupView();
panels_mc.scaleX = (panels_mc.scaleY = 0.7);
panels_mc.x = 40;
panels_mc.y = 180;
} else {
btn_zoom.gotoAndStop(1);
view = lastView;
setupView();
setBorders(1);
checkForBorder();
_local2 = (57 - ((view - 1) * DIST));
panels_mc.scaleX = (panels_mc.scaleY = 1);
panels_mc.x = _local2;
panels_mc.y = 141;
};
}
private function clearAll(_arg1:MouseEvent):void{
var _local4:MovieClip;
sndManager.playSFX("click");
var _local2:int;
var _local3 = 1;
while (_local3 < 4) {
_local4 = MovieClip(panels_mc.getChildByName(("panel" + _local3)));
_local2 = (_local2 + _local4.stickerStage.numChildren);
if (_local4.bg.currentFrame != 1){
_local2++;
};
_local3++;
};
if (_local2 > 0){
disableBtn();
_local3 = 1;
while (_local3 < 4) {
_local4 = MovieClip(panels_mc.getChildByName(("panel" + _local3)));
_local4.overlay.visible = true;
_local3++;
};
disableTools();
disableStickerOutline(null);
nav.disableAll();
clearall_mc.visible = true;
clearall_mc.btn_no.addEventListener(MouseEvent.CLICK, dontClear, false, 0, true);
clearall_mc.btn_yes.addEventListener(MouseEvent.CLICK, clearIt, false, 0, true);
};
}
private function dontClear(_arg1:MouseEvent):void{
var _local3:MovieClip;
sndManager.playSFX("click");
clearall_mc.visible = false;
clearall_mc.btn_no.removeEventListener(MouseEvent.CLICK, dontClear);
clearall_mc.btn_yes.removeEventListener(MouseEvent.CLICK, clearIt);
var _local2 = 1;
while (_local2 < 4) {
_local3 = MovieClip(panels_mc.getChildByName(("panel" + _local2)));
_local3.overlay.visible = false;
_local2++;
};
enableBtn();
setupView();
nav.enableAll();
}
private function clearIt(_arg1:MouseEvent):void{
var _local3:MovieClip;
if (_arg1 != null){
sndManager.playSFX("click");
};
clearall_mc.visible = false;
clearall_mc.btn_no.removeEventListener(MouseEvent.CLICK, dontClear);
clearall_mc.btn_yes.removeEventListener(MouseEvent.CLICK, clearIt);
var _local2 = 1;
while (_local2 < 4) {
_local3 = MovieClip(panels_mc.getChildByName(("panel" + _local2)));
_local3.overlay.visible = false;
_local3.bg.gotoAndStop(1);
while (_local3.stickerStage.numChildren > 0) {
_local3.stickerStage.removeChildAt(0);
};
_local2++;
};
enableBtn();
setupView();
nav.enableAll();
}
private function saveImg(_arg1:MouseEvent):void{
sndManager.playSFX("click");
if (view != TOTAL_VIEW){
disableStickerOutline(null);
disableTools();
nav.disableAll();
};
var _local2:MovieClip = new MovieClip();
if ((((((((panels_mc.panel2.stickerStage.numChildren == 0)) && ((panels_mc.panel3.stickerStage.numChildren == 0)))) && ((panels_mc.panel2.bg.currentFrame == 1)))) && ((panels_mc.panel3.bg.currentFrame == 1)))){
panels_mc.panel2.border.visible = false;
panels_mc.panel3.border.visible = false;
};
_local2 = clone(panels_mc, 1369, 254, 1);
var _local3:SaveImgMC = new SaveImgMC();
_local3.place.addChild(_local2);
if ((((((((panels_mc.panel2.stickerStage.numChildren == 0)) && ((panels_mc.panel3.stickerStage.numChildren == 0)))) && ((panels_mc.panel2.bg.currentFrame == 1)))) && ((panels_mc.panel3.bg.currentFrame == 1)))){
panels_mc.panel2.border.visible = true;
panels_mc.panel3.border.visible = true;
};
saveJPG(_local3, 100, "comicbook");
if (view != TOTAL_VIEW){
nav.enableAll();
};
}
private function printImg(_arg1:MouseEvent):void{
var e = _arg1;
sndManager.playSFX("click");
if (view != TOTAL_VIEW){
disableStickerOutline(null);
disableTools();
nav.disableAll();
};
var m:PrintMC = new PrintMC();
var px:MovieClip = new MovieClip();
if ((((((((panels_mc.panel2.stickerStage.numChildren == 0)) && ((panels_mc.panel3.stickerStage.numChildren == 0)))) && ((panels_mc.panel2.bg.currentFrame == 1)))) && ((panels_mc.panel3.bg.currentFrame == 1)))){
panels_mc.panel2.border.visible = false;
panels_mc.panel3.border.visible = false;
};
px = clone(panels_mc, 1369, 254, 1);
px.scaleX = (px.scaleY = 0.68);
m.place.addChild(px);
if ((((((((panels_mc.panel2.stickerStage.numChildren == 0)) && ((panels_mc.panel3.stickerStage.numChildren == 0)))) && ((panels_mc.panel2.bg.currentFrame == 1)))) && ((panels_mc.panel3.bg.currentFrame == 1)))){
panels_mc.panel2.border.visible = true;
panels_mc.panel3.border.visible = true;
};
addChild(m);
m.visible = false;
var pj:PrintJob = new PrintJob();
if (pj.start()){
try {
pj.addPage(m, new Rectangle(0, 0, pj.paperWidth, m.height));
} catch(e:Error) {
trace("can't print!");
};
pj.send();
};
removeChild(m);
m = null;
pj = null;
if (view != TOTAL_VIEW){
nav.enableAll();
};
}
private function openSS(_arg1:MouseEvent):void{
sndManager.playSFX("click");
if (view != 3){
disableTools();
disableStickerOutline(null);
};
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK, openSS);
storyStarter_mc.gotoAndPlay("open");
storyStarter_mc.addEventListener(Event.ENTER_FRAME, trackSS, false, 0, true);
storyStarter_mc.btn_story.visible = false;
}
private function trackSS(_arg1:Event):void{
if (_arg1.currentTarget.currentLabel == "prompt"){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, trackSS);
if (openPrompt){
openPrompt = false;
storyStarter_mc.prompt_mc.visible = true;
storyStarter_mc.prompt_mc.gotoAndPlay(2);
sndManager.playSFX("alarm");
storyStarter_mc.prompt_mc.btn_ok.addEventListener(MouseEvent.CLICK, closePrompt, false, 0, true);
};
} else {
if (_arg1.currentTarget.currentLabel == "opened"){
storyStarter_mc.lever_mc.visible = true;
storyStarter_mc.lever_mc.btn_l.buttonMode = true;
storyStarter_mc.lever_mc.btn_l.addEventListener(MouseEvent.MOUSE_DOWN, SSDown, false, 0, true);
storyStarter_mc.btn_close.visible = true;
storyStarter_mc.btn_close.addEventListener(MouseEvent.CLICK, closeSS, false, 0, true);
};
};
}
private function closePrompt(_arg1:MouseEvent):void{
sndManager.playSFX("click");
disableTools();
disableStickerOutline(null);
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK, closePrompt);
storyStarter_mc.prompt_mc.visible = false;
}
private function SSDown(_arg1:MouseEvent):void{
if (storyStarter_mc.prompt_mc.visible){
storyStarter_mc.prompt_mc.visible = false;
storyStarter_mc.prompt_mc.btn_ok.removeEventListener(MouseEvent.CLICK, closePrompt);
};
_arg1.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, SSDown);
stage.addEventListener(MouseEvent.MOUSE_MOVE, leverMoving, false, 0, true);
stage.addEventListener(MouseEvent.MOUSE_UP, letLeverGo, false, 0, true);
}
private function leverMoving(_arg1:MouseEvent):void{
var _local3:int;
var _local2:Number = mouseY;
if ((((_local2 >= 30)) && ((_local2 <= 125)))){
_local3 = int(((_local2 / 130) * 5));
storyStarter_mc.lever_mc.gotoAndStop(_local3);
};
}
private function letLeverGo(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_UP, letLeverGo);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, leverMoving);
if (mouseY < 30){
storyStarter_mc.lever_mc.btn_l.buttonMode = true;
storyStarter_mc.lever_mc.btn_l.addEventListener(MouseEvent.MOUSE_DOWN, SSDown, false, 0, true);
} else {
sndManager.playSFX("lever");
if (storyStarter_mc.lever_mc.currentFrame == 4){
storyStarter_mc.lever_mc.gotoAndPlay(5);
storyStarter_mc.lever_mc.addEventListener(Event.ENTER_FRAME, trackLever, false, 0, true);
} else {
storyStarter_mc.lever_mc.play();
storyStarter_mc.lever_mc.addEventListener(Event.ENTER_FRAME, trackLever, false, 0, true);
};
};
}
private function closeSS(_arg1:MouseEvent):void{
sndManager.playSFX("click");
disableTools();
disableStickerOutline(null);
_arg1.currentTarget.removeEventListener(MouseEvent.CLICK, closeSS);
_arg1.currentTarget.visible = false;
storyStarter_mc.lever_mc.visible = false;
storyStarter_mc.prompt_mc.visible = false;
storyStarter_mc.gotoAndPlay("close");
storyStarter_mc.btn_story.visible = true;
storyStarter_mc.btn_story.addEventListener(MouseEvent.CLICK, openSS, false, 0, true);
}
private function trackLever(_arg1:Event):void{
if (_arg1.currentTarget.currentFrame == _arg1.currentTarget.totalFrames){
_arg1.currentTarget.removeEventListener(Event.ENTER_FRAME, trackLever);
storyStarter_mc.lever_mc.btn_l.buttonMode = true;
storyStarter_mc.lever_mc.btn_l.addEventListener(MouseEvent.MOUSE_DOWN, SSDown, false, 0, true);
if (firstTime){
instr_mc.visible = false;
firstTime = false;
setupView();
setBorders(1);
btn_save.addEventListener(MouseEvent.CLICK, saveImg, false, 0, true);
btn_print.addEventListener(MouseEvent.CLICK, printImg, false, 0, true);
btn_clearall.addEventListener(MouseEvent.CLICK, clearAll, false, 0, true);
btn_zoom.addEventListener(MouseEvent.CLICK, toggleZoom, false, 0, true);
};
clearIt(null);
lastView = 1;
if (((!((view == 1))) && (!((view == 3))))){
view--;
setBorders(3);
disableBtn();
targetX = (panels_mc.x + (view * DIST));
view = 1;
slideDir = "left";
disableTools();
disableStickerOutline(null);
nav.disableAll();
Tweener.addTween(panels_mc, {x:targetX, time:1, transition:Regular.easeInOut, onComplete:xmlSlideDone});
sndManager.playSFX("scroll");
} else {
xmlSlideDone();
};
};
}
function frame1(){
stop();
}
}
}//package c
Section 2
//ComicXML (c.ComicXML)
package c {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class ComicXML extends Sprite {
private const XML_URL:String = "comicstarter.xml";
private var xmlLoader:URLLoader;
private var xml:XML;
private var totalLength:int;
private var orderArr:Array;
private var currentIndx:int;// = 0
public function ComicXML():void{
orderArr = [];
super();
init();
}
private function init():void{
xmlLoader = new URLLoader();
xmlLoader.load(new URLRequest(XML_URL));
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded, false, 0, true);
}
function nextSet():void{
if (currentIndx < (totalLength - 1)){
currentIndx++;
} else {
currentIndx = 0;
};
}
private function activateEvent(_arg1:String):void{
var _local2:Event = new Event(_arg1);
dispatchEvent(_local2);
}
private function shuffle(_arg1:Array):Array{
var _local3:int;
var _local2:Array = new Array();
while (_arg1.length > 0) {
_local3 = Math.floor((Math.random() * _arg1.length));
_local2.push(_arg1[_local3]);
_arg1.splice(_local3, 1);
};
return (_local2);
}
private function xmlLoaded(_arg1:Event):void{
xmlLoader.removeEventListener(Event.COMPLETE, xmlLoaded);
xml = XML(_arg1.target.data);
activateEvent("XML_READY");
trace(xml.comicbook.length());
totalLength = xml.comicbook.length();
var _local2:int;
while (_local2 < totalLength) {
orderArr.push(_local2);
_local2++;
};
orderArr = shuffle(orderArr);
}
function getClassRef(_arg1:int, _arg2:int):String{
var n = _arg1;
var c = _arg2;
return (String(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker[c].@type));
}
function getFrameNum(_arg1:int, _arg2:int):int{
var n = _arg1;
var c = _arg2;
return (int(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker[c].@frame));
}
function getScaleX(_arg1:int, _arg2:int):Number{
var n = _arg1;
var c = _arg2;
return (Number(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker[c].@scaleX));
}
function getScaleY(_arg1:int, _arg2:int):Number{
var n = _arg1;
var c = _arg2;
return (Number(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker[c].@scaleY));
}
function getRotation(_arg1:int, _arg2:int):Number{
var n = _arg1;
var c = _arg2;
return (Number(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker[c].@rotation));
}
function getX(_arg1:int, _arg2:int):Number{
var n = _arg1;
var c = _arg2;
return (Number(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker[c].@x));
}
function getY(_arg1:int, _arg2:int):Number{
var n = _arg1;
var c = _arg2;
return (Number(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker[c].@y));
}
function getBubbleBG(_arg1:int, _arg2:int):int{
var n = _arg1;
var c = _arg2;
return (int(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker[c].@bubbleBG));
}
function getBubbleX(_arg1:int, _arg2:int):Number{
var n = _arg1;
var c = _arg2;
return (Number(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker[c].@bubbleScaleX));
}
function getBubbleTxt(_arg1:int, _arg2:int):String{
var n = _arg1;
var c = _arg2;
return (String(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker[c].@text));
}
function getStickerLength(_arg1:int):int{
var n = _arg1;
return (int(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).sticker.length()));
}
function getBG(_arg1:int):int{
var n = _arg1;
return (int(xml.comicbook[orderArr[currentIndx]].panel.(@num == n).@bg));
}
}
}//package c
Section 3
//Sounds (c.Sounds)
package c {
import flash.media.*;
import flash.net.*;
public class Sounds extends Sound {
private var path:String;// = "mp3/"
private var sc:SoundChannel;
private var clickSFX:Sound;
private var scrollSFX:Sound;
private var leverSFX:Sound;
private var popSFX:Sound;
private var alarmSFX:Sound;
private var dropSFX:Sound;
private var pickSFX:Sound;
public function Sounds():void{
init();
}
private function init():void{
clickSFX = new Sound(new URLRequest((path + "click.mp3")));
scrollSFX = new Sound(new URLRequest((path + "scroll.mp3")));
leverSFX = new Sound(new URLRequest((path + "lever.mp3")));
popSFX = new Sound(new URLRequest((path + "pop.mp3")));
alarmSFX = new Sound(new URLRequest((path + "alarm.mp3")));
dropSFX = new Sound(new URLRequest((path + "drop.mp3")));
pickSFX = new Sound(new URLRequest((path + "pick.mp3")));
}
function playSFX(_arg1:String):void{
switch (_arg1){
case "click":
if (clickSFX != null){
sc = clickSFX.play();
};
break;
case "scroll":
if (scrollSFX != null){
sc = scrollSFX.play();
};
break;
case "lever":
if (leverSFX != null){
leverSFX.play();
};
break;
case "delete":
if (popSFX != null){
sc = popSFX.play();
};
break;
case "alarm":
if (alarmSFX != null){
sc = alarmSFX.play();
};
break;
case "drop":
if (dropSFX != null){
sc = dropSFX.play();
};
break;
case "pick":
if (pickSFX != null){
sc = pickSFX.play();
};
break;
};
}
function stopSFX():void{
if (sc != null){
sc.stop();
};
}
}
}//package c
Section 4
//TopNav (c.TopNav)
package c {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
import caurina.transitions.*;
import fl.transitions.easing.*;
import com.yim.customEvent.*;
import flash.geom.*;
public class TopNav extends MovieClip {
private const SLIDE_SPEED:int = 30;
private const X_PADDING:Number = 7.8;
public var menu_speech:MovieClip;
public var btn_right:MovieClip;
public var tab_bg:MovieClip;
public var menu_char:MovieClip;
public var tab_props:MovieClip;
public var menu_bg:MovieClip;
public var btn_left:MovieClip;
public var bg:MovieClip;
public var menu_props:MovieClip;
public var tab_speech:MovieClip;
public var tab_char:MovieClip;
private var sectionsArr:Array;
private var itemsArr:Array;
private var menuItems:Object;
private var currentTab:String;// = "char"
private var slideType:String;
private var slideTarget:Number;
private var currentContainer:MovieClip;
private var arrowEnabled:Boolean;// = true
private var currentSticker:MovieClip;
private var currentNavItem:MovieClip;
private var offsetArr:Array;
private var canClick:Boolean;// = true
public function TopNav():void{
sectionsArr = ["char", "props", "bg", "speech"];
itemsArr = [];
offsetArr = [new Array(new Point(0, 4.8), 84.5, 7), new Array(new Point(45, 42.5), 121, 5)];
super();
init();
}
private function init():void{
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:Class;
var _local6:int;
var _local7:Number;
var _local8:MovieClip;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:BackBtn;
var _local13:MovieClip;
trace("nav initiated");
btn_left.gotoAndStop(1);
btn_right.gotoAndStop(1);
var _local1:int = sectionsArr.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = MovieClip(getChildByName(("menu_" + sectionsArr[_local2])));
_local4 = MovieClip(_local3.getChildByName(("items_" + sectionsArr[_local2])));
_local4.x = X_PADDING;
_local6 = 0;
itemsArr[sectionsArr[_local2]] = {};
itemsArr[sectionsArr[_local2]]["numItem"] = 7;
switch (sectionsArr[_local2]){
case "char":
_local5 = (getDefinitionByName("MenuChar") as Class);
break;
case "props":
_local5 = (getDefinitionByName("MenuProps") as Class);
break;
case "bg":
_local5 = (getDefinitionByName("MenuBG") as Class);
break;
case "speech":
_local5 = (getDefinitionByName("MenuSpeech") as Class);
_local6 = 1;
itemsArr[sectionsArr[_local2]]["numItem"] = 5;
break;
};
_local8 = new (_local5);
_local7 = offsetArr[_local6][0].x;
if ((((sectionsArr[_local2] == "bg")) || ((sectionsArr[_local2] == "speech")))){
trace(((("total frames for " + sectionsArr[_local2]) + " ::: ") + _local8.totalFrames));
_local9 = _local8.totalFrames;
} else {
trace(((("total frames for " + sectionsArr[_local2]) + " ::: ") + _local8.all.totalFrames));
_local9 = _local8.all.totalFrames;
};
_local10 = 1;
while (_local10 <= _local9) {
_local13 = new (_local5);
_local13.name = ("item" + _local10);
_local4.addChild(_local13);
if ((((sectionsArr[_local2] == "bg")) || ((sectionsArr[_local2] == "speech")))){
_local13.gotoAndStop(_local10);
if (sectionsArr[_local2] == "bg"){
_local13.addEventListener(MouseEvent.CLICK, bgClicked, false, 0, true);
};
} else {
_local13.all.gotoAndStop(_local10);
_local13.buttonMode = true;
};
_local13.buttonMode = true;
_local13.addEventListener(MouseEvent.MOUSE_DOWN, stickerSelected, false, 0, true);
_local13.y = offsetArr[_local6][0].y;
_local13.x = _local7;
_local7 = (_local7 + offsetArr[_local6][1]);
_local10++;
};
_local11 = ((offsetArr[_local6][2] - (_local9 % offsetArr[_local6][2])) - 1);
_local12 = new BackBtn();
_local12.name = "backBtn";
_local4.addChild(_local12);
_local12.addEventListener(MouseEvent.CLICK, backToBeginning, false, 0, true);
_local12.scaleX = (_local12.scaleY = 0.8);
if (sectionsArr[_local2] != "speech"){
_local7 = (_local7 + 8);
};
_local7 = (_local7 + (_local11 * offsetArr[_local6][1]));
trace(("back btn pos: " + _local7));
_local12.x = _local7;
_local12.y = (offsetArr[0][0].y + 8);
if (_local4.width > bg.width){
itemsArr[sectionsArr[_local2]]["totalSlides"] = int((_local4.width / bg.width));
} else {
itemsArr[sectionsArr[_local2]]["totalSlides"] = 0;
};
itemsArr[sectionsArr[_local2]]["currentSlide"] = 0;
_local2++;
};
changeTabs();
}
function stickerPlaced():void{
if (currentNavItem != null){
currentNavItem.visible = true;
currentNavItem = null;
};
}
function disableAll():void{
canClick = false;
disableTabs();
disableArrows();
}
function enableAll():void{
canClick = true;
enableNav();
}
private function changeTabs():void{
var _local1:int;
var _local2:int;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
if (canClick){
_local1 = sectionsArr.length;
_local2 = 0;
while (_local2 < _local1) {
_local3 = MovieClip(getChildByName(("tab_" + sectionsArr[_local2])));
_local4 = MovieClip(getChildByName(("menu_" + sectionsArr[_local2])));
_local5 = MovieClip(_local4.getChildByName(("items_" + sectionsArr[_local2])));
if (sectionsArr[_local2] != currentTab){
_local4.visible = false;
_local3.gotoAndStop(1);
_local3.mouseChildren = true;
_local3.addEventListener(MouseEvent.CLICK, tabSelected, false, 0, true);
} else {
currentContainer = _local5;
if (itemsArr[sectionsArr[_local2]]["totalSlides"] > 0){
arrowEnabled = true;
enableArrows();
} else {
arrowEnabled = false;
disableArrows();
};
_local4.visible = true;
_local3.gotoAndStop(2);
_local3.removeEventListener(MouseEvent.CLICK, tabSelected);
};
_local2++;
};
};
}
private function disableTabs():void{
var _local3:MovieClip;
var _local1:int = sectionsArr.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = MovieClip(getChildByName(("tab_" + sectionsArr[_local2])));
_local3.mouseChildren = false;
_local3.removeEventListener(MouseEvent.CLICK, tabSelected);
_local2++;
};
}
private function enableTabs():void{
var _local3:MovieClip;
var _local1:int = sectionsArr.length;
var _local2:int;
while (_local2 < _local1) {
_local3 = MovieClip(getChildByName(("tab_" + sectionsArr[_local2])));
if (sectionsArr[_local2] != currentTab){
_local3.mouseChildren = true;
_local3.addEventListener(MouseEvent.CLICK, tabSelected, false, 0, true);
} else {
_local3.removeEventListener(MouseEvent.CLICK, tabSelected);
};
_local2++;
};
}
private function disableArrows():void{
btn_left.gotoAndStop(2);
btn_right.gotoAndStop(2);
btn_left.removeEventListener(MouseEvent.CLICK, slideLeft);
btn_right.removeEventListener(MouseEvent.CLICK, slideRight);
}
private function enableArrows():void{
if (itemsArr[currentTab]["currentSlide"] != 0){
btn_left.gotoAndStop(1);
btn_left.addEventListener(MouseEvent.CLICK, slideLeft, false, 0, true);
} else {
btn_left.gotoAndStop(2);
};
if (itemsArr[currentTab]["currentSlide"] < itemsArr[currentTab]["totalSlides"]){
btn_right.gotoAndStop(1);
btn_right.addEventListener(MouseEvent.CLICK, slideRight, false, 0, true);
} else {
btn_right.gotoAndStop(2);
};
}
private function enableNav():void{
enableTabs();
enableArrows();
}
private function slideDone():void{
enableNav();
activateEvent("STOP_SFX", null);
}
private function activateEvent(_arg1:String, _arg2=null):void{
var _local3:CustomEvent = new CustomEvent(_arg1, _arg2);
dispatchEvent(_local3);
}
private function tabSelected(_arg1:MouseEvent):void{
var _local2:Array;
if (canClick){
_local2 = _arg1.currentTarget.name.split("tab_");
currentTab = _local2[1];
changeTabs();
activateEvent("TAB_SELECTED");
activateEvent("CLICK_SFX", null);
};
}
private function slideLeft(_arg1:MouseEvent):void{
var _local2:int;
var _local3:MovieClip;
var _local4:Number;
if (canClick){
activateEvent("CLICK_SFX", null);
if (itemsArr[currentTab]["currentSlide"] > 0){
disableTabs();
disableArrows();
var _local5 = itemsArr[currentTab];
var _local6 = "currentSlide";
var _local7 = (_local5[_local6] - 1);
_local5[_local6] = _local7;
slideType = "left";
_local2 = ((itemsArr[currentTab]["currentSlide"] * itemsArr[currentTab]["numItem"]) + 1);
_local3 = MovieClip(currentContainer.getChildByName(("item" + _local2)));
if (currentTab != "speech"){
_local4 = X_PADDING;
} else {
_local4 = (X_PADDING + (_local3.width * 0.5));
};
slideTarget = -((_local3.x - _local4));
Tweener.addTween(currentContainer, {x:slideTarget, time:1, transition:Regular.easeInOut, onComplete:slideDone});
activateEvent("SCROLL_SFX", null);
};
};
}
private function slideRight(_arg1:MouseEvent):void{
var _local2:int;
var _local3:*;
var _local4:Number;
if (canClick){
if (itemsArr[currentTab]["currentSlide"] < itemsArr[currentTab]["totalSlides"]){
activateEvent("CLICK_SFX", null);
disableTabs();
disableArrows();
var _local5 = itemsArr[currentTab];
var _local6 = "currentSlide";
var _local7 = (_local5[_local6] + 1);
_local5[_local6] = _local7;
slideType = "right";
_local2 = ((itemsArr[currentTab]["currentSlide"] * itemsArr[currentTab]["numItem"]) + 1);
_local3 = MovieClip(currentContainer.getChildByName(("item" + _local2)));
if (_local3 == null){
_local3 = SimpleButton(currentContainer.getChildByName("backBtn"));
};
if (currentTab != "speech"){
_local4 = X_PADDING;
} else {
_local4 = (X_PADDING + (_local3.width * 0.5));
};
slideTarget = -((_local3.x - _local4));
Tweener.addTween(currentContainer, {x:slideTarget, time:1, transition:Regular.easeInOut, onComplete:slideDone});
activateEvent("SCROLL_SFX", null);
};
};
}
private function stickerSelected(_arg1:MouseEvent):void{
var _local2:int;
if (canClick){
if ((((currentTab == "speech")) || ((currentTab == "bg")))){
_local2 = _arg1.currentTarget.currentFrame;
if (currentTab == "speech"){
currentNavItem = MovieClip(_arg1.currentTarget);
currentNavItem.visible = false;
activateEvent("STICKER_SELECTED", {frame:_local2, type:"MenuSpeech"});
} else {
activateEvent("STICKER_SELECTED", {frame:_local2, type:"MenuBG"});
};
} else {
_local2 = _arg1.currentTarget.all.currentFrame;
currentNavItem = MovieClip(_arg1.currentTarget.all);
currentNavItem.visible = false;
if (currentTab == "char"){
activateEvent("STICKER_SELECTED", {frame:_local2, type:"Char"});
} else {
activateEvent("STICKER_SELECTED", {frame:_local2, type:"Props"});
};
};
};
}
private function bgClicked(_arg1:MouseEvent):void{
var _local2:int;
if (canClick){
_local2 = _arg1.currentTarget.currentFrame;
activateEvent("CHANGE_BG", {frame:_local2, type:"MenuBG"});
};
}
private function backToBeginning(_arg1:MouseEvent):void{
if (currentContainer.x != 0){
slideType = "left";
slideTarget = X_PADDING;
disableTabs();
disableArrows();
itemsArr[currentTab]["currentSlide"] = 0;
Tweener.addTween(currentContainer, {x:slideTarget, time:1, transition:Regular.easeInOut, onComplete:slideDone});
activateEvent("SCROLL_SFX", null);
};
}
}
}//package c
Section 5
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function isInArray(_arg1:String, _arg2:Array):Boolean{
var _local3:uint = _arg2.length;
var _local4:uint;
while (_local4 < _local3) {
if (_arg2[_local4] == _arg1){
return (true);
};
_local4++;
};
return (false);
}
public static function getObjectLength(_arg1:Object):uint{
var _local3:String;
var _local2:uint;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function concatObjects(... _args):Object{
var _local3:Object;
var _local5:String;
var _local2:Object = {};
var _local4:int;
while (_local4 < _args.length) {
_local3 = _args[_local4];
for (_local5 in _local3) {
if (_local3[_local5] == null){
delete _local2[_local5];
} else {
_local2[_local5] = _local3[_local5];
};
};
_local4++;
};
return (_local2);
}
}
}//package caurina.transitions
Section 6
//Equations (caurina.transitions.Equations)
package caurina.transitions {
public class Equations {
public function Equations(){
trace("Equations is a static class and should not be instantiated.");
}
public static function init():void{
Tweener.registerTransition("easenone", easeNone);
Tweener.registerTransition("linear", easeNone);
Tweener.registerTransition("easeinquad", easeInQuad);
Tweener.registerTransition("easeoutquad", easeOutQuad);
Tweener.registerTransition("easeinoutquad", easeInOutQuad);
Tweener.registerTransition("easeoutinquad", easeOutInQuad);
Tweener.registerTransition("easeincubic", easeInCubic);
Tweener.registerTransition("easeoutcubic", easeOutCubic);
Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
Tweener.registerTransition("easeoutincubic", easeOutInCubic);
Tweener.registerTransition("easeinquart", easeInQuart);
Tweener.registerTransition("easeoutquart", easeOutQuart);
Tweener.registerTransition("easeinoutquart", easeInOutQuart);
Tweener.registerTransition("easeoutinquart", easeOutInQuart);
Tweener.registerTransition("easeinquint", easeInQuint);
Tweener.registerTransition("easeoutquint", easeOutQuint);
Tweener.registerTransition("easeinoutquint", easeInOutQuint);
Tweener.registerTransition("easeoutinquint", easeOutInQuint);
Tweener.registerTransition("easeinsine", easeInSine);
Tweener.registerTransition("easeoutsine", easeOutSine);
Tweener.registerTransition("easeinoutsine", easeInOutSine);
Tweener.registerTransition("easeoutinsine", easeOutInSine);
Tweener.registerTransition("easeincirc", easeInCirc);
Tweener.registerTransition("easeoutcirc", easeOutCirc);
Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
Tweener.registerTransition("easeoutincirc", easeOutInCirc);
Tweener.registerTransition("easeinexpo", easeInExpo);
Tweener.registerTransition("easeoutexpo", easeOutExpo);
Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
Tweener.registerTransition("easeinelastic", easeInElastic);
Tweener.registerTransition("easeoutelastic", easeOutElastic);
Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
Tweener.registerTransition("easeinback", easeInBack);
Tweener.registerTransition("easeoutback", easeOutBack);
Tweener.registerTransition("easeinoutback", easeInOutBack);
Tweener.registerTransition("easeoutinback", easeOutInBack);
Tweener.registerTransition("easeinbounce", easeInBounce);
Tweener.registerTransition("easeoutbounce", easeOutBounce);
Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
}
public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
}
public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
}
public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
}
public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
}
public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
}
public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
}
public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
}
public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
}
public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 == 0){
return (_arg2);
};
if (_arg1 == _arg4){
return ((_arg2 + _arg3));
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
};
--_arg1;
return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
}
public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
--_arg1;
return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
}
public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
}
public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
var _local8:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude;
if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
_local8 = _arg3;
_local7 = (_local6 / 4);
} else {
_local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
};
--_arg1;
return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
}
public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
}
public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
};
_arg1 = (_arg1 - 2);
_local6 = (_local6 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
}
public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
}
public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
if (_arg1 < (1 / 2.75)){
return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
};
if (_arg1 < (2 / 2.75)){
_arg1 = (_arg1 - (1.5 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
};
if (_arg1 < (2.5 / 2.75)){
_arg1 = (_arg1 - (2.25 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
};
_arg1 = (_arg1 - (2.625 / 2.75));
return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
}
public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
};
return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
}
public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
if (_arg1 < (_arg4 / 2)){
return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
};
return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
}
}
}//package caurina.transitions
Section 7
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var valueStart:Number;
public var valueComplete:Number;
public var originalValueComplete:Object;
public var arrayIndex:Number;
public var extra:Object;
public var isSpecialProperty:Boolean;
public var hasModifier:Boolean;
public var modifierFunction:Function;
public var modifierParameters:Array;
public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
valueStart = _arg1;
valueComplete = _arg2;
originalValueComplete = _arg3;
arrayIndex = _arg4;
extra = _arg5;
isSpecialProperty = _arg6;
hasModifier = Boolean(_arg7);
modifierFunction = _arg7;
modifierParameters = _arg8;
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
public function toString():String{
var _local1 = "\n[PropertyInfoObj ";
_local1 = (_local1 + ("valueStart:" + String(valueStart)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("extra:" + String(extra)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
_local1 = (_local1 + "]\n");
return (_local1);
}
}
}//package caurina.transitions
Section 8
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var getValue:Function;
public var setValue:Function;
public var parameters:Array;
public var preProcess:Function;
public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
getValue = _arg1;
setValue = _arg2;
parameters = _arg3;
preProcess = _arg4;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialProperty ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("setValue:" + String(setValue)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("preProcess:" + String(preProcess)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 9
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var modifyValues:Function;
public var getValue:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 10
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter)
package caurina.transitions {
public class SpecialPropertySplitter {
public var parameters:Array;
public var splitValues:Function;
public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
splitValues = _arg1;
parameters = _arg2;
}
public function toString():String{
var _local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 11
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.display.*;
import flash.utils.*;
import flash.events.*;
public class Tweener {
private static var __tweener_controller__:MovieClip;
private static var _engineExists:Boolean = false;
private static var _inited:Boolean = false;
private static var _currentTime:Number;
private static var _currentTimeFrame:Number;
private static var _tweenList:Array;
private static var _timeScale:Number = 1;
private static var _transitionList:Object;
private static var _specialPropertyList:Object;
private static var _specialPropertyModifierList:Object;
private static var _specialPropertySplitterList:Object;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local13:Function;
var _local14:Object;
var _local15:TweenListObj;
var _local16:Number;
var _local17:Array;
var _local18:Array;
var _local19:Array;
var _local20:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local6 = _arg1.concat();
} else {
_local6 = [_arg1];
};
var _local7:Object = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local8:Number = (isNaN(_local7.time)) ? 0 : _local7.time;
var _local9:Number = (isNaN(_local7.delay)) ? 0 : _local7.delay;
var _local10:Array = new Array();
var _local11:Object = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true};
var _local12:Object = new Object();
for (_local5 in _local7) {
if (!_local11[_local5]){
if (_specialPropertySplitterList[_local5]){
_local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
_local3 = 0;
while (_local3 < _local17.length) {
if (_specialPropertySplitterList[_local17[_local3].name]){
_local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
_local4 = 0;
while (_local4 < _local18.length) {
_local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false};
_local4++;
};
} else {
_local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false};
};
_local3++;
};
} else {
if (_specialPropertyModifierList[_local5] != undefined){
_local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
_local3 = 0;
while (_local3 < _local19.length) {
_local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue};
_local3++;
};
} else {
_local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]};
};
};
};
};
for (_local5 in _local10) {
if (_specialPropertyList[_local5] != undefined){
_local10[_local5].isSpecialProperty = true;
} else {
if (_local6[0][_local5] == undefined){
printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
};
};
};
for (_local5 in _local12) {
if (_local10[_local5] != undefined){
_local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
_local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
};
};
if (typeof(_local7.transition) == "string"){
_local20 = _local7.transition.toLowerCase();
_local13 = _transitionList[_local20];
} else {
_local13 = _local7.transition;
};
if (!Boolean(_local13)){
_local13 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local6.length) {
_local14 = new Object();
for (_local5 in _local10) {
_local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
};
if (_local7.useFrames == true){
_local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
} else {
_local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
};
_local15.properties = _local14;
_local15.onStart = _local7.onStart;
_local15.onUpdate = _local7.onUpdate;
_local15.onComplete = _local7.onComplete;
_local15.onOverwrite = _local7.onOverwrite;
_local15.onError = _local7.onError;
_local15.onStartParams = _local7.onStartParams;
_local15.onUpdateParams = _local7.onUpdateParams;
_local15.onCompleteParams = _local7.onCompleteParams;
_local15.onOverwriteParams = _local7.onOverwriteParams;
_local15.onStartScope = _local7.onStartScope;
_local15.onUpdateScope = _local7.onUpdateScope;
_local15.onCompleteScope = _local7.onCompleteScope;
_local15.onOverwriteScope = _local7.onOverwriteScope;
_local15.onErrorScope = _local7.onErrorScope;
_local15.rounded = _local7.rounded;
_local15.skipUpdates = _local7.skipUpdates;
removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
_tweenList.push(_local15);
if ((((_local8 == 0)) && ((_local9 == 0)))){
_local16 = (_tweenList.length - 1);
updateTweenByIndex(_local16);
removeTweenByIndex(_local16);
};
_local3++;
};
return (true);
}
public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local8:Function;
var _local9:TweenListObj;
var _local10:Number;
var _local11:String;
if (!Boolean(_arg1)){
return (false);
};
if ((_arg1 is Array)){
_local4 = _arg1.concat();
} else {
_local4 = [_arg1];
};
var _local5:Object = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
var _local6:Number = (isNaN(_local5.time)) ? 0 : _local5.time;
var _local7:Number = (isNaN(_local5.delay)) ? 0 : _local5.delay;
if (typeof(_local5.transition) == "string"){
_local11 = _local5.transition.toLowerCase();
_local8 = _transitionList[_local11];
} else {
_local8 = _local5.transition;
};
if (!Boolean(_local8)){
_local8 = _transitionList["easeoutexpo"];
};
_local3 = 0;
while (_local3 < _local4.length) {
if (_local5.useFrames == true){
_local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
} else {
_local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
};
_local9.properties = null;
_local9.onStart = _local5.onStart;
_local9.onUpdate = _local5.onUpdate;
_local9.onComplete = _local5.onComplete;
_local9.onOverwrite = _local5.onOverwrite;
_local9.onStartParams = _local5.onStartParams;
_local9.onUpdateParams = _local5.onUpdateParams;
_local9.onCompleteParams = _local5.onCompleteParams;
_local9.onOverwriteParams = _local5.onOverwriteParams;
_local9.onStartScope = _local5.onStartScope;
_local9.onUpdateScope = _local5.onUpdateScope;
_local9.onCompleteScope = _local5.onCompleteScope;
_local9.onOverwriteScope = _local5.onOverwriteScope;
_local9.onErrorScope = _local5.onErrorScope;
_local9.isCaller = true;
_local9.count = _local5.count;
_local9.waitFrames = _local5.waitFrames;
_tweenList.push(_local9);
if ((((_local6 == 0)) && ((_local7 == 0)))){
_local10 = (_tweenList.length - 1);
updateTweenByIndex(_local10);
removeTweenByIndex(_local10);
};
_local3++;
};
return (true);
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removedLocally:Boolean;
var i:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
var removed:Boolean;
var tl:uint = _tweenList.length;
i = 0;
while (i < tl) {
if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
removedLocally = false;
for (pName in _tweenList[i].properties) {
if (Boolean(p_properties[pName])){
if (Boolean(_tweenList[i].onOverwrite)){
eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope;
try {
_tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
} catch(e:Error) {
handleError(_tweenList[i], e, "onOverwrite");
};
};
_tweenList[i].properties[pName] = undefined;
delete _tweenList[i].properties[pName];
removedLocally = true;
removed = true;
};
};
if (removedLocally){
if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
removeTweenByIndex(i);
};
};
};
};
i = (i + 1);
};
return (removed);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function removeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
public static function pauseAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local4:uint;
var _local3:Array = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function resumeAllTweens():Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
var _local1:Boolean;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local4:Boolean;
if (!Boolean(_tweenList)){
return (false);
};
_local5 = 0;
while (_local5 < _tweenList.length) {
if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
if (_arg3.length == 0){
_arg1(_local5);
_local4 = true;
} else {
_local6 = new Array();
_local7 = 0;
while (_local7 < _arg3.length) {
if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
_local6.push(_arg3[_local7]);
};
_local7++;
};
if (_local6.length > 0){
_local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
if (_local8 == _local6.length){
_arg1(_local5);
_local4 = true;
} else {
_local9 = splitTweens(_local5, _local6);
_arg1(_local9);
_local4 = true;
};
};
};
};
_local5++;
};
return (_local4);
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local5:uint;
var _local6:String;
var _local7:Boolean;
var _local3:TweenListObj = _tweenList[_arg1];
var _local4:TweenListObj = _local3.clone(false);
_local5 = 0;
while (_local5 < _arg2.length) {
_local6 = _arg2[_local5];
if (Boolean(_local3.properties[_local6])){
_local3.properties[_local6] = undefined;
delete _local3.properties[_local6];
};
_local5++;
};
for (_local6 in _local4.properties) {
_local7 = false;
_local5 = 0;
while (_local5 < _arg2.length) {
if (_arg2[_local5] == _local6){
_local7 = true;
break;
};
_local5++;
};
if (!_local7){
_local4.properties[_local6] = undefined;
delete _local4.properties[_local6];
};
};
_tweenList.push(_local4);
return ((_tweenList.length - 1));
}
private static function updateTweens():Boolean{
var _local1:int;
if (_tweenList.length == 0){
return (false);
};
_local1 = 0;
while (_local1 < _tweenList.length) {
if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
if (!updateTweenByIndex(_local1)){
removeTweenByIndex(_local1);
};
if (_tweenList[_local1] == null){
removeTweenByIndex(_local1, true);
_local1--;
};
};
_local1++;
};
return (true);
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
var _local3:Number = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var mustUpdate:Boolean;
var nv:Number;
var t:Number;
var b:Number;
var c:Number;
var d:Number;
var pName:String;
var eventScope:Object;
var tScope:Object;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
var isOver:Boolean;
var cTime:Number = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
if (tTweening.transitionParams == null){
nv = tTweening.transition(t, b, c, d);
} else {
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
} while (!(cTime >= nv));
} else {
mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
if (cTime >= tTweening.timeComplete){
isOver = true;
mustUpdate = true;
};
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e:Error) {
handleError(tTweening, e, "onStart");
};
};
for (pName in tTweening.properties) {
if (tTweening.properties[pName].isSpecialProperty){
if (Boolean(_specialPropertyList[pName].preProcess)){
tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
};
pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
pv = tScope[pName];
};
tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv;
};
mustUpdate = true;
tTweening.hasStarted = true;
};
if (mustUpdate){
for (pName in tTweening.properties) {
tProperty = tTweening.properties[pName];
if (isOver){
nv = tProperty.valueComplete;
} else {
if (tProperty.hasModifier){
t = (cTime - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
if (tTweening.transitionParams == null){
nv = tTweening.transition(t, 0, 1, d);
} else {
nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
};
nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
} else {
t = (cTime - tTweening.timeStart);
b = tProperty.valueStart;
c = (tProperty.valueComplete - tProperty.valueStart);
d = (tTweening.timeComplete - tTweening.timeStart);
if (tTweening.transitionParams == null){
nv = tTweening.transition(t, b, c, d);
} else {
nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
};
};
};
if (tTweening.rounded){
nv = Math.round(nv);
};
if (tProperty.isSpecialProperty){
_specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
} else {
tScope[pName] = nv;
};
};
tTweening.updatesSkipped = 0;
if (Boolean(tTweening.onUpdate)){
eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope;
try {
tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
} catch(e:Error) {
handleError(tTweening, e, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e:Error) {
handleError(tTweening, e, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
public static function registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
if (!_inited){
init();
};
var _local6:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
if (!_inited){
init();
};
var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
if (!_inited){
init();
};
var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
private static function startEngine():void{
_engineExists = true;
_tweenList = new Array();
__tweener_controller__ = new MovieClip();
__tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
_currentTimeFrame = 0;
updateTime();
}
private static function stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function updateTime():void{
_currentTime = getTimer();
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function onEnterFrame(_arg1:Event):void{
updateTime();
updateFrame();
var _local2:Boolean;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function setTimeScale(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
if (isNaN(_arg1)){
_arg1 = 1;
};
if (_arg1 < 1E-5){
_arg1 = 1E-5;
};
if (_arg1 != _timeScale){
if (_tweenList != null){
_local2 = 0;
while (_local2 < _tweenList.length) {
_local3 = getCurrentTweeningTime(_tweenList[_local2]);
_tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
_tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
if (_tweenList[_local2].timePaused != undefined){
_tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
};
_local2++;
};
};
_timeScale = _arg1;
};
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
return (true);
};
_local2++;
};
return (false);
}
public static function getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
if (!Boolean(_tweenList)){
return ([]);
};
var _local4:Array = new Array();
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
for (_local3 in _tweenList[_local2].properties) {
_local4.push(_local3);
};
};
_local2++;
};
return (_local4);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
if (!Boolean(_tweenList)){
return (0);
};
var _local3:Number = 0;
_local2 = 0;
while (_local2 < _tweenList.length) {
if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
_local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
};
_local2++;
};
return (_local3);
}
private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
var eventScope:Object;
var pTweening = _arg1;
var pError = _arg2;
var pCallBackName = _arg3;
if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope;
try {
pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
} catch(metaError:Error) {
printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
};
} else {
if (!Boolean(pTweening.onError)){
printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
};
};
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getVersion():String{
return ("AS3 1.31.71");
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
}
}//package caurina.transitions
Section 12
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var scope:Object;
public var properties:Object;
public var timeStart:Number;
public var timeComplete:Number;
public var useFrames:Boolean;
public var transition:Function;
public var transitionParams:Object;
public var onStart:Function;
public var onUpdate:Function;
public var onComplete:Function;
public var onOverwrite:Function;
public var onError:Function;
public var onStartParams:Array;
public var onUpdateParams:Array;
public var onCompleteParams:Array;
public var onOverwriteParams:Array;
public var onStartScope:Object;
public var onUpdateScope:Object;
public var onCompleteScope:Object;
public var onOverwriteScope:Object;
public var onErrorScope:Object;
public var rounded:Boolean;
public var isPaused:Boolean;
public var timePaused:Number;
public var isCaller:Boolean;
public var count:Number;
public var timesCalled:Number;
public var waitFrames:Boolean;
public var skipUpdates:Number;
public var updatesSkipped:Number;
public var hasStarted:Boolean;
public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
scope = _arg1;
timeStart = _arg2;
timeComplete = _arg3;
useFrames = _arg4;
transition = _arg5;
transitionParams = _arg6;
properties = new Object();
isPaused = false;
timePaused = undefined;
isCaller = false;
updatesSkipped = 0;
timesCalled = 0;
skipUpdates = 0;
hasStarted = false;
}
public function clone(_arg1:Boolean):TweenListObj{
var _local3:String;
var _local2:TweenListObj = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
_local2.properties = new Array();
for (_local3 in properties) {
_local2.properties[_local3] = properties[_local3].clone();
};
_local2.skipUpdates = skipUpdates;
_local2.updatesSkipped = updatesSkipped;
if (!_arg1){
_local2.onStart = onStart;
_local2.onUpdate = onUpdate;
_local2.onComplete = onComplete;
_local2.onOverwrite = onOverwrite;
_local2.onError = onError;
_local2.onStartParams = onStartParams;
_local2.onUpdateParams = onUpdateParams;
_local2.onCompleteParams = onCompleteParams;
_local2.onOverwriteParams = onOverwriteParams;
_local2.onStartScope = onStartScope;
_local2.onUpdateScope = onUpdateScope;
_local2.onCompleteScope = onCompleteScope;
_local2.onOverwriteScope = onOverwriteScope;
_local2.onErrorScope = onErrorScope;
};
_local2.rounded = rounded;
_local2.isPaused = isPaused;
_local2.timePaused = timePaused;
_local2.isCaller = isCaller;
_local2.count = count;
_local2.timesCalled = timesCalled;
_local2.waitFrames = waitFrames;
_local2.hasStarted = hasStarted;
return (_local2);
}
public function toString():String{
var _local3:String;
var _local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
var _local2:Boolean;
for (_local3 in properties) {
if (!_local2){
_local1 = (_local1 + ",");
};
_local1 = (_local1 + ("[name:" + properties[_local3].name));
_local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
_local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
_local1 = (_local1 + "]");
_local2 = false;
};
_local1 = (_local1 + (", timeStart:" + String(timeStart)));
_local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
_local1 = (_local1 + (", useFrames:" + String(useFrames)));
_local1 = (_local1 + (", transition:" + String(transition)));
_local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
if (skipUpdates){
_local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
};
if (updatesSkipped){
_local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
};
if (Boolean(onStart)){
_local1 = (_local1 + (", onStart:" + String(onStart)));
};
if (Boolean(onUpdate)){
_local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
};
if (Boolean(onComplete)){
_local1 = (_local1 + (", onComplete:" + String(onComplete)));
};
if (Boolean(onOverwrite)){
_local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
};
if (Boolean(onError)){
_local1 = (_local1 + (", onError:" + String(onError)));
};
if (onStartParams){
_local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
};
if (onUpdateParams){
_local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
};
if (onCompleteParams){
_local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
};
if (onOverwriteParams){
_local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
};
if (onStartScope){
_local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
};
if (onUpdateScope){
_local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
};
if (onCompleteScope){
_local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
};
if (onOverwriteScope){
_local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
};
if (onErrorScope){
_local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
};
if (rounded){
_local1 = (_local1 + (", rounded:" + String(rounded)));
};
if (isPaused){
_local1 = (_local1 + (", isPaused:" + String(isPaused)));
};
if (timePaused){
_local1 = (_local1 + (", timePaused:" + String(timePaused)));
};
if (isCaller){
_local1 = (_local1 + (", isCaller:" + String(isCaller)));
};
if (count){
_local1 = (_local1 + (", count:" + String(count)));
};
if (timesCalled){
_local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
};
if (waitFrames){
_local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
};
if (hasStarted){
_local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
};
_local1 = (_local1 + "]\n");
return (_local1);
}
public static function makePropertiesChain(_arg1:Object):Object{
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local2:Object = _arg1.base;
if (_local2){
_local3 = {};
if ((_local2 is Array)){
_local4 = [];
_local8 = 0;
while (_local8 < _local2.length) {
_local4.push(_local2[_local8]);
_local8++;
};
} else {
_local4 = [_local2];
};
_local4.push(_arg1);
_local6 = _local4.length;
_local7 = 0;
while (_local7 < _local6) {
if (_local4[_local7]["base"]){
_local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
} else {
_local5 = _local4[_local7];
};
_local3 = AuxFunctions.concatObjects(_local3, _local5);
_local7++;
};
if (_local3["base"]){
delete _local3["base"];
};
return (_local3);
//unresolved jump
};
return (_arg1);
}
}
}//package caurina.transitions
Section 13
//BitString (com.adobe.images.BitString)
package com.adobe.images {
public class BitString {
public var len:int;// = 0
public var val:int;// = 0
}
}//package com.adobe.images
Section 14
//JPGEncoder (com.adobe.images.JPGEncoder)
package com.adobe.images {
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
public class JPGEncoder {
private var ZigZag:Array;
private var YTable:Array;
private var UVTable:Array;
private var fdtbl_Y:Array;
private var fdtbl_UV:Array;
private var YDC_HT:Array;
private var UVDC_HT:Array;
private var YAC_HT:Array;
private var UVAC_HT:Array;
private var std_dc_luminance_nrcodes:Array;
private var std_dc_luminance_values:Array;
private var std_ac_luminance_nrcodes:Array;
private var std_ac_luminance_values:Array;
private var std_dc_chrominance_nrcodes:Array;
private var std_dc_chrominance_values:Array;
private var std_ac_chrominance_nrcodes:Array;
private var std_ac_chrominance_values:Array;
private var bitcode:Array;
private var category:Array;
private var byteout:ByteArray;
private var bytenew:int;// = 0
private var bytepos:int;// = 7
private var DU:Array;
private var YDU:Array;
private var UDU:Array;
private var VDU:Array;
public function JPGEncoder(_arg1:Number=50){
ZigZag = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63];
YTable = new Array(64);
UVTable = new Array(64);
fdtbl_Y = new Array(64);
fdtbl_UV = new Array(64);
std_dc_luminance_nrcodes = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0];
std_dc_luminance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
std_ac_luminance_nrcodes = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125];
std_ac_luminance_values = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250];
std_dc_chrominance_nrcodes = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0];
std_dc_chrominance_values = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
std_ac_chrominance_nrcodes = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119];
std_ac_chrominance_values = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
bitcode = new Array(0xFFFF);
category = new Array(0xFFFF);
DU = new Array(64);
YDU = new Array(64);
UDU = new Array(64);
VDU = new Array(64);
super();
if (_arg1 <= 0){
_arg1 = 1;
};
if (_arg1 > 100){
_arg1 = 100;
};
var _local2:int;
if (_arg1 < 50){
_local2 = int((5000 / _arg1));
} else {
_local2 = int((200 - (_arg1 * 2)));
};
initHuffmanTbl();
initCategoryNumber();
initQuantTables(_local2);
}
private function initQuantTables(_arg1:int):void{
var _local2:int;
var _local3:Number;
var _local8:int;
var _local4:Array = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99];
_local2 = 0;
while (_local2 < 64) {
_local3 = Math.floor((((_local4[_local2] * _arg1) + 50) / 100));
if (_local3 < 1){
_local3 = 1;
} else {
if (_local3 > 0xFF){
_local3 = 0xFF;
};
};
YTable[ZigZag[_local2]] = _local3;
_local2++;
};
var _local5:Array = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99];
_local2 = 0;
while (_local2 < 64) {
_local3 = Math.floor((((_local5[_local2] * _arg1) + 50) / 100));
if (_local3 < 1){
_local3 = 1;
} else {
if (_local3 > 0xFF){
_local3 = 0xFF;
};
};
UVTable[ZigZag[_local2]] = _local3;
_local2++;
};
var _local6:Array = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379];
_local2 = 0;
var _local7:int;
while (_local7 < 8) {
_local8 = 0;
while (_local8 < 8) {
fdtbl_Y[_local2] = (1 / (((YTable[ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
fdtbl_UV[_local2] = (1 / (((UVTable[ZigZag[_local2]] * _local6[_local7]) * _local6[_local8]) * 8));
_local2++;
_local8++;
};
_local7++;
};
}
private function computeHuffmanTbl(_arg1:Array, _arg2:Array):Array{
var _local7:int;
var _local3:int;
var _local4:int;
var _local5:Array = new Array();
var _local6 = 1;
while (_local6 <= 16) {
_local7 = 1;
while (_local7 <= _arg1[_local6]) {
_local5[_arg2[_local4]] = new BitString();
_local5[_arg2[_local4]].val = _local3;
_local5[_arg2[_local4]].len = _local6;
_local4++;
_local3++;
_local7++;
};
_local3 = (_local3 * 2);
_local6++;
};
return (_local5);
}
private function initHuffmanTbl():void{
YDC_HT = computeHuffmanTbl(std_dc_luminance_nrcodes, std_dc_luminance_values);
UVDC_HT = computeHuffmanTbl(std_dc_chrominance_nrcodes, std_dc_chrominance_values);
YAC_HT = computeHuffmanTbl(std_ac_luminance_nrcodes, std_ac_luminance_values);
UVAC_HT = computeHuffmanTbl(std_ac_chrominance_nrcodes, std_ac_chrominance_values);
}
private function initCategoryNumber():void{
var _local3:int;
var _local1 = 1;
var _local2 = 2;
var _local4 = 1;
while (_local4 <= 15) {
_local3 = _local1;
while (_local3 < _local2) {
category[(32767 + _local3)] = _local4;
bitcode[(32767 + _local3)] = new BitString();
bitcode[(32767 + _local3)].len = _local4;
bitcode[(32767 + _local3)].val = _local3;
_local3++;
};
_local3 = -((_local2 - 1));
while (_local3 <= -(_local1)) {
category[(32767 + _local3)] = _local4;
bitcode[(32767 + _local3)] = new BitString();
bitcode[(32767 + _local3)].len = _local4;
bitcode[(32767 + _local3)].val = ((_local2 - 1) + _local3);
_local3++;
};
_local1 = (_local1 << 1);
_local2 = (_local2 << 1);
_local4++;
};
}
private function writeBits(_arg1:BitString):void{
var _local2:int = _arg1.val;
var _local3:int = (_arg1.len - 1);
while (_local3 >= 0) {
if ((_local2 & uint((1 << _local3)))){
bytenew = (bytenew | uint((1 << bytepos)));
};
_local3--;
bytepos--;
if (bytepos < 0){
if (bytenew == 0xFF){
writeByte(0xFF);
writeByte(0);
} else {
writeByte(bytenew);
};
bytepos = 7;
bytenew = 0;
};
};
}
private function writeByte(_arg1:int):void{
byteout.writeByte(_arg1);
}
private function writeWord(_arg1:int):void{
writeByte(((_arg1 >> 8) & 0xFF));
writeByte((_arg1 & 0xFF));
}
private function fDCTQuant(_arg1:Array, _arg2:Array):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:Number;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:int;
var _local23:int;
_local22 = 0;
while (_local22 < 8) {
_local3 = (_arg1[(_local23 + 0)] + _arg1[(_local23 + 7)]);
_local10 = (_arg1[(_local23 + 0)] - _arg1[(_local23 + 7)]);
_local4 = (_arg1[(_local23 + 1)] + _arg1[(_local23 + 6)]);
_local9 = (_arg1[(_local23 + 1)] - _arg1[(_local23 + 6)]);
_local5 = (_arg1[(_local23 + 2)] + _arg1[(_local23 + 5)]);
_local8 = (_arg1[(_local23 + 2)] - _arg1[(_local23 + 5)]);
_local6 = (_arg1[(_local23 + 3)] + _arg1[(_local23 + 4)]);
_local7 = (_arg1[(_local23 + 3)] - _arg1[(_local23 + 4)]);
_local11 = (_local3 + _local6);
_local14 = (_local3 - _local6);
_local12 = (_local4 + _local5);
_local13 = (_local4 - _local5);
_arg1[(_local23 + 0)] = (_local11 + _local12);
_arg1[(_local23 + 4)] = (_local11 - _local12);
_local15 = ((_local13 + _local14) * 0.707106781);
_arg1[(_local23 + 2)] = (_local14 + _local15);
_arg1[(_local23 + 6)] = (_local14 - _local15);
_local11 = (_local7 + _local8);
_local12 = (_local8 + _local9);
_local13 = (_local9 + _local10);
_local19 = ((_local11 - _local13) * 0.382683433);
_local16 = ((0.5411961 * _local11) + _local19);
_local18 = ((1.306562965 * _local13) + _local19);
_local17 = (_local12 * 0.707106781);
_local20 = (_local10 + _local17);
_local21 = (_local10 - _local17);
_arg1[(_local23 + 5)] = (_local21 + _local16);
_arg1[(_local23 + 3)] = (_local21 - _local16);
_arg1[(_local23 + 1)] = (_local20 + _local18);
_arg1[(_local23 + 7)] = (_local20 - _local18);
_local23 = (_local23 + 8);
_local22++;
};
_local23 = 0;
_local22 = 0;
while (_local22 < 8) {
_local3 = (_arg1[(_local23 + 0)] + _arg1[(_local23 + 56)]);
_local10 = (_arg1[(_local23 + 0)] - _arg1[(_local23 + 56)]);
_local4 = (_arg1[(_local23 + 8)] + _arg1[(_local23 + 48)]);
_local9 = (_arg1[(_local23 + 8)] - _arg1[(_local23 + 48)]);
_local5 = (_arg1[(_local23 + 16)] + _arg1[(_local23 + 40)]);
_local8 = (_arg1[(_local23 + 16)] - _arg1[(_local23 + 40)]);
_local6 = (_arg1[(_local23 + 24)] + _arg1[(_local23 + 32)]);
_local7 = (_arg1[(_local23 + 24)] - _arg1[(_local23 + 32)]);
_local11 = (_local3 + _local6);
_local14 = (_local3 - _local6);
_local12 = (_local4 + _local5);
_local13 = (_local4 - _local5);
_arg1[(_local23 + 0)] = (_local11 + _local12);
_arg1[(_local23 + 32)] = (_local11 - _local12);
_local15 = ((_local13 + _local14) * 0.707106781);
_arg1[(_local23 + 16)] = (_local14 + _local15);
_arg1[(_local23 + 48)] = (_local14 - _local15);
_local11 = (_local7 + _local8);
_local12 = (_local8 + _local9);
_local13 = (_local9 + _local10);
_local19 = ((_local11 - _local13) * 0.382683433);
_local16 = ((0.5411961 * _local11) + _local19);
_local18 = ((1.306562965 * _local13) + _local19);
_local17 = (_local12 * 0.707106781);
_local20 = (_local10 + _local17);
_local21 = (_local10 - _local17);
_arg1[(_local23 + 40)] = (_local21 + _local16);
_arg1[(_local23 + 24)] = (_local21 - _local16);
_arg1[(_local23 + 8)] = (_local20 + _local18);
_arg1[(_local23 + 56)] = (_local20 - _local18);
_local23++;
_local22++;
};
_local22 = 0;
while (_local22 < 64) {
_arg1[_local22] = Math.round((_arg1[_local22] * _arg2[_local22]));
_local22++;
};
return (_arg1);
}
private function writeAPP0():void{
writeWord(65504);
writeWord(16);
writeByte(74);
writeByte(70);
writeByte(73);
writeByte(70);
writeByte(0);
writeByte(1);
writeByte(1);
writeByte(0);
writeWord(1);
writeWord(1);
writeByte(0);
writeByte(0);
}
private function writeSOF0(_arg1:int, _arg2:int):void{
writeWord(65472);
writeWord(17);
writeByte(8);
writeWord(_arg2);
writeWord(_arg1);
writeByte(3);
writeByte(1);
writeByte(17);
writeByte(0);
writeByte(2);
writeByte(17);
writeByte(1);
writeByte(3);
writeByte(17);
writeByte(1);
}
private function writeDQT():void{
var _local1:int;
writeWord(65499);
writeWord(132);
writeByte(0);
_local1 = 0;
while (_local1 < 64) {
writeByte(YTable[_local1]);
_local1++;
};
writeByte(1);
_local1 = 0;
while (_local1 < 64) {
writeByte(UVTable[_local1]);
_local1++;
};
}
private function writeDHT():void{
var _local1:int;
writeWord(65476);
writeWord(418);
writeByte(0);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_dc_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
writeByte(std_dc_luminance_values[_local1]);
_local1++;
};
writeByte(16);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_ac_luminance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
writeByte(std_ac_luminance_values[_local1]);
_local1++;
};
writeByte(1);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_dc_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 11) {
writeByte(std_dc_chrominance_values[_local1]);
_local1++;
};
writeByte(17);
_local1 = 0;
while (_local1 < 16) {
writeByte(std_ac_chrominance_nrcodes[(_local1 + 1)]);
_local1++;
};
_local1 = 0;
while (_local1 <= 161) {
writeByte(std_ac_chrominance_values[_local1]);
_local1++;
};
}
private function writeSOS():void{
writeWord(65498);
writeWord(12);
writeByte(3);
writeByte(1);
writeByte(0);
writeByte(2);
writeByte(17);
writeByte(3);
writeByte(17);
writeByte(0);
writeByte(63);
writeByte(0);
}
private function processDU(_arg1:Array, _arg2:Array, _arg3:Number, _arg4:Array, _arg5:Array):Number{
var _local8:int;
var _local12:int;
var _local13:int;
var _local14:int;
var _local6:BitString = _arg5[0];
var _local7:BitString = _arg5[240];
var _local9:Array = fDCTQuant(_arg1, _arg2);
_local8 = 0;
while (_local8 < 64) {
DU[ZigZag[_local8]] = _local9[_local8];
_local8++;
};
var _local10:int = (DU[0] - _arg3);
_arg3 = DU[0];
if (_local10 == 0){
writeBits(_arg4[0]);
} else {
writeBits(_arg4[category[(32767 + _local10)]]);
writeBits(bitcode[(32767 + _local10)]);
};
var _local11 = 63;
while ((((_local11 > 0)) && ((DU[_local11] == 0)))) {
_local11--;
};
if (_local11 == 0){
writeBits(_local6);
return (_arg3);
};
_local8 = 1;
while (_local8 <= _local11) {
_local12 = _local8;
while ((((DU[_local8] == 0)) && ((_local8 <= _local11)))) {
_local8++;
};
_local13 = (_local8 - _local12);
if (_local13 >= 16){
_local14 = 1;
while (_local14 <= (_local13 / 16)) {
writeBits(_local7);
_local14++;
};
_local13 = int((_local13 & 15));
};
writeBits(_arg5[((_local13 * 16) + category[(32767 + DU[_local8])])]);
writeBits(bitcode[(32767 + DU[_local8])]);
_local8++;
};
if (_local11 != 63){
writeBits(_local6);
};
return (_arg3);
}
private function RGB2YUV(_arg1:BitmapData, _arg2:int, _arg3:int):void{
var _local6:int;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local4:int;
var _local5:int;
while (_local5 < 8) {
_local6 = 0;
while (_local6 < 8) {
_local7 = _arg1.getPixel32((_arg2 + _local6), (_arg3 + _local5));
_local8 = Number(((_local7 >> 16) & 0xFF));
_local9 = Number(((_local7 >> 8) & 0xFF));
_local10 = Number((_local7 & 0xFF));
YDU[_local4] = ((((0.299 * _local8) + (0.587 * _local9)) + (0.114 * _local10)) - 128);
UDU[_local4] = (((-0.16874 * _local8) + (-0.33126 * _local9)) + (0.5 * _local10));
VDU[_local4] = (((0.5 * _local8) + (-0.41869 * _local9)) + (-0.08131 * _local10));
_local4++;
_local6++;
};
_local5++;
};
}
public function encode(_arg1:BitmapData):ByteArray{
var _local6:int;
var _local7:BitString;
byteout = new ByteArray();
bytenew = 0;
bytepos = 7;
writeWord(65496);
writeAPP0();
writeDQT();
writeSOF0(_arg1.width, _arg1.height);
writeDHT();
writeSOS();
var _local2:Number = 0;
var _local3:Number = 0;
var _local4:Number = 0;
bytenew = 0;
bytepos = 7;
var _local5:int;
while (_local5 < _arg1.height) {
_local6 = 0;
while (_local6 < _arg1.width) {
RGB2YUV(_arg1, _local6, _local5);
_local2 = processDU(YDU, fdtbl_Y, _local2, YDC_HT, YAC_HT);
_local3 = processDU(UDU, fdtbl_UV, _local3, UVDC_HT, UVAC_HT);
_local4 = processDU(VDU, fdtbl_UV, _local4, UVDC_HT, UVAC_HT);
_local6 = (_local6 + 8);
};
_local5 = (_local5 + 8);
};
if (bytepos >= 0){
_local7 = new BitString();
_local7.len = (bytepos + 1);
_local7.val = ((1 << (bytepos + 1)) - 1);
writeBits(_local7);
};
writeWord(65497);
return (byteout);
}
}
}//package com.adobe.images
Section 15
//CustomEvent (com.yim.customEvent.CustomEvent)
package com.yim.customEvent {
import flash.events.*;
public class CustomEvent extends Event {
public var arg;
public function CustomEvent(_arg1:String, _arg2, _arg3:Boolean=false, _arg4:Boolean=false):void{
super(_arg1, false, false);
arg = _arg2;
}
override public function clone():Event{
return (new CustomEvent(type, arg, bubbles, cancelable));
}
}
}//package com.yim.customEvent
Section 16
//arthur1_156 (comicbook_fla.arthur1_156)
package comicbook_fla {
import flash.display.*;
public dynamic class arthur1_156 extends MovieClip {
public function arthur1_156(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 17
//arthur2_159 (comicbook_fla.arthur2_159)
package comicbook_fla {
import flash.display.*;
public dynamic class arthur2_159 extends MovieClip {
public function arthur2_159(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 18
//arthur3_163 (comicbook_fla.arthur3_163)
package comicbook_fla {
import flash.display.*;
public dynamic class arthur3_163 extends MovieClip {
public function arthur3_163(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 19
//beCarefulPrompt_83 (comicbook_fla.beCarefulPrompt_83)
package comicbook_fla {
import flash.display.*;
public dynamic class beCarefulPrompt_83 extends MovieClip {
public var btn_ok:SimpleButton;
public function beCarefulPrompt_83(){
addFrameScript(0, frame1, 2, frame3);
}
function frame1(){
stop();
}
function frame3(){
stop();
}
}
}//package comicbook_fla
Section 20
//binky1_166 (comicbook_fla.binky1_166)
package comicbook_fla {
import flash.display.*;
public dynamic class binky1_166 extends MovieClip {
public function binky1_166(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 21
//binky2_169 (comicbook_fla.binky2_169)
package comicbook_fla {
import flash.display.*;
public dynamic class binky2_169 extends MovieClip {
public function binky2_169(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 22
//brain1_172 (comicbook_fla.brain1_172)
package comicbook_fla {
import flash.display.*;
public dynamic class brain1_172 extends MovieClip {
public function brain1_172(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 23
//brain2_175 (comicbook_fla.brain2_175)
package comicbook_fla {
import flash.display.*;
public dynamic class brain2_175 extends MovieClip {
public function brain2_175(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 24
//bubbleAndThen_102 (comicbook_fla.bubbleAndThen_102)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleAndThen_102 extends MovieClip {
public function bubbleAndThen_102(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 25
//bubbleAwesome_110 (comicbook_fla.bubbleAwesome_110)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleAwesome_110 extends MovieClip {
public function bubbleAwesome_110(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 26
//bubbleCaptionMenu_122 (comicbook_fla.bubbleCaptionMenu_122)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleCaptionMenu_122 extends MovieClip {
public function bubbleCaptionMenu_122(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 27
//bubbleHooray_120 (comicbook_fla.bubbleHooray_120)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleHooray_120 extends MovieClip {
public function bubbleHooray_120(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 28
//bubbleLater_114 (comicbook_fla.bubbleLater_114)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleLater_114 extends MovieClip {
public function bubbleLater_114(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 29
//bubbleMeanwhile_104 (comicbook_fla.bubbleMeanwhile_104)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleMeanwhile_104 extends MovieClip {
public function bubbleMeanwhile_104(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 30
//bubbleOnceUpon_98 (comicbook_fla.bubbleOnceUpon_98)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleOnceUpon_98 extends MovieClip {
public function bubbleOnceUpon_98(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 31
//bubbleSpeechMenu_94 (comicbook_fla.bubbleSpeechMenu_94)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleSpeechMenu_94 extends MovieClip {
public function bubbleSpeechMenu_94(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 32
//bubbleSuddenly_100 (comicbook_fla.bubbleSuddenly_100)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleSuddenly_100 extends MovieClip {
public function bubbleSuddenly_100(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 33
//bubbleTheEnd_106 (comicbook_fla.bubbleTheEnd_106)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleTheEnd_106 extends MovieClip {
public function bubbleTheEnd_106(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 34
//bubbleThen_112 (comicbook_fla.bubbleThen_112)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleThen_112 extends MovieClip {
public function bubbleThen_112(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 35
//bubbleThoughtMenu_96 (comicbook_fla.bubbleThoughtMenu_96)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleThoughtMenu_96 extends MovieClip {
public function bubbleThoughtMenu_96(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 36
//bubbleUhoh_116 (comicbook_fla.bubbleUhoh_116)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleUhoh_116 extends MovieClip {
public function bubbleUhoh_116(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 37
//bubbleVomit_118 (comicbook_fla.bubbleVomit_118)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleVomit_118 extends MovieClip {
public function bubbleVomit_118(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 38
//bubbleWow_108 (comicbook_fla.bubbleWow_108)
package comicbook_fla {
import flash.display.*;
public dynamic class bubbleWow_108 extends MovieClip {
public function bubbleWow_108(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 39
//buster1_178 (comicbook_fla.buster1_178)
package comicbook_fla {
import flash.display.*;
public dynamic class buster1_178 extends MovieClip {
public function buster1_178(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 40
//buster2_181 (comicbook_fla.buster2_181)
package comicbook_fla {
import flash.display.*;
public dynamic class buster2_181 extends MovieClip {
public function buster2_181(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 41
//buster3_184 (comicbook_fla.buster3_184)
package comicbook_fla {
import flash.display.*;
public dynamic class buster3_184 extends MovieClip {
public function buster3_184(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 42
//dw1_187 (comicbook_fla.dw1_187)
package comicbook_fla {
import flash.display.*;
public dynamic class dw1_187 extends MovieClip {
public function dw1_187(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 43
//dw2_189 (comicbook_fla.dw2_189)
package comicbook_fla {
import flash.display.*;
public dynamic class dw2_189 extends MovieClip {
public function dw2_189(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 44
//dw3_191 (comicbook_fla.dw3_191)
package comicbook_fla {
import flash.display.*;
public dynamic class dw3_191 extends MovieClip {
public function dw3_191(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 45
//emily1_257 (comicbook_fla.emily1_257)
package comicbook_fla {
import flash.display.*;
public dynamic class emily1_257 extends MovieClip {
public function emily1_257(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 46
//fern1_239 (comicbook_fla.fern1_239)
package comicbook_fla {
import flash.display.*;
public dynamic class fern1_239 extends MovieClip {
public function fern1_239(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 47
//fern2_242 (comicbook_fla.fern2_242)
package comicbook_fla {
import flash.display.*;
public dynamic class fern2_242 extends MovieClip {
public function fern2_242(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 48
//francine1_193 (comicbook_fla.francine1_193)
package comicbook_fla {
import flash.display.*;
public dynamic class francine1_193 extends MovieClip {
public function francine1_193(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 49
//francine2_195 (comicbook_fla.francine2_195)
package comicbook_fla {
import flash.display.*;
public dynamic class francine2_195 extends MovieClip {
public function francine2_195(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 50
//george1_219 (comicbook_fla.george1_219)
package comicbook_fla {
import flash.display.*;
public dynamic class george1_219 extends MovieClip {
public function george1_219(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 51
//george2_222 (comicbook_fla.george2_222)
package comicbook_fla {
import flash.display.*;
public dynamic class george2_222 extends MovieClip {
public function george2_222(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 52
//kate1_225 (comicbook_fla.kate1_225)
package comicbook_fla {
import flash.display.*;
public dynamic class kate1_225 extends MovieClip {
public function kate1_225(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 53
//kate2_228 (comicbook_fla.kate2_228)
package comicbook_fla {
import flash.display.*;
public dynamic class kate2_228 extends MovieClip {
public function kate2_228(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 54
//macgrady1_260 (comicbook_fla.macgrady1_260)
package comicbook_fla {
import flash.display.*;
public dynamic class macgrady1_260 extends MovieClip {
public function macgrady1_260(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 55
//mrread1_266 (comicbook_fla.mrread1_266)
package comicbook_fla {
import flash.display.*;
public dynamic class mrread1_266 extends MovieClip {
public function mrread1_266(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 56
//mrsread1_263 (comicbook_fla.mrsread1_263)
package comicbook_fla {
import flash.display.*;
public dynamic class mrsread1_263 extends MovieClip {
public function mrsread1_263(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 57
//muffy1_198 (comicbook_fla.muffy1_198)
package comicbook_fla {
import flash.display.*;
public dynamic class muffy1_198 extends MovieClip {
public function muffy1_198(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 58
//muffy2_201 (comicbook_fla.muffy2_201)
package comicbook_fla {
import flash.display.*;
public dynamic class muffy2_201 extends MovieClip {
public function muffy2_201(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 59
//pal1_204 (comicbook_fla.pal1_204)
package comicbook_fla {
import flash.display.*;
public dynamic class pal1_204 extends MovieClip {
public function pal1_204(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 60
//pal2_207 (comicbook_fla.pal2_207)
package comicbook_fla {
import flash.display.*;
public dynamic class pal2_207 extends MovieClip {
public function pal2_207(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 61
//pal3_210 (comicbook_fla.pal3_210)
package comicbook_fla {
import flash.display.*;
public dynamic class pal3_210 extends MovieClip {
public function pal3_210(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 62
//panelSelected_57 (comicbook_fla.panelSelected_57)
package comicbook_fla {
import flash.display.*;
import flash.events.*;
public dynamic class panelSelected_57 extends MovieClip {
public var btn_plus:MovieClip;
public var btn_minus:MovieClip;
public var btn_delete:MovieClip;
public var btn_rotate_left:MovieClip;
public var btn_flip:MovieClip;
public var btn_rotate_right:MovieClip;
public var ev:Event;
public function panelSelected_57(){
addFrameScript(1, frame2);
}
function frame2(){
ev = new Event("TOOLS_READY");
dispatchEvent(ev);
}
}
}//package comicbook_fla
Section 63
//propBear_281 (comicbook_fla.propBear_281)
package comicbook_fla {
import flash.display.*;
public dynamic class propBear_281 extends MovieClip {
public function propBear_281(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 64
//propBike_284 (comicbook_fla.propBike_284)
package comicbook_fla {
import flash.display.*;
public dynamic class propBike_284 extends MovieClip {
public function propBike_284(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 65
//propBook1_324 (comicbook_fla.propBook1_324)
package comicbook_fla {
import flash.display.*;
public dynamic class propBook1_324 extends MovieClip {
public function propBook1_324(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 66
//propCow_287 (comicbook_fla.propCow_287)
package comicbook_fla {
import flash.display.*;
public dynamic class propCow_287 extends MovieClip {
public function propCow_287(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 67
//propCrystalball_344 (comicbook_fla.propCrystalball_344)
package comicbook_fla {
import flash.display.*;
public dynamic class propCrystalball_344 extends MovieClip {
public function propCrystalball_344(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 68
//propDrums_290 (comicbook_fla.propDrums_290)
package comicbook_fla {
import flash.display.*;
public dynamic class propDrums_290 extends MovieClip {
public function propDrums_290(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 69
//propDummy_326 (comicbook_fla.propDummy_326)
package comicbook_fla {
import flash.display.*;
public dynamic class propDummy_326 extends MovieClip {
public function propDummy_326(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 70
//propFish_328 (comicbook_fla.propFish_328)
package comicbook_fla {
import flash.display.*;
public dynamic class propFish_328 extends MovieClip {
public function propFish_328(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 71
//propFlower_336 (comicbook_fla.propFlower_336)
package comicbook_fla {
import flash.display.*;
public dynamic class propFlower_336 extends MovieClip {
public function propFlower_336(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 72
//propGlasses_313 (comicbook_fla.propGlasses_313)
package comicbook_fla {
import flash.display.*;
public dynamic class propGlasses_313 extends MovieClip {
public function propGlasses_313(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 73
//propGoofyGlasses_311 (comicbook_fla.propGoofyGlasses_311)
package comicbook_fla {
import flash.display.*;
public dynamic class propGoofyGlasses_311 extends MovieClip {
public function propGoofyGlasses_311(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 74
//propGuitar_293 (comicbook_fla.propGuitar_293)
package comicbook_fla {
import flash.display.*;
public dynamic class propGuitar_293 extends MovieClip {
public function propGuitar_293(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 75
//propHair_319 (comicbook_fla.propHair_319)
package comicbook_fla {
import flash.display.*;
public dynamic class propHair_319 extends MovieClip {
public function propHair_319(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 76
//propHat_301 (comicbook_fla.propHat_301)
package comicbook_fla {
import flash.display.*;
public dynamic class propHat_301 extends MovieClip {
public function propHat_301(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 77
//propHat2_304 (comicbook_fla.propHat2_304)
package comicbook_fla {
import flash.display.*;
public dynamic class propHat2_304 extends MovieClip {
public function propHat2_304(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 78
//propHat4_307 (comicbook_fla.propHat4_307)
package comicbook_fla {
import flash.display.*;
public dynamic class propHat4_307 extends MovieClip {
public function propHat4_307(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 79
//propHat6_309 (comicbook_fla.propHat6_309)
package comicbook_fla {
import flash.display.*;
public dynamic class propHat6_309 extends MovieClip {
public function propHat6_309(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 80
//propLimo_330 (comicbook_fla.propLimo_330)
package comicbook_fla {
import flash.display.*;
public dynamic class propLimo_330 extends MovieClip {
public function propLimo_330(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 81
//propMagnifying_321 (comicbook_fla.propMagnifying_321)
package comicbook_fla {
import flash.display.*;
public dynamic class propMagnifying_321 extends MovieClip {
public function propMagnifying_321(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 82
//propMustache1_315 (comicbook_fla.propMustache1_315)
package comicbook_fla {
import flash.display.*;
public dynamic class propMustache1_315 extends MovieClip {
public function propMustache1_315(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 83
//propMustache2_317 (comicbook_fla.propMustache2_317)
package comicbook_fla {
import flash.display.*;
public dynamic class propMustache2_317 extends MovieClip {
public function propMustache2_317(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 84
//propPlane_333 (comicbook_fla.propPlane_333)
package comicbook_fla {
import flash.display.*;
public dynamic class propPlane_333 extends MovieClip {
public function propPlane_333(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 85
//propSandwich_341 (comicbook_fla.propSandwich_341)
package comicbook_fla {
import flash.display.*;
public dynamic class propSandwich_341 extends MovieClip {
public function propSandwich_341(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 86
//propSax_298 (comicbook_fla.propSax_298)
package comicbook_fla {
import flash.display.*;
public dynamic class propSax_298 extends MovieClip {
public function propSax_298(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 87
//propTuba_296 (comicbook_fla.propTuba_296)
package comicbook_fla {
import flash.display.*;
public dynamic class propTuba_296 extends MovieClip {
public function propTuba_296(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 88
//prunella1_230 (comicbook_fla.prunella1_230)
package comicbook_fla {
import flash.display.*;
public dynamic class prunella1_230 extends MovieClip {
public function prunella1_230(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 89
//prunella2_233 (comicbook_fla.prunella2_233)
package comicbook_fla {
import flash.display.*;
public dynamic class prunella2_233 extends MovieClip {
public function prunella2_233(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 90
//prunella3_236 (comicbook_fla.prunella3_236)
package comicbook_fla {
import flash.display.*;
public dynamic class prunella3_236 extends MovieClip {
public function prunella3_236(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 91
//ratburn1_269 (comicbook_fla.ratburn1_269)
package comicbook_fla {
import flash.display.*;
public dynamic class ratburn1_269 extends MovieClip {
public function ratburn1_269(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 92
//storyStarter_78 (comicbook_fla.storyStarter_78)
package comicbook_fla {
import flash.display.*;
public dynamic class storyStarter_78 extends MovieClip {
public var btn_close:SimpleButton;
public var prompt_mc:MovieClip;
public var btn_story:SimpleButton;
public var lever_mc:MovieClip;
public var btn_l:MovieClip;
public function storyStarter_78(){
addFrameScript(0, frame1, 9, frame10);
}
function frame1(){
stop();
}
function frame10(){
stop();
}
}
}//package comicbook_fla
Section 93
//storyStarterLever_80 (comicbook_fla.storyStarterLever_80)
package comicbook_fla {
import flash.display.*;
public dynamic class storyStarterLever_80 extends MovieClip {
public var btn_l:MovieClip;
public function storyStarterLever_80(){
addFrameScript(6, frame7);
}
function frame7(){
gotoAndStop(1);
}
}
}//package comicbook_fla
Section 94
//sueellen1_213 (comicbook_fla.sueellen1_213)
package comicbook_fla {
import flash.display.*;
public dynamic class sueellen1_213 extends MovieClip {
public function sueellen1_213(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 95
//sueellen2_216 (comicbook_fla.sueellen2_216)
package comicbook_fla {
import flash.display.*;
public dynamic class sueellen2_216 extends MovieClip {
public function sueellen2_216(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 96
//thora1_272 (comicbook_fla.thora1_272)
package comicbook_fla {
import flash.display.*;
public dynamic class thora1_272 extends MovieClip {
public function thora1_272(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 97
//timmy1_245 (comicbook_fla.timmy1_245)
package comicbook_fla {
import flash.display.*;
public dynamic class timmy1_245 extends MovieClip {
public function timmy1_245(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 98
//timmy2_248 (comicbook_fla.timmy2_248)
package comicbook_fla {
import flash.display.*;
public dynamic class timmy2_248 extends MovieClip {
public function timmy2_248(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 99
//tommy1_251 (comicbook_fla.tommy1_251)
package comicbook_fla {
import flash.display.*;
public dynamic class tommy1_251 extends MovieClip {
public function tommy1_251(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 100
//tommy2_254 (comicbook_fla.tommy2_254)
package comicbook_fla {
import flash.display.*;
public dynamic class tommy2_254 extends MovieClip {
public function tommy2_254(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package comicbook_fla
Section 101
//Regular (fl.transitions.easing.Regular)
package fl.transitions.easing {
public class Regular {
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
};
--_arg1;
return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
}
}
}//package fl.transitions.easing
Section 102
//BackBtn (BackBtn)
package {
import flash.display.*;
public dynamic class BackBtn extends SimpleButton {
}
}//package
Section 103
//Char (Char)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Char extends MovieClip {
public var m:MovieClip;
public var ev:Event;
public function Char(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25, 25, frame26, 26, frame27, 27, frame28, 28, frame29, 29, frame30, 30, frame31, 31, frame32, 32, frame33, 33, frame34, 34, frame35, 35, frame36, 36, frame37, 37, frame38, 38, frame39, 39, frame40, 40, frame41);
}
function frame1(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame2(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame3(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame4(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame5(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame6(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame7(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame8(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame9(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame10(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame11(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame12(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame13(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame14(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame15(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame16(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame17(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame18(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame19(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame20(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame21(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame22(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame23(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame24(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame25(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame26(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame27(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame28(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame29(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame30(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame31(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame32(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame33(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame34(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame35(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame36(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame37(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame38(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame39(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame40(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame41(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
}
}//package
Section 104
//MenuBG (MenuBG)
package {
import flash.display.*;
public dynamic class MenuBG extends MovieClip {
}
}//package
Section 105
//MenuChar (MenuChar)
package {
import flash.display.*;
public dynamic class MenuChar extends MovieClip {
public var all:Char;
}
}//package
Section 106
//MenuProps (MenuProps)
package {
import flash.display.*;
public dynamic class MenuProps extends MovieClip {
public var all:Props;
}
}//package
Section 107
//MenuSpeech (MenuSpeech)
package {
import flash.display.*;
import flash.events.*;
public dynamic class MenuSpeech extends MovieClip {
public var m:MovieClip;
public var ev:Event;
public function MenuSpeech(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17);
}
function frame1(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame2(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame3(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame4(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame5(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame6(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame7(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame8(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame9(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame10(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame11(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame12(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame13(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame14(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame15(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame16(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame17(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
}
}//package
Section 108
//PrintMC (PrintMC)
package {
import flash.display.*;
public dynamic class PrintMC extends MovieClip {
public var place:MovieClip;
}
}//package
Section 109
//Props (Props)
package {
import flash.display.*;
import flash.events.*;
public dynamic class Props extends MovieClip {
public var m:MovieClip;
public var ev:Event;
public function Props(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21, 21, frame22, 22, frame23, 23, frame24, 24, frame25);
}
function frame1(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame2(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame3(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame4(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame5(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame6(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame7(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame8(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame9(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame10(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame11(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame12(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame13(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame14(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame15(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame16(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame17(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame18(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame19(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame20(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame21(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame22(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame23(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame24(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
function frame25(){
ev = new Event("AT_FRAME");
dispatchEvent(ev);
}
}
}//package
Section 110
//SaveImgMC (SaveImgMC)
package {
import flash.display.*;
public dynamic class SaveImgMC extends MovieClip {
public var place:MovieClip;
}
}//package
Section 111
//Speech1 (Speech1)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Speech1 extends MovieClip {
public var txt:TextField;
public var bubble:MovieClip;
}
}//package
Section 112
//Speech2 (Speech2)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Speech2 extends MovieClip {
public var txt:TextField;
public var bubble:MovieClip;
}
}//package
Section 113
//Speech3 (Speech3)
package {
import flash.display.*;
import flash.text.*;
public dynamic class Speech3 extends MovieClip {
public var txt:TextField;
public var bubble:MovieClip;
}
}//package