Section 1
//bottles_391 (_fla.bottles_391)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class bottles_391 extends MovieClip {
public var b_10:MovieClip;
public var i:int;
public var b_2:MovieClip;
public var b_4:MovieClip;
public var b_5:MovieClip;
public var b_6:MovieClip;
public var b_7:MovieClip;
public var b_3:MovieClip;
public var b_1:MovieClip;
public var b_8:MovieClip;
public var b_9:MovieClip;
public function bottles_391(){
addFrameScript(0, frame1);
}
function frame1(){
i = 0;
i = 1;
while (i <= 10) {
this[("b_" + i)].visible = false;
i++;
};
}
}
}//package _fla
Section 2
//change_hand_289 (_fla.change_hand_289)
package _fla {
import flash.display.*;
public dynamic class change_hand_289 extends MovieClip {
public function change_hand_289(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 3
//enteryourname_182 (_fla.enteryourname_182)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class enteryourname_182 extends MovieClip {
public var t_1:TextField;
public var t_2:TextField;
public function enteryourname_182(){
addFrameScript(0, frame1);
}
public function f_in1(_arg1:FocusEvent):void{
var _local2:TextField;
_local2 = (_arg1.target as TextField);
if ((((_local2.text == "Enter your name")) || ((_local2.text == "输入你的名字")))){
_local2.text = "";
};
}
function frame1(){
stop();
this.gotoAndStop(MovieClip(root).lang);
t_1.addEventListener(FocusEvent.FOCUS_IN, f_in1);
}
}
}//package _fla
Section 4
//fackbook_mc_242 (_fla.fackbook_mc_242)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class fackbook_mc_242 extends MovieClip {
public var logo_btn:SimpleButton;
public function fackbook_mc_242(){
addFrameScript(0, frame1);
}
function frame1(){
logo_btn.addEventListener(MouseEvent.CLICK, linkHandler);
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.facebook.com/popgals"), "_blank");
}
}
}//package _fla
Section 5
//greatjob_476 (_fla.greatjob_476)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class greatjob_476 extends MovieClip {
public function greatjob_476(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.gotoAndStop(MovieClip(root).lang);
}
}
}//package _fla
Section 6
//hand_246 (_fla.hand_246)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class hand_246 extends MovieClip {
public var h_1:MovieClip;
public var h_2:MovieClip;
public var h_3:MovieClip;
public var h_4:MovieClip;
public var n_2:MovieClip;
public var r_3:MovieClip;
public var r_4:MovieClip;
public var n_3:MovieClip;
public var r_2:MovieClip;
public var n_1:MovieClip;
public var r_1:MovieClip;
public var n_4:MovieClip;
public var n_5:MovieClip;
public function hand_246(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(root).$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.mouseEnabled = false;
}, "h_");
}
}
}//package _fla
Section 7
//hotgamesforgirls_173 (_fla.hotgamesforgirls_173)
package _fla {
import flash.display.*;
public dynamic class hotgamesforgirls_173 extends MovieClip {
public function hotgamesforgirls_173(){
addFrameScript(105, frame106);
}
function frame106(){
stop();
}
}
}//package _fla
Section 8
//hotgamesforgirls_174 (_fla.hotgamesforgirls_174)
package _fla {
import flash.display.*;
public dynamic class hotgamesforgirls_174 extends MovieClip {
public function hotgamesforgirls_174(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package _fla
Section 9
//linkpattern_96 (_fla.linkpattern_96)
package _fla {
import flash.display.*;
public dynamic class linkpattern_96 extends MovieClip {
public function linkpattern_96(){
addFrameScript(0, frame1);
}
function frame1(){
while (this.numChildren) {
this.removeChildAt(0);
};
parent.removeChild(this);
}
}
}//package _fla
Section 10
//MainTimeline (_fla.MainTimeline)
package _fla {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const STEP_MK_OIL:String = "step_mk_oil";
public const STEP_GAME:String = "step_game";
public const STEP_MK_NAIL:String = "step_mk_nail";
public var replay_btn:SimpleButton;
public var oilVo:Object;
public var mg_btn:SimpleButton;
public var nailSetVo:Object;
public var linkVo:Object;
public var nailType:int;
public var dragedItem:MovieClip;
public var bottleData:Array;
public var selItem:MovieClip;
public var start_mc:MovieClip;
public var nailLength:int;
public var handData:Array;
public var username:String;
public var nailData:Array;
public var moreGameURI:String;
public var cursor_mc:MovieClip;
public var scene_1:MovieClip;
public var nailVo:Object;
public var bottleId:int;
public var handVo:Object;
public var cursorType:String;
public var bg_mc:MovieClip;
public var mk_2:MovieClip;
public var mk_3:MovieClip;
public var mk_4:MovieClip;
public var mk_1:MovieClip;
public var gameStep:String;
public var lang:String;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function save_oil():void{
bottleData = [];
$(mk_1.bs_mc, function (_arg1:MovieClip, _arg2:int):void{
if (_arg1.visible){
bottleData.push({ctf:_arg1.c_mc.ctf, pid:_arg1.p_mc.pid});
};
}, "b_");
}
public function $(_arg1:MovieClip, _arg2:Function, _arg3:String, _arg4:String="", _arg5:int=1, _arg6:int=-1):void{
var _local7:InteractiveObject;
var _local8:int;
if (_arg6 != -1){
_local8 = _arg5;
while (_local8 <= _arg6) {
_local7 = _arg1[((_arg3 + _local8) + _arg4)];
_arg2.apply(null, [_local7, _local8]);
_local8++;
};
} else {
_local8 = _arg5;
while ((_local7 = _arg1[((_arg3 + _local8) + _arg4)])) {
_arg2.apply(null, [_local7, _local8]);
_local8++;
};
};
}
public function init_nailSet(_arg1:MovieClip, _arg2:Object):void{
var _local3:int;
if (_arg2.c >= 0){
set_nail_color(_arg1, _arg2.c);
};
_local3 = 1;
while (_local3 <= 5) {
init_icons(_arg1[("n_" + _local3.toString())], _arg2.icons[_local3]);
_local3++;
};
}
public function setCursor(_arg1:String, _arg2:MovieClip=null):void{
switch (cursorType){
case "default":
break;
case "oil":
case "erase":
cursor_mc.x = (cursor_mc.y = -500);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, cursorMove);
break;
};
cursorType = _arg1;
cursor_mc = _arg2;
switch (cursorType){
case "default":
break;
case "oil":
case "erase":
cursor_mc.mouseChildren = false;
cursor_mc.mouseEnabled = false;
cursor_mc.x = cursor_mc.parent.mouseX;
cursor_mc.y = cursor_mc.parent.mouseY;
stage.addEventListener(MouseEvent.MOUSE_MOVE, cursorMove);
break;
};
}
public function cursorMove(_arg1:MouseEvent):void{
cursor_mc.x = cursor_mc.parent.mouseX;
cursor_mc.y = cursor_mc.parent.mouseY;
}
public function more_handler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(moreGameURI), "_blank");
}
function frame2(){
stop();
init_start();
}
function frame3(){
stop();
init_mk_oil();
}
function frame4(){
stop();
init_show();
}
public function init_start():void{
mg_btn.addEventListener(MouseEvent.CLICK, more_handler);
handData = [];
}
public function fill_with_pattern(_arg1:MovieClip, _arg2:int, _arg3:Number, _arg4:Number):void{
var _local5:MovieClip;
var _local6:Number;
var _local7:Number;
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
_arg1.pid = _arg2;
while (_arg1.numChildren) {
_arg1.removeChildAt(0);
};
if (_arg2 < 1){
return;
};
_arg1.alpha = 1;
_local5 = get_instance_by_className(("link_pattern_" + _arg2.toString()));
_local6 = _local5.width;
_local7 = _local5.height;
_local8 = Math.ceil((_arg4 / _local7));
_local9 = Math.ceil((_arg3 / _local6));
_local10 = 0;
while (_local10 < _local8) {
_local11 = 0;
while (_local11 < _local9) {
_local5 = get_instance_by_className(("link_pattern_" + _arg2.toString()));
_local5.x = (_local11 * _local6);
_local5.y = (_local10 * _local7);
_arg1.addChild(_local5);
_local11++;
};
_local10++;
};
}
public function init_hand(_arg1:MovieClip):void{
var id:int;
var hvo:Object;
var nt:int;
var nl:int;
var f:int;
var h_mc = _arg1;
id = get_id(h_mc.name);
hvo = handData[id];
if (hvo == null){
hvo = copyObject(handVo);
handData[id] = hvo;
};
nt = hvo.nailType;
nl = hvo.nailLength;
f = (((nt - 1) * 5) + nl);
$(h_mc, function (_arg1:MovieClip, _arg2:int):void{
var _local3:Object;
_arg1.s_mc.gotoAndStop(f);
_arg1.l_mc.gotoAndStop(f);
_arg1.l_mc.mouseChildren = false;
_arg1.l_mc.alpha = 0.8;
_arg1.l_mc.mouseEnabled = false;
_arg1.m_mc.gotoAndStop(f);
_arg1.p_mc.mouseEnabled = false;
_arg1.p_mc.mouseChildren = false;
_arg1.p_mc.gotoAndStop(f);
_arg1.p_mc.alpha = 0;
_arg1.c_mc.gotoAndStop(f);
_arg1.m2_mc.gotoAndStop(f);
_arg1.m2_mc.visible = false;
_local3 = hvo.nail[_arg2];
if (_local3 == null){
_local3 = copyObject(nailVo);
hvo.nail[_arg2] = _local3;
};
init_bottle(_arg1, _local3.ctf, _local3.pid);
init_icons(_arg1, _local3.icons);
}, "n_");
$(h_mc, function (_arg1:MovieClip, _arg2):void{
var _local3:int;
_local3 = hvo.ring[_arg2];
if (_local3){
_arg1.gotoAndStop(_local3);
} else {
_arg1.gotoAndStop(_arg1.totalFrames);
};
}, "r_");
}
function frame1(){
lang = "en";
moreGameURI = "http://www.popgals.com/easter-eggs-tree.html";
username = "";
nailSetVo = {c:0, icons:[undefined, [], [], [], [], []], pid:0};
nailVo = {ctf:-1, icons:[], pid:0};
linkVo = {c:"", x:0, y:0, scaleX:0, scaleY:0, rotation:0};
oilVo = {ctf:-1, pid:0};
nailLength = 1;
nailType = 1;
handData = [];
handVo = {nailType:1, nailLength:1, nail:[], ring:[]};
cursorType = "default";
stop();
}
public function get_id(_arg1:String, _arg2:int=1):int{
var _local3:Array;
_local3 = _arg1.split("_");
return (int(_local3[_arg2]));
}
public function clear_nailSet(_arg1:MovieClip):void{
var n_mc = _arg1;
set_nail_color(n_mc, -1);
$(n_mc, function (_arg1:MovieClip, _arg2:int):void{
if (_arg1.hasOwnProperty("icons")){
_arg1.removeChild(_arg1.icons);
delete _arg1.icons;
};
}, "n_");
}
public function set_ctf(_arg1:MovieClip, _arg2:int):void{
var _local3:ColorTransform;
_local3 = new ColorTransform();
if (_arg2 >= 0){
_local3.color = _arg2;
} else {
_local3.alphaMultiplier = 0;
};
_arg1.ctf = _arg2;
_arg1.transform.colorTransform = _local3;
}
public function get_oil_data(_arg1:MovieClip):Object{
var _local2:int;
var _local3:int;
_local2 = -1;
if (_arg1.c_mc.hasOwnProperty("ctf")){
_local2 = _arg1.c_mc.ctf;
};
_local3 = 0;
if (_arg1.p_mc.hasOwnProperty("pid")){
_local3 = _arg1.p_mc.pid;
};
return ({ctf:_local2, pid:_local3});
}
public function init_show():void{
replay_btn.addEventListener(MouseEvent.CLICK, replay_handler);
}
public function get_nailSetData(_arg1:MovieClip):Object{
var _local2:Object;
var _local3:int;
var _local4:int;
_local2 = copyObject(nailSetVo);
_local3 = -1;
if (_arg1.n_1.c_mc.hasOwnProperty("ctf")){
_local3 = _arg1.n_1.c_mc.ctf;
};
_local2.c = _local3;
_local4 = 1;
while (_local4 <= 5) {
if (_arg1[("n_" + _local4)].hasOwnProperty("icons")){
_local2.icons[_local4] = get_icons(_arg1[("n_" + _local4)].icons);
};
_local4++;
};
return (_local2);
}
public function go_game():void{
play();
}
public function get_icons(_arg1:DisplayObjectContainer):Array{
var _local2:int;
var _local3:Array;
var _local4:int;
var _local5:DisplayObject;
var _local6:Object;
var _local7:String;
_local2 = _arg1.numChildren;
_local3 = [];
_local4 = 0;
while (_local4 < _local2) {
_local5 = _arg1.getChildAt(_local4);
_local6 = copyObject(linkVo);
for (_local7 in _local6) {
if (_local7 != "c"){
_local6[_local7] = _local5[_local7];
};
};
_local6.c = getQualifiedClassName(_local5);
_local3.push(_local6);
_local4++;
};
return (_local3);
}
public function addLight(_arg1:MovieClip):void{
_arg1.lightData = {speed:1, blur:5, color:0xFFFFFF};
if (_arg1.hasOwnProperty("lightColor")){
_arg1.lightData.color = _arg1.lightColor;
};
_arg1.addEventListener(Event.ENTER_FRAME, lightHandler);
}
public function removeLight(_arg1:MovieClip):void{
_arg1.removeEventListener(Event.ENTER_FRAME, lightHandler);
_arg1.filters = [];
}
public function replay_handler(_arg1:MouseEvent):void{
replay_btn.removeEventListener(MouseEvent.CLICK, replay_handler);
this.gotoAndStop("start");
}
public function copyObject(_arg1:Object):Object{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeObject(_arg1);
_local2.position = 0;
return (_local2.readObject());
}
public function init_icons(_arg1:MovieClip, _arg2:Array):void{
var _local3:Sprite;
var _local4:int;
var _local5:int;
var _local6:Object;
var _local7:MovieClip;
var _local8:String;
if (!_arg1.hasOwnProperty("icons")){
_local3 = new Sprite();
_arg1.addChild(_local3);
_arg1.icons = _local3;
} else {
_local3 = _arg1.icons;
};
while (_local3.numChildren) {
_local3.removeChildAt(0);
};
_local4 = _arg2.length;
_local5 = 0;
while (_local5 < _local4) {
_local6 = _arg2[_local5];
_local7 = get_instance_by_className(_local6.c);
for (_local8 in _local6) {
if (_local8 != "c"){
_local7[_local8] = _local6[_local8];
};
};
_local3.addChild(_local7);
_local5++;
};
}
public function lightHandler(_arg1:Event):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
_local2.lightData.blur = (_local2.lightData.blur + _local2.lightData.speed);
_local2.filters = [getBitmapFilter(_local2.lightData)];
if (_local2.lightData.blur >= 16){
_local2.lightData.speed = -1;
} else {
if (_local2.lightData.blur <= 5){
_local2.lightData.speed = 1;
};
};
}
public function top(_arg1:DisplayObject):void{
_arg1.parent.setChildIndex(_arg1, (_arg1.parent.numChildren - 1));
}
public function get_instance_by_className(_arg1:String):MovieClip{
var _local2:MovieClip;
var _local3:Class;
_local3 = (ApplicationDomain.currentDomain.getDefinition(_arg1) as Class);
_local2 = (new (_local3) as MovieClip);
return (_local2);
}
public function init_mk_oil():void{
gameStep = STEP_MK_OIL;
bottleId = 1;
}
public function init_bottle(_arg1:MovieClip, _arg2:int, _arg3:int):void{
set_ctf(_arg1.c_mc, _arg2);
fill_with_pattern(_arg1.p_mc, _arg3, _arg1.m_mc.width, _arg1.m_mc.height);
}
public function play_1():void{
start_mc.nextFrame();
}
public function play_2():void{
Tweener.addTween(scene_1, {time:0.5, y:(scene_1.y - 450)});
Tweener.addTween(bg_mc, {time:0.5, y:(bg_mc.y - 237), onComplete:function (){
go_game();
}});
}
public function clear_mk_oil():void{
}
public function set_nail_color(_arg1:MovieClip, _arg2:int):void{
var n_mc = _arg1;
var c = _arg2;
$(n_mc, function (_arg1:MovieClip, _arg2:int):void{
set_ctf(_arg1.c_mc, c);
}, "n_");
}
public function getBitmapFilter(_arg1:Object):BitmapFilter{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Boolean;
var _local8:Boolean;
var _local9:Number;
_local2 = _arg1.color;
_local3 = 1;
_local4 = _arg1.blur;
_local5 = _arg1.blur;
_local6 = 2;
_local7 = false;
_local8 = false;
_local9 = BitmapFilterQuality.HIGH;
return (new GlowFilter(_local2, _local3, _local4, _local5, _local6, _local9, _local7, _local8));
}
}
}//package _fla
Section 11
//makeallva_395 (_fla.makeallva_395)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class makeallva_395 extends MovieClip {
public function makeallva_395(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.gotoAndStop(MovieClip(root).lang);
}
}
}//package _fla
Section 12
//mk2_321 (_fla.mk2_321)
package _fla {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mk2_321 extends MovieClip {
public var nva_mc:MovieClip;
public var nId:int;
public var ns_mc:MovieClip;
public var toolBars:MovieClip;
public var save_btn:SimpleButton;
public var main:MovieClip;
public var mode;
public var nailId:int;
public function mk2_321(){
addFrameScript(0, frame1);
}
public function init_drag(_arg1:int):void{
main.dragedItem = main.get_instance_by_className(("link_icon_" + _arg1.toString()));
main.dragedItem.x = stage.mouseX;
main.dragedItem.y = stage.mouseY;
main.dragedItem.dragX = 0;
main.dragedItem.dragY = 0;
main.addChild(main.dragedItem);
stage.addEventListener(MouseEvent.MOUSE_MOVE, move_dragedIcon, true);
stage.addEventListener(MouseEvent.MOUSE_DOWN, stop_moveicon, true);
}
public function move_dragedIcon(_arg1:MouseEvent):void{
main.dragedItem.x = (stage.mouseX - main.dragedItem.dragX);
main.dragedItem.y = (stage.mouseY - main.dragedItem.dragY);
}
public function edit_handler(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:Point;
enable_edit(ns_mc, false);
_local2 = (_arg1.currentTarget as MovieClip);
mode = "edit";
nId = main.get_id(_local2.name);
_local2.initX = _local2.x;
_local2.initY = _local2.y;
_local2.sx = _local2.scaleX;
_local3 = new Point(nva_mc.x, nva_mc.y);
_local3 = this.localToGlobal(_local3);
_local3 = ns_mc.globalToLocal(_local3);
Tweener.addTween(_local2, {time:0.5, x:_local3.x, y:_local3.y, scaleX:1, scaleY:1, onComplete:repos});
}
public function before_drag(_arg1:MouseEvent):void{
var _local2:Point;
main.dragedItem = (_arg1.currentTarget as MovieClip);
_local2 = new Point(main.dragedItem.x, main.dragedItem.y);
_local2 = main.dragedItem.parent.localToGlobal(_local2);
_local2 = nva_mc.globalToLocal(_local2);
main.dragedItem.x = _local2.x;
main.dragedItem.y = _local2.y;
nva_mc.addChild(main.dragedItem);
main.dragedItem.dragX = (stage.mouseX - main.dragedItem.x);
main.dragedItem.dragY = (stage.mouseY - main.dragedItem.y);
stage.addEventListener(MouseEvent.MOUSE_MOVE, move_dragedIcon, true);
stage.addEventListener(MouseEvent.MOUSE_DOWN, stop_moveicon, true);
}
public function append_event(_arg1:MovieClip):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, before_drag);
}
public function repos():void{
var _local1:MovieClip;
var _local2:int;
_local1 = ns_mc[("o_" + nId.toString())];
_local1.visible = false;
_local1.x = _local1.initX;
_local1.y = _local1.initY;
_local1.scaleX = (_local1.scaleY = _local1.sx);
main.init_nailSet(nva_mc, _local1.nailData);
_local2 = 1;
while (_local2 <= 5) {
if (nva_mc[("n_" + _local2)].hasOwnProperty("icons")){
re_drag(nva_mc[("n_" + _local2)].icons);
};
_local2++;
};
}
public function delete_obj():void{
main.selItem.parent.removeChild(main.selItem);
main.selItem = null;
}
function frame1(){
main = MovieClip(root);
nailId = 1;
mode = "add";
init_mk_nail();
}
public function stop_moveicon(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:Point;
var _local4:int;
var _local5:Sprite;
stage.removeEventListener(MouseEvent.MOUSE_MOVE, move_dragedIcon, true);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, stop_moveicon, true);
_arg1.stopImmediatePropagation();
_local3 = new Point(stage.mouseX, stage.mouseY);
_local4 = 1;
while (_local4 <= 5) {
_local2 = nva_mc[("n_" + _local4.toString())];
if (_local2.c_mc.hitTestPoint(_local3.x, _local3.y, true)){
break;
};
_local4++;
};
if (_local4 <= 5){
_local3 = new Point(main.dragedItem.x, main.dragedItem.y);
_local3 = main.dragedItem.parent.localToGlobal(_local3);
if (!_local2.hasOwnProperty("icons")){
_local5 = new Sprite();
_local2.addChild(_local5);
_local2.icons = _local5;
} else {
_local5 = _local2.icons;
};
_local3 = _local5.globalToLocal(_local3);
main.dragedItem.x = _local3.x;
main.dragedItem.y = _local3.y;
_local5.addChild(main.dragedItem);
set_sel(main.dragedItem);
if (!main.dragedItem.hasEventListener(MouseEvent.MOUSE_DOWN)){
append_event(main.dragedItem);
};
} else {
main.dragedItem.parent.removeChild(main.dragedItem);
};
main.dragedItem = null;
}
public function save_nail():void{
main.nailData = [];
main.$(ns_mc, function (_arg1:MovieClip, _arg2):void{
if (_arg1.visible){
main.nailData.push(_arg1.nailData);
};
}, "o_");
}
public function set_sel_color(_arg1:int):void{
main.set_nail_color(nva_mc, _arg1);
}
public function save_nail_handler(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:Point;
enable_edit(ns_mc, true);
if (mode == "edit"){
_local2 = ns_mc[("o_" + nId.toString())];
mode = "add";
} else {
if (nailId > 4){
return;
};
_local2 = ns_mc[("o_" + nailId.toString())];
nailId++;
};
_local2.nailData = main.get_nailSetData(nva_mc);
main.init_nailSet(_local2, _local2.nailData);
_local2.initX = _local2.x;
_local2.initY = _local2.y;
_local2.sx = _local2.scaleX;
_local3 = new Point(nva_mc.x, nva_mc.y);
_local3 = this.localToGlobal(_local3);
_local3 = ns_mc.globalToLocal(_local3);
_local2.x = _local3.x;
_local2.y = _local3.y;
_local2.scaleX = 1;
_local2.scaleY = 1;
_local2.visible = true;
Tweener.addTween(_local2, {time:0.5, x:_local2.initX, y:_local2.initY, scaleX:_local2.sx, scaleY:_local2.sx});
main.clear_nailSet(nva_mc);
main.selItem = null;
}
public function re_drag(_arg1:DisplayObjectContainer):void{
var _local2:MovieClip;
var _local3:int;
var _local4:int;
_local3 = _arg1.numChildren;
_local4 = 0;
while (_local4 < _local3) {
_local2 = (_arg1.getChildAt(_local4) as MovieClip);
append_event(_local2);
_local4++;
};
}
public function init_mk_nail():void{
main.$(ns_mc, function (_arg1:MovieClip, _arg2:int):void{
_arg1.visible = false;
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, edit_handler);
}, "o_");
save_btn.addEventListener(MouseEvent.CLICK, save_nail_handler);
}
public function enable_edit(_arg1:MovieClip, _arg2:Boolean):void{
_arg1.mouseChildren = _arg2;
_arg1.mouseEnabled = _arg2;
}
public function set_sel(_arg1:MovieClip):void{
if (main.selItem){
main.removeLight(main.selItem);
};
_arg1.lightColor = 0x990066;
main.selItem = _arg1;
main.addLight(main.selItem);
}
}
}//package _fla
Section 13
//mk4_245 (_fla.mk4_245)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class mk4_245 extends MovieClip {
public var r_10:MovieClip;
public var 新建符号_2:MovieClip;
public var hand_2:MovieClip;
public var hand_1:MovieClip;
public var r_mc:MovieClip;
public var 新符号_78:MovieClip;
public var r_3:MovieClip;
public var r_4:MovieClip;
public var r_5:MovieClip;
public var r_6:MovieClip;
public var r_2:MovieClip;
public var r_7:MovieClip;
public var r_1:MovieClip;
public var r_9:MovieClip;
public var r_8:MovieClip;
public var curHand:MovieClip;
public var main:MovieClip;
public var 咖啡金色珠1:MovieClip;
public function mk4_245(){
addFrameScript(0, frame1);
}
function frame1(){
main = MovieClip(root);
main.init_hand(hand_1);
main.init_hand(hand_2);
hand_2.visible = false;
curHand = hand_1;
r_mc.gotoAndStop(1);
init_ring();
}
public function c_handler(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:int;
_local2 = (_arg1.currentTarget as MovieClip);
_local3 = main.get_id(_local2.name);
_local2.gotoAndStop(_local2.totalFrames);
}
public function drag_ring(_arg1:MouseEvent):void{
r_mc.gotoAndStop(main.get_id(_arg1.currentTarget.name));
stage.addEventListener(MouseEvent.MOUSE_MOVE, move_ring);
stage.addEventListener(MouseEvent.MOUSE_DOWN, stop_ring, true);
}
public function stop_ring(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:int;
stage.removeEventListener(MouseEvent.MOUSE_DOWN, stop_ring, true);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, move_ring);
_local3 = 1;
while (_local3 <= 4) {
_local2 = curHand[("h_" + _local3)];
if (_local2.hitTestPoint(stage.mouseX, stage.mouseY, true)){
break;
};
_local3++;
};
if (_local3 <= 4){
curHand[("r_" + _local3)].gotoAndStop(r_mc.currentFrame);
};
r_mc.y = -500;
}
public function change_hand(_arg1:int):void{
hand_1.visible = (_arg1 == 1);
hand_2.visible = !((_arg1 == 1));
curHand = ((_arg1 == 1)) ? hand_1 : hand_2;
}
public function move_ring(_arg1:MouseEvent):void{
r_mc.x = mouseX;
r_mc.y = mouseY;
}
public function save_hand():void{
var _local1:int;
var _local2:int;
_local1 = 1;
while (_local1 <= 2) {
_local2 = 1;
while (_local2 <= 4) {
main.handData[_local1].ring[_local2] = this[("hand_" + _local1)][("r_" + _local2)].currentFrame;
_local2++;
};
_local1++;
};
}
public function init_ring():void{
main.$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.gotoAndStop(_arg2);
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, drag_ring);
}, "r_");
main.$(hand_1, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, c_handler);
}, "r_");
main.$(hand_2, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, c_handler);
}, "r_");
}
}
}//package _fla
Section 14
//nnn_205 (_fla.nnn_205)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class nnn_205 extends MovieClip {
public var n_txt:TextField;
public function nnn_205(){
addFrameScript(0, frame1);
}
function frame1(){
n_txt.text = (MovieClip(root).username + ",");
}
}
}//package _fla
Section 15
//nnn_477 (_fla.nnn_477)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class nnn_477 extends MovieClip {
public var n_txt:TextField;
public function nnn_477(){
addFrameScript(0, frame1);
}
function frame1(){
n_txt.text = (MovieClip(root).username + "!");
}
}
}//package _fla
Section 16
//play_mc_177 (_fla.play_mc_177)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class play_mc_177 extends MovieClip {
public function play_mc_177(){
addFrameScript(0, frame1);
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, click_handler);
}
public function click_handler(_arg1:MouseEvent):void{
MovieClip(root).play_1();
}
}
}//package _fla
Section 17
//popgals__mc_237 (_fla.popgals__mc_237)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class popgals__mc_237 extends MovieClip {
public function popgals__mc_237(){
addFrameScript(0, frame1);
}
function frame1(){
this.addEventListener(MouseEvent.CLICK, linkHandler);
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.popgals.com/weight-losing-diary.html"), "_blank");
}
}
}//package _fla
Section 18
//popgals_loading_1 (_fla.popgals_loading_1)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public dynamic class popgals_loading_1 extends MovieClip {
public var loading:MovieClip;
public var percent_txt:TextField;
public var logo_btn:SimpleButton;
public var play_btn:SimpleButton;
public function popgals_loading_1(){
addFrameScript(0, frame1, 1, frame2);
}
public function enterFrameHandler(_arg1:Event):void{
var _local2:Number;
_local2 = int(((root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal) * 100));
if (loading.currentFrame < int(((_local2 * this.loading.totalFrames) / 100))){
loading.play();
} else {
loading.stop();
};
if (loading.currentFrame == loading.totalFrames){
this.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
goNext();
};
if (_local2 < 100){
percent_txt.text = (_local2 + "%");
} else {
percent_txt.text = "";
};
}
function frame1(){
stop();
this.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
logo_btn.addEventListener(MouseEvent.CLICK, linkHandler);
}
function frame2(){
stop();
play_btn.addEventListener(MouseEvent.CLICK, playHandler);
}
public function goNext():void{
this.play();
}
public function playHandler(_arg1:MouseEvent):void{
play_btn.removeEventListener(MouseEvent.CLICK, playHandler);
MovieClip(root).play();
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.popgals.com"), "_blank");
}
}
}//package _fla
Section 19
//popgals_sp11_5 (_fla.popgals_sp11_5)
package _fla {
import flash.display.*;
public dynamic class popgals_sp11_5 extends MovieClip {
public function popgals_sp11_5(){
addFrameScript(27, frame28);
}
function frame28(){
stop();
}
}
}//package _fla
Section 20
//popgals_sp13_14 (_fla.popgals_sp13_14)
package _fla {
import flash.display.*;
public dynamic class popgals_sp13_14 extends MovieClip {
public function popgals_sp13_14(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package _fla
Section 21
//popgals_sp5_6 (_fla.popgals_sp5_6)
package _fla {
import flash.display.*;
public dynamic class popgals_sp5_6 extends MovieClip {
public function popgals_sp5_6(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package _fla
Section 22
//popgals_sp9_12 (_fla.popgals_sp9_12)
package _fla {
import flash.display.*;
public dynamic class popgals_sp9_12 extends MovieClip {
public function popgals_sp9_12(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package _fla
Section 23
//secen1_117 (_fla.secen1_117)
package _fla {
import flash.display.*;
public dynamic class secen1_117 extends MovieClip {
public var d_2:MovieClip;
}
}//package _fla
Section 24
//selectjewelry_324 (_fla.selectjewelry_324)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class selectjewelry_324 extends MovieClip {
public function selectjewelry_324(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.gotoAndStop(MovieClip(root).lang);
}
}
}//package _fla
Section 25
//selectonecolor_214 (_fla.selectonecolor_214)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class selectonecolor_214 extends MovieClip {
public function selectonecolor_214(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.gotoAndStop(MovieClip(root).lang);
}
}
}//package _fla
Section 26
//selectonepattern_219 (_fla.selectonepattern_219)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class selectonepattern_219 extends MovieClip {
public function selectonepattern_219(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.gotoAndStop(MovieClip(root).lang);
}
}
}//package _fla
Section 27
//shangseyong_211 (_fla.shangseyong_211)
package _fla {
import flash.display.*;
public dynamic class shangseyong_211 extends MovieClip {
public var p_mc:MovieClip;
}
}//package _fla
Section 28
//shoyong_417 (_fla.shoyong_417)
package _fla {
import flash.display.*;
public dynamic class shoyong_417 extends MovieClip {
public var z_1:MovieClip;
public var z_2:MovieClip;
}
}//package _fla
Section 29
//sprite10_488 (_fla.sprite10_488)
package _fla {
import flash.display.*;
public dynamic class sprite10_488 extends MovieClip {
public function sprite10_488(){
addFrameScript(22, frame23);
}
function frame23(){
stop();
}
}
}//package _fla
Section 30
//sprite2_481 (_fla.sprite2_481)
package _fla {
import flash.display.*;
public dynamic class sprite2_481 extends MovieClip {
public function sprite2_481(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package _fla
Section 31
//sprite3_480 (_fla.sprite3_480)
package _fla {
import flash.display.*;
public dynamic class sprite3_480 extends MovieClip {
public function sprite3_480(){
addFrameScript(26, frame27);
}
function frame27(){
stop();
}
}
}//package _fla
Section 32
//sprite4_482 (_fla.sprite4_482)
package _fla {
import flash.display.*;
public dynamic class sprite4_482 extends MovieClip {
public function sprite4_482(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package _fla
Section 33
//sprite5_483 (_fla.sprite5_483)
package _fla {
import flash.display.*;
public dynamic class sprite5_483 extends MovieClip {
public function sprite5_483(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package _fla
Section 34
//sprite6_484 (_fla.sprite6_484)
package _fla {
import flash.display.*;
public dynamic class sprite6_484 extends MovieClip {
public function sprite6_484(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package _fla
Section 35
//sprite7_485 (_fla.sprite7_485)
package _fla {
import flash.display.*;
public dynamic class sprite7_485 extends MovieClip {
public function sprite7_485(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package _fla
Section 36
//sprite8_486 (_fla.sprite8_486)
package _fla {
import flash.display.*;
public dynamic class sprite8_486 extends MovieClip {
public function sprite8_486(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package _fla
Section 37
//sprite9_487 (_fla.sprite9_487)
package _fla {
import flash.display.*;
public dynamic class sprite9_487 extends MovieClip {
public function sprite9_487(){
addFrameScript(15, frame16);
}
function frame16(){
stop();
}
}
}//package _fla
Section 38
//startscene_176 (_fla.startscene_176)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class startscene_176 extends MovieClip {
public var ok_btn:SimpleButton;
public var name_mc:MovieClip;
public function startscene_176(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
MovieClip(root).start_mc = this;
}
function frame2(){
stop();
ok_btn.addEventListener(MouseEvent.CLICK, ok_handler);
}
public function ok_handler(_arg1:MouseEvent):void{
play_2();
}
public function play_2():void{
var _local1:TextField;
_local1 = name_mc[("t_" + name_mc.currentFrame)];
if (_local1.text != ""){
MovieClip(root).username = _local1.text;
this.play();
};
}
}
}//package _fla
Section 39
//steppanel_392 (_fla.steppanel_392)
package _fla {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class steppanel_392 extends MovieClip {
public var n4_btn:SimpleButton;
public var b1_btn:SimpleButton;
public var b3_btn:SimpleButton;
public var n2_btn:SimpleButton;
public var n1_btn:SimpleButton;
public var n3_btn:SimpleButton;
public var b2_btn:SimpleButton;
public var main:MovieClip;
public function steppanel_392(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function b1_handler(_arg1:MouseEvent):void{
Tweener.addTween(main.mk_1, {time:0.5, x:(main.mk_1.x + 650)});
Tweener.addTween(main.mk_2, {time:0.5, x:(main.mk_2.x + 650)});
this.prevFrame();
}
public function b2_handler(_arg1:MouseEvent):void{
main.mk_3.set_sel_oil(-1);
Tweener.addTween(main.mk_2, {time:0.5, x:(main.mk_2.x + 650)});
Tweener.addTween(main.mk_3, {time:0.5, x:(main.mk_3.x + 650)});
main.setCursor("default");
this.prevFrame();
}
public function b3_handler(_arg1:MouseEvent):void{
main.mk_4.save_hand();
main.init_hand(main.mk_3.hand_1);
main.init_hand(main.mk_3.hand_2);
Tweener.addTween(main.mk_4, {time:0.5, x:(main.mk_4.x + 650)});
Tweener.addTween(main.mk_3, {time:0.5, x:(main.mk_3.x + 650)});
this.prevFrame();
}
function frame3(){
stop();
n3_btn.addEventListener(MouseEvent.CLICK, n3_handler);
b2_btn.addEventListener(MouseEvent.CLICK, b2_handler);
}
function frame1(){
stop();
main = MovieClip(root);
n1_btn.addEventListener(MouseEvent.CLICK, n1_handler);
}
function frame4(){
stop();
n4_btn.addEventListener(MouseEvent.CLICK, n4_handler);
b3_btn.addEventListener(MouseEvent.CLICK, b3_handler);
}
function frame2(){
stop();
n2_btn.addEventListener(MouseEvent.CLICK, n2_handler);
b1_btn.addEventListener(MouseEvent.CLICK, b1_handler);
}
public function n3_handler(_arg1:MouseEvent):void{
main.mk_3.save_hand();
main.init_hand(main.mk_4.hand_1);
main.init_hand(main.mk_4.hand_2);
Tweener.addTween(main.mk_3, {time:0.5, x:(main.mk_3.x - 650)});
Tweener.addTween(main.mk_4, {time:0.5, x:(main.mk_4.x - 650)});
main.setCursor("default");
this.play();
}
public function n4_handler(_arg1:MouseEvent):void{
main.mk_4.save_hand();
main.play();
}
public function n1_handler(_arg1:MouseEvent):void{
if (!main.mk_1.can_next()){
return;
};
main.save_oil();
main.gameStep = main.STEP_MK_NAIL;
Tweener.addTween(main.mk_1, {time:0.5, x:(main.mk_1.x - 650)});
Tweener.addTween(main.mk_2, {time:0.5, x:(main.mk_2.x - 650)});
n1_btn.removeEventListener(MouseEvent.CLICK, n1_handler);
this.play();
}
public function n2_handler(_arg1:MouseEvent):void{
main.mk_2.save_nail();
main.mk_3.init_bottle();
main.mk_3.init_nail();
Tweener.addTween(main.mk_2, {time:0.5, x:(main.mk_2.x - 650)});
Tweener.addTween(main.mk_3, {time:0.5, x:(main.mk_3.x - 650)});
this.play();
}
}
}//package _fla
Section 40
//Timeline_186 (_fla.Timeline_186)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_186 extends MovieClip {
public var t_mc:MovieClip;
public var m_mc:MovieClip;
public function Timeline_186(){
addFrameScript(0, frame1, 178, frame179);
}
function frame1(){
t_mc.mask = m_mc;
}
function frame179(){
stop();
MovieClip(root).play_2();
}
}
}//package _fla
Section 41
//Timeline_206 (_fla.Timeline_206)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_206 extends MovieClip {
public var n_txt:TextField;
public function Timeline_206(){
addFrameScript(0, frame1);
}
function frame1(){
n_txt.text = (MovieClip(root).username + ",");
}
}
}//package _fla
Section 42
//Timeline_207 (_fla.Timeline_207)
package _fla {
import flash.display.*;
public dynamic class Timeline_207 extends MovieClip {
public var save_btn:SimpleButton;
public var bottle_mc:MovieClip;
}
}//package _fla
Section 43
//Timeline_208 (_fla.Timeline_208)
package _fla {
import flash.display.*;
public dynamic class Timeline_208 extends MovieClip {
public var g_mc:MovieClip;
public var m_mc:MovieClip;
public var p_mc:MovieClip;
public var s_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 44
//Timeline_213 (_fla.Timeline_213)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_213 extends MovieClip {
public var m:Matrix;
public var extract:MovieClip;
public var extractIcon:MovieClip;
public var bmp:BitmapData;
public var r:Rectangle;
public var colorList:MovieClip;
public var main:MovieClip;
public function Timeline_213(){
addFrameScript(0, frame1);
}
public function findColor(_arg1:MouseEvent):void{
var _local2:Point;
var _local3:uint;
var _local4:ColorTransform;
_local2 = new Point();
_local2.x = (colorList.mouseX - r.x);
_local2.y = (colorList.mouseY - r.y);
_local3 = bmp.getPixel(_local2.x, _local2.y);
_local4 = new ColorTransform();
_local4.color = _local3;
extract.transform.colorTransform = _local4;
}
function frame1(){
colorList.mouseChildren = false;
main = MovieClip(parent);
r = colorList.getRect(colorList);
bmp = new BitmapData(r.width, r.height, true, 0xFFFFFF);
m = new Matrix();
m.tx = -(r.x);
m.ty = -(r.y);
bmp.draw(colorList, m);
colorList.addEventListener(MouseEvent.MOUSE_MOVE, findColor);
colorList.addEventListener(MouseEvent.MOUSE_UP, set_color);
}
public function set_color(_arg1:MouseEvent):void{
main.set_sel_color(extract.transform.colorTransform.color);
}
}
}//package _fla
Section 45
//Timeline_229 (_fla.Timeline_229)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_229 extends MovieClip {
public var p_1:MovieClip;
public var p_2:MovieClip;
public var p_4:MovieClip;
public var p_8:MovieClip;
public var p_3:MovieClip;
public var p_5:MovieClip;
public var p_6:MovieClip;
public var p_9:MovieClip;
public var p_19:MovieClip;
public var p_16:MovieClip;
public var p_18:MovieClip;
public var p_12:MovieClip;
public var p_13:MovieClip;
public var p_15:MovieClip;
public var p_17:MovieClip;
public var p_10:MovieClip;
public var p_11:MovieClip;
public var p_7:MovieClip;
public var p_14:MovieClip;
public var p_20:MovieClip;
public var main:MovieClip;
public function Timeline_229(){
addFrameScript(0, frame1);
}
public function item_out(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
_local2.gotoAndStop(1);
}
public function item_over(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
setChildIndex(_local2, (this.numChildren - 1));
_local2.gotoAndStop(2);
}
function frame1(){
main = MovieClip(root);
main.$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.gotoAndStop(1);
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.ROLL_OVER, item_over);
_arg1.addEventListener(MouseEvent.ROLL_OUT, item_out);
_arg1.addEventListener(MouseEvent.CLICK, item_click);
}, "p_");
}
public function item_click(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
main.mk_1.set_bottle_pattern(main.get_id(_local2.name));
}
}
}//package _fla
Section 46
//Timeline_247 (_fla.Timeline_247)
package _fla {
import flash.display.*;
public dynamic class Timeline_247 extends MovieClip {
public var l_mc:MovieClip;
public var m_mc:MovieClip;
public var m2_mc:MovieClip;
public var p_mc:MovieClip;
public var s_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 47
//Timeline_251 (_fla.Timeline_251)
package _fla {
import flash.display.*;
public dynamic class Timeline_251 extends MovieClip {
public var l_mc:MovieClip;
public var m_mc:MovieClip;
public var m2_mc:MovieClip;
public var p_mc:MovieClip;
public var s_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 48
//Timeline_255 (_fla.Timeline_255)
package _fla {
import flash.display.*;
public dynamic class Timeline_255 extends MovieClip {
public var l_mc:MovieClip;
public var m_mc:MovieClip;
public var m2_mc:MovieClip;
public var p_mc:MovieClip;
public var s_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 49
//Timeline_259 (_fla.Timeline_259)
package _fla {
import flash.display.*;
public dynamic class Timeline_259 extends MovieClip {
public var l_mc:MovieClip;
public var m_mc:MovieClip;
public var m2_mc:MovieClip;
public var p_mc:MovieClip;
public var s_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 50
//Timeline_263 (_fla.Timeline_263)
package _fla {
import flash.display.*;
public dynamic class Timeline_263 extends MovieClip {
public var l_mc:MovieClip;
public var m_mc:MovieClip;
public var m2_mc:MovieClip;
public var p_mc:MovieClip;
public var s_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 51
//Timeline_271 (_fla.Timeline_271)
package _fla {
import flash.display.*;
public dynamic class Timeline_271 extends MovieClip {
public var 新建符号_2:MovieClip;
public var 新符号_78:MovieClip;
public var 咖啡金色珠1:MovieClip;
}
}//package _fla
Section 52
//Timeline_288 (_fla.Timeline_288)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_288 extends MovieClip {
public var _mc:MovieClip;
public function Timeline_288(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
_mc.mouseChildren = false;
_mc.buttonMode = true;
_mc.addEventListener(MouseEvent.CLICK, change_hand);
}
public function change_hand(_arg1:MouseEvent):void{
_mc.gotoAndStop((3 - _mc.currentFrame));
MovieClip(parent).change_hand(_mc.currentFrame);
}
}
}//package _fla
Section 53
//Timeline_295 (_fla.Timeline_295)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_295 extends MovieClip {
public var t_1:MovieClip;
public var t_2:MovieClip;
public var erase_btn:SimpleButton;
public var o_3:MovieClip;
public var o_6:MovieClip;
public var o_9:MovieClip;
public var o_4:MovieClip;
public var o_1:MovieClip;
public var o_2:MovieClip;
public var o_7:MovieClip;
public var o_8:MovieClip;
public var hand_1:MovieClip;
public var hand_2:MovieClip;
public var o_5:MovieClip;
public var n_2:MovieClip;
public var n_1:MovieClip;
public var n_3:MovieClip;
public var t_3:MovieClip;
public var oilId:int;
public var main:MovieClip;
public var n_4:MovieClip;
public var cs_erase_mc:MovieClip;
public var curHand:MovieClip;
public var cs_oil_mc:MovieClip;
public var o_10:MovieClip;
public function Timeline_295(){
addFrameScript(0, frame1);
}
public function append_event():void{
main.$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, sel_oil);
}, "o_");
main.$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, use_nail_tpl);
}, "n_");
main.$(hand_1, function (_arg1:MovieClip, _arg2:int):void{
var _local3:MovieClip;
_local3 = _arg1.c_mc;
_local3.mouseChildren = false;
_local3.buttonMode = true;
_local3.addEventListener(MouseEvent.CLICK, set_hand_oil_handler);
}, "n_");
main.$(hand_2, function (_arg1:MovieClip, _arg2:int):void{
var _local3:MovieClip;
_local3 = _arg1.c_mc;
_local3.mouseChildren = false;
_local3.buttonMode = true;
_local3.addEventListener(MouseEvent.CLICK, set_hand_oil_handler);
}, "n_");
main.$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, t_clicked);
}, "t_");
erase_btn.addEventListener(MouseEvent.CLICK, erase_handler);
}
public function change_nail():void{
var f:int;
f = get_nail_frame(main.nailType, main.nailLength);
main.$(hand_1, function (_arg1:MovieClip, _arg2:int):void{
_arg1.c_mc.gotoAndStop(f);
_arg1.m_mc.gotoAndStop(f);
_arg1.l_mc.gotoAndStop(f);
_arg1.s_mc.gotoAndStop(f);
_arg1.m2_mc.gotoAndStop(f);
}, "n_");
main.$(hand_2, function (_arg1:MovieClip, _arg2:int):void{
_arg1.c_mc.gotoAndStop(f);
_arg1.m_mc.gotoAndStop(f);
_arg1.l_mc.gotoAndStop(f);
_arg1.s_mc.gotoAndStop(f);
_arg1.m2_mc.gotoAndStop(f);
}, "n_");
}
public function set_hand_oil_handler(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget.parent as MovieClip);
if (main.cursorType == "oil"){
main.init_bottle(_local2, main.oilVo.ctf, main.oilVo.pid);
if (_local2.hasOwnProperty("icons")){
_local2.removeChild(_local2.icons);
delete _local2.icons;
};
} else {
if (main.cursorType == "erase"){
main.init_bottle(_local2, -1, 0);
};
};
}
function frame1(){
main = MovieClip(root);
oilId = -1;
curHand = hand_1;
append_event();
main.init_hand(hand_1);
main.init_hand(hand_2);
hand_2.visible = false;
}
public function set_sel_oil(_arg1:int):void{
if (oilId > 0){
this[("o_" + oilId)].g_mc.visible = true;
this[("o_" + oilId)].s_mc.visible = true;
};
if (oilId == _arg1){
main.setCursor("default");
oilId = 0;
return;
};
oilId = _arg1;
if (_arg1 > 0){
main.oilVo = main.bottleData[(_arg1 - 1)];
main.init_bottle(cs_oil_mc, main.oilVo.ctf, main.oilVo.pid);
main.setCursor("oil", cs_oil_mc);
this[("o_" + oilId)].g_mc.visible = false;
this[("o_" + oilId)].s_mc.visible = false;
};
}
public function sel_oil(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
set_sel_oil(main.get_id(_local2.name));
}
public function t_clicked(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:int;
_local2 = (_arg1.currentTarget as MovieClip);
_local3 = main.get_id(_local2.name);
main.nailType = _local3;
change_nail();
}
public function erase_handler(_arg1:MouseEvent):void{
if (main.cursorType == "erase"){
main.setCursor("default");
} else {
main.setCursor("erase", cs_erase_mc);
};
}
public function get_nail_frame(_arg1:int, _arg2:int):int{
return ((((_arg1 - 1) * 5) + _arg2));
}
public function set_nail_len(_arg1:int):void{
main.nailLength = _arg1;
change_nail();
}
public function use_nail_tpl(_arg1:MouseEvent):void{
var _mc:MovieClip;
var i:int;
var vo:Object;
var e = _arg1;
_mc = (e.currentTarget as MovieClip);
i = main.get_id(_mc.name);
vo = main.nailData[(i - 1)];
main.$(curHand, function (_arg1:MovieClip, _arg2:int):void{
main.init_bottle(_arg1, vo.c, 0);
main.init_icons(_arg1, vo.icons[_arg2]);
_arg1.icons.mouseEnabled = false;
_arg1.icons.mouseChildren = false;
}, "n_");
}
public function init_bottle():void{
var _local1:Array;
var _local2:int;
var _local3:MovieClip;
var _local4:Object;
var _local5:int;
_local1 = main.bottleData;
_local2 = _local1.length;
_local5 = 1;
while (_local5 <= _local2) {
_local3 = this[("o_" + _local5)];
_local4 = _local1[(_local5 - 1)];
_local3.visible = true;
main.init_bottle(_local3, _local4.ctf, _local4.pid);
_local5++;
};
while (_local5 <= 10) {
this[("o_" + _local5)].visible = false;
_local5++;
};
}
public function change_hand(_arg1:int):void{
hand_1.visible = (_arg1 == 1);
hand_2.visible = !((_arg1 == 1));
curHand = ((_arg1 == 1)) ? hand_1 : hand_2;
}
public function init_nail():void{
var _local1:Array;
var _local2:int;
var _local3:MovieClip;
var _local4:Object;
var _local5:int;
_local1 = main.nailData;
_local2 = _local1.length;
_local5 = 1;
while (_local5 <= _local2) {
_local3 = this[("n_" + _local5)];
_local4 = _local1[(_local5 - 1)];
_local3.visible = true;
main.init_nailSet(_local3, _local4);
_local5++;
};
while (_local5 <= 4) {
this[("n_" + _local5)].visible = false;
_local5++;
};
}
public function save_hand():void{
var _local1:MovieClip;
var _local2:MovieClip;
var _local3:Object;
var _local4:int;
var _local5:Array;
var _local6:int;
var _local7:Object;
var _local8:Object;
_local4 = 1;
while (_local4 <= 2) {
_local1 = this[("hand_" + _local4)];
if (main.handData[_local4] == null){
main.handData[_local4] = main.copyObject(main.handVo);
};
_local3 = main.handData[_local4];
_local3.nailType = main.nailType;
_local3.nailLength = main.nailLength;
_local5 = [];
_local6 = 1;
while (_local6 <= 5) {
_local2 = _local1[("n_" + _local6)];
_local7 = main.copyObject(main.nailVo);
_local8 = main.get_oil_data(_local2);
_local7.ctf = _local8.ctf;
_local7.pid = _local8.pid;
if (_local2.hasOwnProperty("icons")){
_local7.icons = main.get_icons(_local2.icons);
} else {
_local7.icons = [];
};
_local5[_local6] = _local7;
_local6++;
};
_local3.nail = _local5;
_local4++;
};
}
}
}//package _fla
Section 54
//Timeline_301 (_fla.Timeline_301)
package _fla {
import flash.display.*;
public dynamic class Timeline_301 extends MovieClip {
public var n_2:MovieClip;
public var n_1:MovieClip;
public var n_3:MovieClip;
public var n_5:MovieClip;
public var n_4:MovieClip;
}
}//package _fla
Section 55
//Timeline_302 (_fla.Timeline_302)
package _fla {
import flash.display.*;
public dynamic class Timeline_302 extends MovieClip {
public var m_mc:MovieClip;
public var p_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 56
//Timeline_304 (_fla.Timeline_304)
package _fla {
import flash.display.*;
public dynamic class Timeline_304 extends MovieClip {
public var m_mc:MovieClip;
public var p_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 57
//Timeline_306 (_fla.Timeline_306)
package _fla {
import flash.display.*;
public dynamic class Timeline_306 extends MovieClip {
public var m_mc:MovieClip;
public var p_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 58
//Timeline_308 (_fla.Timeline_308)
package _fla {
import flash.display.*;
public dynamic class Timeline_308 extends MovieClip {
public var m_mc:MovieClip;
public var p_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 59
//Timeline_310 (_fla.Timeline_310)
package _fla {
import flash.display.*;
public dynamic class Timeline_310 extends MovieClip {
public var m_mc:MovieClip;
public var p_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 60
//Timeline_316 (_fla.Timeline_316)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_316 extends MovieClip {
public var minN:int;
public var maxN:int;
public var maxX:Number;
public var minX:Number;
public var offset:Number;
public var thumb_mc:MovieClip;
public var length:int;
public function Timeline_316(){
addFrameScript(0, frame1);
}
public function before_drag(_arg1:MouseEvent):void{
thumb_mc.dragData = {x:(stage.mouseX - thumb_mc.x)};
stage.addEventListener(MouseEvent.MOUSE_MOVE, move_item);
stage.addEventListener(MouseEvent.MOUSE_UP, stop_move);
}
function frame1(){
maxX = thumb_mc.x;
minX = 9.5;
offset = (maxX - minX);
maxN = 5;
minN = 1;
length = 5;
thumb_mc.mouseChildren = false;
thumb_mc.buttonMode = true;
thumb_mc.addEventListener(MouseEvent.MOUSE_DOWN, before_drag);
}
public function move_item(_arg1:MouseEvent):void{
var _local2:Number;
var _local3:int;
_local2 = (stage.mouseX - thumb_mc.dragData.x);
_local2 = Math.max(minX, Math.min(maxX, _local2));
thumb_mc.x = _local2;
_local3 = Math.round((((thumb_mc.x - minX) / offset) * 100));
set_n(Math.ceil((_local3 / 20)));
}
public function set_n(_arg1:int):void{
if (_arg1 == 0){
_arg1 = 1;
};
if (_arg1 == length){
return;
};
length = _arg1;
MovieClip(parent).set_nail_len((6 - _arg1));
}
public function stop_move(_arg1:MouseEvent):void{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, move_item);
stage.removeEventListener(MouseEvent.MOUSE_UP, stop_move);
}
}
}//package _fla
Section 61
//Timeline_318 (_fla.Timeline_318)
package _fla {
import flash.display.*;
public dynamic class Timeline_318 extends MovieClip {
public var g_mc:MovieClip;
public var m_mc:MovieClip;
public var p_mc:MovieClip;
public var c_mc:MovieClip;
}
}//package _fla
Section 62
//Timeline_322 (_fla.Timeline_322)
package _fla {
import flash.display.*;
public dynamic class Timeline_322 extends MovieClip {
public var n_2:MovieClip;
public var n_1:MovieClip;
public var n_3:MovieClip;
public var n_5:MovieClip;
public var n_4:MovieClip;
}
}//package _fla
Section 63
//Timeline_323 (_fla.Timeline_323)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_323 extends MovieClip {
public var o_16:MovieClip;
public var o_14:MovieClip;
public var o_20:MovieClip;
public var o_22:MovieClip;
public var o_19:MovieClip;
public var o_21:MovieClip;
public var o_23:MovieClip;
public var o_15:MovieClip;
public var o_18:MovieClip;
public var o_3:MovieClip;
public var o_6:MovieClip;
public var o_9:MovieClip;
public var o_4:MovieClip;
public var o_1:MovieClip;
public var o_2:MovieClip;
public var o_7:MovieClip;
public var o_8:MovieClip;
public var o_5:MovieClip;
public var main:MovieClip;
public var o_10:MovieClip;
public var o_12:MovieClip;
public var o_13:MovieClip;
public var o_17:MovieClip;
public var o_11:MovieClip;
public function Timeline_323(){
addFrameScript(0, frame1);
}
public function item_out(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
main.removeLight(_local2);
}
public function item_up(_arg1:MouseEvent):void{
main.mk_2.init_drag(main.get_id(_arg1.currentTarget.name));
}
function frame1(){
main = MovieClip(root);
main.$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.ROLL_OUT, item_out);
_arg1.addEventListener(MouseEvent.ROLL_OVER, item_over);
_arg1.addEventListener(MouseEvent.MOUSE_UP, item_up);
}, "o_");
}
public function item_over(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
main.addLight(_local2);
}
}
}//package _fla
Section 64
//Timeline_325 (_fla.Timeline_325)
package _fla {
import flash.display.*;
public dynamic class Timeline_325 extends MovieClip {
public var p23:link_icon_23;
}
}//package _fla
Section 65
//Timeline_327 (_fla.Timeline_327)
package _fla {
import flash.display.*;
public dynamic class Timeline_327 extends MovieClip {
public var p1:link_icon_1;
}
}//package _fla
Section 66
//Timeline_330 (_fla.Timeline_330)
package _fla {
import flash.display.*;
public dynamic class Timeline_330 extends MovieClip {
public var p2:link_icon_2;
}
}//package _fla
Section 67
//Timeline_332 (_fla.Timeline_332)
package _fla {
import flash.display.*;
public dynamic class Timeline_332 extends MovieClip {
public var p3:link_icon_3;
}
}//package _fla
Section 68
//Timeline_334 (_fla.Timeline_334)
package _fla {
import flash.display.*;
public dynamic class Timeline_334 extends MovieClip {
public var p4:link_icon_4;
}
}//package _fla
Section 69
//Timeline_336 (_fla.Timeline_336)
package _fla {
import flash.display.*;
public dynamic class Timeline_336 extends MovieClip {
public var p5:link_icon_5;
}
}//package _fla
Section 70
//Timeline_338 (_fla.Timeline_338)
package _fla {
import flash.display.*;
public dynamic class Timeline_338 extends MovieClip {
public var p6:link_icon_6;
}
}//package _fla
Section 71
//Timeline_340 (_fla.Timeline_340)
package _fla {
import flash.display.*;
public dynamic class Timeline_340 extends MovieClip {
public var p7:link_icon_7;
}
}//package _fla
Section 72
//Timeline_343 (_fla.Timeline_343)
package _fla {
import flash.display.*;
public dynamic class Timeline_343 extends MovieClip {
public var p15:link_icon_15;
}
}//package _fla
Section 73
//Timeline_346 (_fla.Timeline_346)
package _fla {
import flash.display.*;
public dynamic class Timeline_346 extends MovieClip {
public var p11:link_icon_11;
}
}//package _fla
Section 74
//Timeline_348 (_fla.Timeline_348)
package _fla {
import flash.display.*;
public dynamic class Timeline_348 extends MovieClip {
public var p10:link_icon_10;
}
}//package _fla
Section 75
//Timeline_350 (_fla.Timeline_350)
package _fla {
import flash.display.*;
public dynamic class Timeline_350 extends MovieClip {
public var p8:link_icon_8;
}
}//package _fla
Section 76
//Timeline_353 (_fla.Timeline_353)
package _fla {
import flash.display.*;
public dynamic class Timeline_353 extends MovieClip {
public var p9:link_icon_9;
}
}//package _fla
Section 77
//Timeline_357 (_fla.Timeline_357)
package _fla {
import flash.display.*;
public dynamic class Timeline_357 extends MovieClip {
public var p14:link_icon_14;
}
}//package _fla
Section 78
//Timeline_359 (_fla.Timeline_359)
package _fla {
import flash.display.*;
public dynamic class Timeline_359 extends MovieClip {
public var p13:link_icon_13;
}
}//package _fla
Section 79
//Timeline_363 (_fla.Timeline_363)
package _fla {
import flash.display.*;
public dynamic class Timeline_363 extends MovieClip {
public var p12:link_icon_12;
}
}//package _fla
Section 80
//Timeline_366 (_fla.Timeline_366)
package _fla {
import flash.display.*;
public dynamic class Timeline_366 extends MovieClip {
public var p19:link_icon_19;
}
}//package _fla
Section 81
//Timeline_369 (_fla.Timeline_369)
package _fla {
import flash.display.*;
public dynamic class Timeline_369 extends MovieClip {
public var p16:link_icon_16;
}
}//package _fla
Section 82
//Timeline_371 (_fla.Timeline_371)
package _fla {
import flash.display.*;
public dynamic class Timeline_371 extends MovieClip {
public var p17:link_icon_17;
}
}//package _fla
Section 83
//Timeline_373 (_fla.Timeline_373)
package _fla {
import flash.display.*;
public dynamic class Timeline_373 extends MovieClip {
public var p18:link_icon_18;
}
}//package _fla
Section 84
//Timeline_375 (_fla.Timeline_375)
package _fla {
import flash.display.*;
public dynamic class Timeline_375 extends MovieClip {
public var p20:link_icon_20;
}
}//package _fla
Section 85
//Timeline_377 (_fla.Timeline_377)
package _fla {
import flash.display.*;
public dynamic class Timeline_377 extends MovieClip {
public var p21:link_icon_21;
}
}//package _fla
Section 86
//Timeline_379 (_fla.Timeline_379)
package _fla {
import flash.display.*;
public dynamic class Timeline_379 extends MovieClip {
public var p22:link_icon_22;
}
}//package _fla
Section 87
//Timeline_381 (_fla.Timeline_381)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_381 extends MovieClip {
public var actObj:Object;
public var b_2:MovieClip;
public var b_4:MovieClip;
public var b_5:MovieClip;
public var b_6:MovieClip;
public var b_7:MovieClip;
public var b_3:MovieClip;
public var b_1:MovieClip;
public var main:MovieClip;
public function Timeline_381(){
addFrameScript(0, frame1);
}
public function move_index(_arg1:int):void{
var _local2:int;
var _local3:int;
_local2 = main.selItem.parent.getChildIndex(main.selItem);
_local3 = (_local2 + _arg1);
_local3 = Math.max(0, Math.min((main.selItem.parent.numChildren - 1), _local3));
if (_local3 != _local2){
main.selItem.parent.setChildIndex(main.selItem, _local3);
};
}
public function item_out(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
_local2.scaleX = (_local2.scaleY = 1);
}
public function item_down(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:int;
if (main.selItem == null){
return;
};
actObj = {};
_local2 = (_arg1.currentTarget as MovieClip);
_local3 = main.get_id(_local2.name);
switch (_local3){
case 1:
actObj.scaleY = 0.02;
break;
case 2:
actObj.scaleY = -0.02;
break;
case 3:
reflect_obj();
return;
case 4:
actObj.rotation = 5;
break;
case 5:
move_index(1);
return;
case 6:
move_index(-1);
return;
case 7:
delete_obj();
return;
};
this.addEventListener(Event.ENTER_FRAME, do_update);
stage.addEventListener(MouseEvent.MOUSE_UP, stop_update);
}
public function delete_obj():void{
MovieClip(parent).delete_obj();
}
function frame1(){
main = MovieClip(root);
actObj = {};
main.$(this, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.ROLL_OUT, item_out);
_arg1.addEventListener(MouseEvent.ROLL_OVER, item_over);
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, item_down);
}, "b_");
}
public function reflect_obj():void{
main.selItem.scaleX = -(main.selItem.scaleX);
}
public function item_over(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
_local2.scaleX = (_local2.scaleY = 1.05);
}
public function stop_update(_arg1:MouseEvent):void{
this.removeEventListener(Event.ENTER_FRAME, do_update);
stage.removeEventListener(MouseEvent.MOUSE_UP, stop_update);
}
public function do_update(_arg1:Event):void{
var _local2:String;
for (_local2 in actObj) {
main.selItem[_local2] = (main.selItem[_local2] + actObj[_local2]);
};
main.selItem.scaleX = (((main.selItem.scaleX > 0)) ? 1 : -1 * main.selItem.scaleY);
}
}
}//package _fla
Section 88
//Timeline_389 (_fla.Timeline_389)
package _fla {
import flash.display.*;
public dynamic class Timeline_389 extends MovieClip {
public var o_3:MovieClip;
public var o_2:MovieClip;
public var o_4:MovieClip;
public var o_1:MovieClip;
}
}//package _fla
Section 89
//Timeline_390 (_fla.Timeline_390)
package _fla {
import flash.events.*;
import caurina.transitions.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_390 extends MovieClip {
public var bId:int;
public var bs_mc:MovieClip;
public var save_btn:SimpleButton;
public var bottle_mc:MovieClip;
public var main:MovieClip;
public var mode:String;
public function Timeline_390(){
addFrameScript(0, frame1);
}
public function clear_mk_oil():void{
save_btn.removeEventListener(MouseEvent.CLICK, save_bottle);
}
public function can_next():Boolean{
return ((main.bottleId > 1));
}
public function append_event():void{
main.$(bs_mc, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, edit_bottle);
}, "b_");
}
function frame1(){
main = MovieClip(root);
mode = "add";
append_event();
init_mk_oil();
}
public function repos_bottle():void{
var _local1:MovieClip;
_local1 = bs_mc[("b_" + bId.toString())];
_local1.visible = false;
_local1.x = _local1.initX;
_local1.y = _local1.initY;
_local1.scaleX = (_local1.scaleY = 0.624);
main.init_bottle(bottle_mc, _local1.c_mc.ctf, _local1.p_mc.pid);
}
public function set_sel_color(_arg1:uint):void{
set_bottle_oil(_arg1);
}
public function enable_edit(_arg1:MovieClip, _arg2:Boolean):void{
_arg1.mouseChildren = _arg2;
_arg1.mouseEnabled = _arg2;
}
public function set_bottle_pattern(_arg1:int):void{
main.fill_with_pattern(bottle_mc.p_mc, _arg1, bottle_mc.m_mc.width, bottle_mc.m_mc.height);
}
public function edit_bottle(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:Point;
enable_edit(bs_mc, false);
_local2 = (_arg1.currentTarget as MovieClip);
_local3 = new Point(bottle_mc.x, bottle_mc.y);
_local3 = this.localToGlobal(_local3);
_local3 = bs_mc.globalToLocal(_local3);
_local2.initX = _local2.x;
_local2.initY = _local2.y;
bId = main.get_id(_local2.name);
mode = "edit";
Tweener.addTween(_local2, {time:0.5, x:_local3.x, y:_local3.y, scaleX:1, scaleY:1, onComplete:repos_bottle});
}
public function init_mk_oil():void{
save_btn.addEventListener(MouseEvent.CLICK, save_bottle);
}
public function set_bottle_oil(_arg1:uint):void{
main.set_ctf(bottle_mc.c_mc, _arg1);
}
public function save_bottle(_arg1:MouseEvent):void{
var _local2:Object;
var _local3:MovieClip;
var _local4:Point;
enable_edit(bs_mc, true);
if (((bottle_mc.c_mc.hasOwnProperty("ctf")) || (bottle_mc.p_mc.hasOwnProperty("pid")))){
_local2 = main.get_oil_data(bottle_mc);
if (mode == "edit"){
_local3 = bs_mc[("b_" + bId)];
mode = "add";
} else {
if (main.bottleId == 11){
return;
};
_local3 = bs_mc[("b_" + main.bottleId)];
main.bottleId++;
};
_local4 = new Point(bottle_mc.x, bottle_mc.y);
_local4 = this.localToGlobal(_local4);
_local4 = bs_mc.globalToLocal(_local4);
_local3.initX = _local3.x;
_local3.initY = _local3.y;
_local3.x = _local4.x;
_local3.y = _local4.y;
main.init_bottle(_local3, _local2.ctf, _local2.pid);
_local3.visible = true;
Tweener.addTween(_local3, {time:0.5, x:_local3.initX, y:_local3.initY});
clear_bottle(bottle_mc);
};
}
public function clear_bottle(_arg1):void{
main.set_ctf(_arg1.c_mc, -1);
delete _arg1.c_mc.ctf;
delete _arg1.p_mc.pid;
while (_arg1.p_mc.numChildren) {
_arg1.p_mc.removeChildAt(0);
};
}
}
}//package _fla
Section 90
//Timeline_413 (_fla.Timeline_413)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_413 extends MovieClip {
public var main:MovieClip;
public var s_mc:MovieClip;
public function Timeline_413(){
addFrameScript(0, frame1);
}
public function item_out(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
_local2.scaleX = (_local2.scaleY = 1);
}
function frame1(){
main = MovieClip(root);
main.$(s_mc, function (_arg1:MovieClip, _arg2:int):void{
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.initData = {x:_arg1.x, y:_arg1.y};
_arg1.addEventListener(MouseEvent.ROLL_OUT, item_out);
_arg1.addEventListener(MouseEvent.ROLL_OVER, item_over);
}, "z_");
}
public function item_over(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
_local2.scaleX = (_local2.scaleY = 1.3);
s_mc.setChildIndex(_local2, 1);
}
}
}//package _fla
Section 91
//Timeline_419 (_fla.Timeline_419)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_419 extends MovieClip {
public var hand_2:MovieClip;
public function Timeline_419(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(root).init_hand(hand_2);
}
}
}//package _fla
Section 92
//Timeline_421 (_fla.Timeline_421)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_421 extends MovieClip {
public var hand_1:MovieClip;
public function Timeline_421(){
addFrameScript(0, frame1);
}
function frame1(){
MovieClip(root).init_hand(hand_1);
}
}
}//package _fla
Section 93
//Timeline_474 (_fla.Timeline_474)
package _fla {
import flash.display.*;
public dynamic class Timeline_474 extends MovieClip {
public function Timeline_474(){
addFrameScript(10, frame11);
}
function frame11(){
stop();
}
}
}//package _fla
Section 94
//Timeline_478 (_fla.Timeline_478)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_478 extends MovieClip {
public var n_txt:TextField;
public function Timeline_478(){
addFrameScript(0, frame1);
}
function frame1(){
n_txt.text = (MovieClip(root).username + "!");
}
}
}//package _fla
Section 95
//title_175 (_fla.title_175)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class title_175 extends MovieClip {
public function title_175(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.gotoAndStop(MovieClip(root).lang);
}
}
}//package _fla
Section 96
//zi_204 (_fla.zi_204)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.filters.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.media.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class zi_204 extends MovieClip {
public function zi_204(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
this.gotoAndStop(MovieClip(root).lang);
}
}
}//package _fla
Section 97
//AuxFunctions (caurina.transitions.AuxFunctions)
package caurina.transitions {
public class AuxFunctions {
public static function getObjectLength(_arg1:Object):uint{
var _local2:uint;
var _local3:String;
_local2 = 0;
for (_local3 in _arg1) {
_local2++;
};
return (_local2);
}
public static function numberToG(_arg1:Number):Number{
return (((_arg1 & 0xFF00) >> 8));
}
public static function numberToB(_arg1:Number):Number{
return ((_arg1 & 0xFF));
}
public static function numberToR(_arg1:Number):Number{
return (((_arg1 & 0xFF0000) >> 16));
}
public static function concatObjects(... _args):Object{
var _local2:Object;
var _local3:Object;
var _local4:int;
var _local5:String;
_local2 = {};
_local4 = 0;
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 98
//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 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 easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period;
_local8 = (((!(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 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 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 easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(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 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 easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(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 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 easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot;
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
}
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 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 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));
}
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 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 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 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 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 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 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 easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
_arg1 = (_arg1 / _arg4);
return ((((_arg3 * _arg1) * _arg1) + _arg2));
}
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 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 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 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 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 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 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 easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(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 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 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 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 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 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 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 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 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 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 easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
var _local6:Number;
var _local7:Number;
var _local8:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
_local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period;
_local8 = (((!(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 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 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 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));
}
}
}//package caurina.transitions
Section 99
//PropertyInfoObj (caurina.transitions.PropertyInfoObj)
package caurina.transitions {
public class PropertyInfoObj {
public var originalValueComplete:Object;
public var modifierParameters:Array;
public var isSpecialProperty:Boolean;
public var hasModifier:Boolean;
public var valueComplete:Number;
public var extra:Object;
public var valueStart:Number;
public var modifierFunction:Function;
public var arrayIndex:Number;
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 toString():String{
var _local1:String;
_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);
}
public function clone():PropertyInfoObj{
var _local1:PropertyInfoObj;
_local1 = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
return (_local1);
}
}
}//package caurina.transitions
Section 100
//SpecialProperty (caurina.transitions.SpecialProperty)
package caurina.transitions {
public class SpecialProperty {
public var parameters:Array;
public var preProcess:Function;
public var setValue:Function;
public var getValue: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:String;
_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 101
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier)
package caurina.transitions {
public class SpecialPropertyModifier {
public var getValue:Function;
public var modifyValues:Function;
public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
modifyValues = _arg1;
getValue = _arg2;
}
public function toString():String{
var _local1:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertyModifier ");
_local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("getValue:" + String(getValue)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 102
//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:String;
_local1 = "";
_local1 = (_local1 + "[SpecialPropertySplitter ");
_local1 = (_local1 + ("splitValues:" + String(splitValues)));
_local1 = (_local1 + ", ");
_local1 = (_local1 + ("parameters:" + String(parameters)));
_local1 = (_local1 + "]");
return (_local1);
}
}
}//package caurina.transitions
Section 103
//Tweener (caurina.transitions.Tweener)
package caurina.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tweener {
private static var _timeScale:Number = 1;
private static var _currentTimeFrame:Number;
private static var _specialPropertySplitterList:Object;
public static var autoOverwrite:Boolean = true;
private static var _engineExists:Boolean = false;
private static var _currentTime:Number;
private static var _tweenList:Array;
private static var _specialPropertyModifierList:Object;
private static var _specialPropertyList:Object;
private static var _transitionList:Object;
private static var _inited:Boolean = false;
private static var __tweener_controller__:MovieClip;
public function Tweener(){
trace("Tweener is a static class and should not be instantiated.");
}
public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
var _local4:SpecialPropertyModifier;
if (!_inited){
init();
};
_local4 = new SpecialPropertyModifier(_arg2, _arg3);
_specialPropertyModifierList[_arg1] = _local4;
}
public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
var _local6:SpecialProperty;
if (!_inited){
init();
};
_local6 = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
_specialPropertyList[_arg1] = _local6;
}
public static function init(... _args):void{
_inited = true;
_transitionList = new Object();
Equations.init();
_specialPropertyList = new Object();
_specialPropertyModifierList = new Object();
_specialPropertySplitterList = new Object();
}
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 addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Array;
var _local5:Object;
var _local6:Number;
var _local7:Number;
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];
};
_local5 = _arg2;
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local6 = (isNaN(_local5.time)) ? 0 : _local5.time;
_local7 = (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 pauseAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
pauseTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function removeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
var _local5:SpecialPropertySplitter;
var _local6:Array;
var _local7:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
if (_specialPropertySplitterList[_args[_local4]]){
_local5 = _specialPropertySplitterList[_args[_local4]];
_local6 = _local5.splitValues(_arg1, null);
_local7 = 0;
while (_local7 < _local6.length) {
_local3.push(_local6[_local7].name);
_local7++;
};
} else {
_local3.push(_args[_local4]);
};
};
_local4++;
};
return (affectTweens(removeTweenByIndex, _arg1, _local3));
}
public static function updateFrame():void{
_currentTimeFrame++;
}
public static function splitTweens(_arg1:Number, _arg2:Array):uint{
var _local3:TweenListObj;
var _local4:TweenListObj;
var _local5:uint;
var _local6:String;
var _local7:Boolean;
_local3 = _tweenList[_arg1];
_local4 = _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));
}
public static function resumeTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
var _local3:Number;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (!(_local2.isPaused)))){
return (false);
};
_local3 = getCurrentTweeningTime(_local2);
_local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
_local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
_local2.timePaused = undefined;
_local2.isPaused = false;
return (true);
}
public static function getVersion():String{
return ("AS3 1.33.74");
}
public static function onEnterFrame(_arg1:Event):void{
var _local2:Boolean;
updateTime();
updateFrame();
_local2 = false;
_local2 = updateTweens();
if (!_local2){
stopEngine();
};
}
public static function updateTime():void{
_currentTime = getTimer();
}
private static function updateTweenByIndex(_arg1:Number):Boolean{
var tTweening:TweenListObj;
var isOver:Boolean;
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 cTime:Number;
var tProperty:Object;
var pv:Number;
var i = _arg1;
tTweening = _tweenList[i];
if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
return (false);
};
isOver = false;
cTime = getCurrentTweeningTime(tTweening);
if (cTime >= tTweening.timeStart){
tScope = tTweening.scope;
if (tTweening.isCaller){
if (!tTweening.hasStarted){
if (Boolean(tTweening.onStart)){
eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope;
try {
tTweening.onStart.apply(eventScope, tTweening.onStartParams);
} catch(e2:Error) {
handleError(tTweening, e2, "onStart");
};
};
tTweening.hasStarted = true;
};
do {
t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
b = tTweening.timeStart;
c = (tTweening.timeComplete - tTweening.timeStart);
d = (tTweening.timeComplete - tTweening.timeStart);
nv = tTweening.transition(t, b, c, d);
} 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(e2:Error) {
handleError(tTweening, e2, "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);
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);
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(e3:Error) {
handleError(tTweening, e3, "onUpdate");
};
};
} else {
tTweening.updatesSkipped++;
};
};
if (((isOver) && (Boolean(tTweening.onComplete)))){
eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope;
try {
tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
} catch(e4:Error) {
handleError(tTweening, e4, "onComplete");
};
};
return (!(isOver));
};
return (true);
}
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 resumeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
resumeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
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()));
};
};
}
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();
}
public static function removeAllTweens():Boolean{
var _local1:Boolean;
var _local2:uint;
if (!Boolean(_tweenList)){
return (false);
};
_local1 = false;
_local2 = 0;
while (_local2 < _tweenList.length) {
removeTweenByIndex(_local2);
_local1 = true;
_local2++;
};
return (_local1);
}
public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
var _local3:Number;
var _local4:Number;
var _local5:String;
var _local6:Array;
var _local7:Object;
var _local8:Number;
var _local9:Number;
var _local10:Array;
var _local11:Object;
var _local12:Object;
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];
};
_local7 = TweenListObj.makePropertiesChain(_arg2);
if (!_inited){
init();
};
if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
startEngine();
};
_local8 = (isNaN(_local7.time)) ? 0 : _local7.time;
_local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay;
_local10 = new Array();
_local11 = {overwrite:true, 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};
_local12 = 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;
if (((_local7.overwrite == undefined)) ? autoOverwrite : _local7.overwrite){
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 registerTransition(_arg1:String, _arg2:Function):void{
if (!_inited){
init();
};
_transitionList[_arg1] = _arg2;
}
public static function printError(_arg1:String):void{
trace(("## [Tweener] Error: " + _arg1));
}
private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
var _local4:Boolean;
var _local5:uint;
var _local6:Array;
var _local7:uint;
var _local8:uint;
var _local9:uint;
_local4 = false;
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 getTweens(_arg1:Object):Array{
var _local2:uint;
var _local3:String;
var _local4:Array;
if (!Boolean(_tweenList)){
return ([]);
};
_local4 = 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 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 pauseTweenByIndex(_arg1:Number):Boolean{
var _local2:TweenListObj;
_local2 = _tweenList[_arg1];
if ((((_local2 == null)) || (_local2.isPaused))){
return (false);
};
_local2.timePaused = getCurrentTweeningTime(_local2);
_local2.isPaused = true;
return (true);
}
public static function getCurrentTweeningTime(_arg1:Object):Number{
return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime);
}
public static function getTweenCount(_arg1:Object):Number{
var _local2:uint;
var _local3:Number;
if (!Boolean(_tweenList)){
return (0);
};
_local3 = 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 stopEngine():void{
_engineExists = false;
_tweenList = null;
_currentTime = 0;
_currentTimeFrame = 0;
__tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
__tweener_controller__ = null;
}
public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
var removed:Boolean;
var removedLocally:Boolean;
var i:uint;
var tl:uint;
var pName:String;
var eventScope:Object;
var p_scope = _arg1;
var p_properties = _arg2;
var p_timeStart = _arg3;
var p_timeComplete = _arg4;
removed = false;
tl = _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 registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
var _local4:SpecialPropertySplitter;
if (!_inited){
init();
};
_local4 = new SpecialPropertySplitter(_arg2, _arg3);
_specialPropertySplitterList[_arg1] = _local4;
}
public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
_tweenList[_arg1] = null;
if (_arg2){
_tweenList.splice(_arg1, 1);
};
return (true);
}
public static function resumeTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(resumeTweenByIndex, _arg1, _local3));
}
public static function pauseTweens(_arg1:Object, ... _args):Boolean{
var _local3:Array;
var _local4:uint;
_local3 = new Array();
_local4 = 0;
while (_local4 < _args.length) {
if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
_local3.push(_args[_local4]);
};
_local4++;
};
return (affectTweens(pauseTweenByIndex, _arg1, _local3));
}
}
}//package caurina.transitions
Section 104
//TweenListObj (caurina.transitions.TweenListObj)
package caurina.transitions {
public class TweenListObj {
public var onUpdate:Function;
public var useFrames:Boolean;
public var hasStarted:Boolean;
public var onOverwriteParams:Array;
public var timeStart:Number;
public var count:Number;
public var timeComplete:Number;
public var onStartParams:Array;
public var onUpdateScope:Object;
public var rounded:Boolean;
public var onUpdateParams:Array;
public var properties:Object;
public var onComplete:Function;
public var transitionParams:Object;
public var updatesSkipped:Number;
public var onStart:Function;
public var onOverwriteScope:Object;
public var skipUpdates:Number;
public var onStartScope:Object;
public var scope:Object;
public var transition:Function;
public var timePaused:Number;
public var onCompleteParams:Array;
public var timesCalled:Number;
public var isCaller:Boolean;
public var onError:Function;
public var onErrorScope:Object;
public var onOverwrite:Function;
public var isPaused:Boolean;
public var waitFrames:Boolean;
public var onCompleteScope:Object;
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 _local2:TweenListObj;
var _local3:String;
_local2 = 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 _local1:String;
var _local2:Boolean;
var _local3:String;
_local1 = "\n[TweenListObj ";
_local1 = (_local1 + ("scope:" + String(scope)));
_local1 = (_local1 + ", properties:");
_local2 = true;
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 _local2:Object;
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local2 = _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 105
//link_icon_1 (link_icon_1)
package {
import flash.display.*;
public dynamic class link_icon_1 extends MovieClip {
public var 新建符号_13:MovieClip;
}
}//package
Section 106
//link_icon_10 (link_icon_10)
package {
import flash.display.*;
public dynamic class link_icon_10 extends MovieClip {
public var 新建符号_16:MovieClip;
}
}//package
Section 107
//link_icon_11 (link_icon_11)
package {
import flash.display.*;
public dynamic class link_icon_11 extends MovieClip {
public var 新建符号_16:MovieClip;
}
}//package
Section 108
//link_icon_12 (link_icon_12)
package {
import flash.display.*;
public dynamic class link_icon_12 extends MovieClip {
public var 新建符号:MovieClip;
public var 新建符号_16:MovieClip;
public var 新建符号_49:MovieClip;
}
}//package
Section 109
//link_icon_13 (link_icon_13)
package {
import flash.display.*;
public dynamic class link_icon_13 extends MovieClip {
public var 新建符号:MovieClip;
public var 新建符号_1:MovieClip;
public var 新建符号_25:MovieClip;
}
}//package
Section 110
//link_icon_14 (link_icon_14)
package {
import flash.display.*;
public dynamic class link_icon_14 extends MovieClip {
public var 新建符号:MovieClip;
}
}//package
Section 111
//link_icon_15 (link_icon_15)
package {
import flash.display.*;
public dynamic class link_icon_15 extends MovieClip {
public var 新建符号_16:MovieClip;
}
}//package
Section 112
//link_icon_16 (link_icon_16)
package {
import flash.display.*;
public dynamic class link_icon_16 extends MovieClip {
public var 新建符号:MovieClip;
}
}//package
Section 113
//link_icon_17 (link_icon_17)
package {
import flash.display.*;
public dynamic class link_icon_17 extends MovieClip {
public var 新建符号_16:MovieClip;
}
}//package
Section 114
//link_icon_18 (link_icon_18)
package {
import flash.display.*;
public dynamic class link_icon_18 extends MovieClip {
public var 新建符号:MovieClip;
}
}//package
Section 115
//link_icon_19 (link_icon_19)
package {
import flash.display.*;
public dynamic class link_icon_19 extends MovieClip {
public var 新建符号_22:MovieClip;
}
}//package
Section 116
//link_icon_2 (link_icon_2)
package {
import flash.display.*;
public dynamic class link_icon_2 extends MovieClip {
}
}//package
Section 117
//link_icon_20 (link_icon_20)
package {
import flash.display.*;
public dynamic class link_icon_20 extends MovieClip {
public var 新建符号_13:MovieClip;
}
}//package
Section 118
//link_icon_21 (link_icon_21)
package {
import flash.display.*;
public dynamic class link_icon_21 extends MovieClip {
public var 新建符号_16:MovieClip;
}
}//package
Section 119
//link_icon_22 (link_icon_22)
package {
import flash.display.*;
public dynamic class link_icon_22 extends MovieClip {
public var 新建符号_49:MovieClip;
}
}//package
Section 120
//link_icon_23 (link_icon_23)
package {
import flash.display.*;
public dynamic class link_icon_23 extends MovieClip {
}
}//package
Section 121
//link_icon_3 (link_icon_3)
package {
import flash.display.*;
public dynamic class link_icon_3 extends MovieClip {
}
}//package
Section 122
//link_icon_4 (link_icon_4)
package {
import flash.display.*;
public dynamic class link_icon_4 extends MovieClip {
}
}//package
Section 123
//link_icon_5 (link_icon_5)
package {
import flash.display.*;
public dynamic class link_icon_5 extends MovieClip {
}
}//package
Section 124
//link_icon_6 (link_icon_6)
package {
import flash.display.*;
public dynamic class link_icon_6 extends MovieClip {
}
}//package
Section 125
//link_icon_7 (link_icon_7)
package {
import flash.display.*;
public dynamic class link_icon_7 extends MovieClip {
public var 新建符号_55:MovieClip;
}
}//package
Section 126
//link_icon_8 (link_icon_8)
package {
import flash.display.*;
public dynamic class link_icon_8 extends MovieClip {
public var 新建符号:MovieClip;
}
}//package
Section 127
//link_icon_9 (link_icon_9)
package {
import flash.display.*;
public dynamic class link_icon_9 extends MovieClip {
public var 新建符号_23:MovieClip;
}
}//package
Section 128
//link_pattern_1 (link_pattern_1)
package {
import flash.display.*;
public dynamic class link_pattern_1 extends MovieClip {
}
}//package
Section 129
//link_pattern_10 (link_pattern_10)
package {
import flash.display.*;
public dynamic class link_pattern_10 extends MovieClip {
}
}//package
Section 130
//link_pattern_11 (link_pattern_11)
package {
import flash.display.*;
public dynamic class link_pattern_11 extends MovieClip {
}
}//package
Section 131
//link_pattern_12 (link_pattern_12)
package {
import flash.display.*;
public dynamic class link_pattern_12 extends MovieClip {
}
}//package
Section 132
//link_pattern_13 (link_pattern_13)
package {
import flash.display.*;
public dynamic class link_pattern_13 extends MovieClip {
}
}//package
Section 133
//link_pattern_14 (link_pattern_14)
package {
import flash.display.*;
public dynamic class link_pattern_14 extends MovieClip {
}
}//package
Section 134
//link_pattern_15 (link_pattern_15)
package {
import flash.display.*;
public dynamic class link_pattern_15 extends MovieClip {
}
}//package
Section 135
//link_pattern_16 (link_pattern_16)
package {
import flash.display.*;
public dynamic class link_pattern_16 extends MovieClip {
}
}//package
Section 136
//link_pattern_17 (link_pattern_17)
package {
import flash.display.*;
public dynamic class link_pattern_17 extends MovieClip {
}
}//package
Section 137
//link_pattern_18 (link_pattern_18)
package {
import flash.display.*;
public dynamic class link_pattern_18 extends MovieClip {
}
}//package
Section 138
//link_pattern_19 (link_pattern_19)
package {
import flash.display.*;
public dynamic class link_pattern_19 extends MovieClip {
}
}//package
Section 139
//link_pattern_2 (link_pattern_2)
package {
import flash.display.*;
public dynamic class link_pattern_2 extends MovieClip {
}
}//package
Section 140
//link_pattern_20 (link_pattern_20)
package {
import flash.display.*;
public dynamic class link_pattern_20 extends MovieClip {
}
}//package
Section 141
//link_pattern_3 (link_pattern_3)
package {
import flash.display.*;
public dynamic class link_pattern_3 extends MovieClip {
}
}//package
Section 142
//link_pattern_4 (link_pattern_4)
package {
import flash.display.*;
public dynamic class link_pattern_4 extends MovieClip {
}
}//package
Section 143
//link_pattern_5 (link_pattern_5)
package {
import flash.display.*;
public dynamic class link_pattern_5 extends MovieClip {
}
}//package
Section 144
//link_pattern_6 (link_pattern_6)
package {
import flash.display.*;
public dynamic class link_pattern_6 extends MovieClip {
}
}//package
Section 145
//link_pattern_7 (link_pattern_7)
package {
import flash.display.*;
public dynamic class link_pattern_7 extends MovieClip {
}
}//package
Section 146
//link_pattern_8 (link_pattern_8)
package {
import flash.display.*;
public dynamic class link_pattern_8 extends MovieClip {
}
}//package
Section 147
//link_pattern_9 (link_pattern_9)
package {
import flash.display.*;
public dynamic class link_pattern_9 extends MovieClip {
}
}//package