Section 1
//fackbook_mc_57 (_fla.fackbook_mc_57)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class fackbook_mc_57 extends MovieClip {
public var logo_btn:SimpleButton;
public function fackbook_mc_57(){
addFrameScript(0, frame1);
}
function frame1(){
logo_btn.addEventListener(MouseEvent.CLICK, linkHandler);
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.facebook.com/igirlsgamesfans"), "_blank");
}
}
}//package _fla
Section 2
//igirlsgames_loading_4 (_fla.igirlsgames_loading_4)
package _fla {
import flash.display.*;
public dynamic class igirlsgames_loading_4 extends MovieClip {
public function igirlsgames_loading_4(){
addFrameScript(99, frame100);
}
function frame100(){
stop();
}
}
}//package _fla
Section 3
//igirlsgames_loading_6 (_fla.igirlsgames_loading_6)
package _fla {
import flash.display.*;
public dynamic class igirlsgames_loading_6 extends MovieClip {
public var k28:MovieClip;
public var k23:MovieClip;
public var k30:MovieClip;
public var k31:MovieClip;
public var k33:MovieClip;
public var k22:MovieClip;
public var k36:MovieClip;
public var k35:MovieClip;
public var k32:MovieClip;
public var k4:MovieClip;
public var k6:MovieClip;
public var k7:MovieClip;
public var k8:MovieClip;
public var k2:MovieClip;
public var k5:MovieClip;
public var k9:MovieClip;
public var k1:MovieClip;
public var k34:MovieClip;
public var k3:MovieClip;
public var k10:MovieClip;
public var k12:MovieClip;
public var k13:MovieClip;
public var k14:MovieClip;
public var k15:MovieClip;
public var k16:MovieClip;
public var k17:MovieClip;
public var k19:MovieClip;
public var k18:MovieClip;
public var k11:MovieClip;
public var k20:MovieClip;
public var k24:MovieClip;
public var k25:MovieClip;
public var k26:MovieClip;
public var k21:MovieClip;
public var k29:MovieClip;
public var k27:MovieClip;
}
}//package _fla
Section 4
//igirlsgames_loadingyj6_2 (_fla.igirlsgames_loadingyj6_2)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class igirlsgames_loadingyj6_2 extends MovieClip {
public var logo_btn:SimpleButton;
public function igirlsgames_loadingyj6_2(){
addFrameScript(0, frame1);
}
function frame1(){
logo_btn.addEventListener(MouseEvent.CLICK, linkHandler);
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.igirlsgames.com"), "_blank");
}
}
}//package _fla
Section 5
//igirlsgames_logo_50 (_fla.igirlsgames_logo_50)
package _fla {
import flash.display.*;
public dynamic class igirlsgames_logo_50 extends MovieClip {
public function igirlsgames_logo_50(){
addFrameScript(142, frame143);
}
function frame143(){
gotoAndPlay(44);
}
}
}//package _fla
Section 6
//igirlsgames_logo_52 (_fla.igirlsgames_logo_52)
package _fla {
import flash.display.*;
public dynamic class igirlsgames_logo_52 extends MovieClip {
public function igirlsgames_logo_52(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package _fla
Section 7
//igirlsgames_logo_54 (_fla.igirlsgames_logo_54)
package _fla {
import flash.display.*;
public dynamic class igirlsgames_logo_54 extends MovieClip {
public function igirlsgames_logo_54(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package _fla
Section 8
//igirlsgames_logo_mc_45 (_fla.igirlsgames_logo_mc_45)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class igirlsgames_logo_mc_45 extends MovieClip {
public var logo_btn:SimpleButton;
public function igirlsgames_logo_mc_45(){
addFrameScript(0, frame1);
}
function frame1(){
logo_btn.addEventListener(MouseEvent.CLICK, linkHandler);
}
public function linkHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.igirlsgames.com/back-to-school-makeover-test.html"), "_blank");
}
}
}//package _fla
Section 9
//igirlsgamesload_mc_1 (_fla.igirlsgamesload_mc_1)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class igirlsgamesload_mc_1 extends MovieClip {
public var loading:MovieClip;
public var a;
public var percent_mc:MovieClip;
public var play_btn:SimpleButton;
public function igirlsgamesload_mc_1(){
addFrameScript(0, frame1, 1, frame2);
}
public function enterFrameHandler(_arg1:Event):void{
var _local2:Number;
var _local3:*;
_local2 = int(((root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal) * 100));
if (percent_mc.currentFrame < _local2){
percent_mc.play();
} else {
percent_mc.stop();
};
_local3 = 1;
while (_local3 <= 36) {
if (_local3 <= Math.ceil(((percent_mc.currentFrame * 36) / 100))){
loading[("k" + _local3)].visible = true;
};
_local3++;
};
if (((loading.k36.visible) && ((percent_mc.currentFrame >= 100)))){
this.removeEventListener(Event.ENTER_FRAME, enterFrameHandler);
goNext();
};
}
function frame1(){
stop();
a = 1;
while (a <= 36) {
loading[("k" + a)].gotoAndStop(a);
loading[("k" + a)].visible = false;
a++;
};
this.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
}
public function playHandler(_arg1:MouseEvent):void{
play_btn.removeEventListener(MouseEvent.CLICK, playHandler);
MovieClip(root).play();
}
function frame2(){
stop();
play_btn.addEventListener(MouseEvent.CLICK, playHandler);
}
public function goNext():void{
this.play();
}
}
}//package _fla
Section 10
//MainTimeline (_fla.MainTimeline)
package _fla {
import gs.*;
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import gs.easing.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var drag_ring_mc:MovieClip;
public var replay_btn:SimpleButton;
public var icon_9:MovieClip;
public var show_btn:SimpleButton;
public var nail_1:MovieClip;
public var nail_2:MovieClip;
public var fuse_select_mc:MovieClip;
public var hand_1:MovieClip;
public var hand_2:MovieClip;
public var sourceData:Array;
public var dragedItem:MovieClip;
public var currentHandID:int;
public var activeHand:MovieClip;
public var cs_erase_mc:MovieClip;
public var gameData:Array;
public var isChangingHand:Boolean;
public var play_btn:SimpleButton;
public var fuse_1:MovieClip;
public var fuse_2:MovieClip;
public var fuse_3:MovieClip;
public var fuse_4:MovieClip;
public var oil_1:MovieClip;
public var oil_2:MovieClip;
public var oil_3:MovieClip;
public var oil_5:MovieClip;
public var oil_6:MovieClip;
public var oil_8:MovieClip;
public var oil_4:MovieClip;
public var oil_9:MovieClip;
public var oil_7:MovieClip;
public var drag_icon_mc:MovieClip;
public var cursor_mc:MovieClip;
public var selectedOil:int;
public var erase_btn:SimpleButton;
public var reset_btn:SimpleButton;
public var toggle_hand_mc:MovieClip;
public var releaseCallback:Function;
public var load_mc:MovieClip;
public var isSelectingNail:Boolean;
public var icon_12:MovieClip;
public var icon_14:MovieClip;
public var icon_11:MovieClip;
public var icon_13:MovieClip;
public var oil_14:MovieClip;
public var oil_10:MovieClip;
public var icon_10:MovieClip;
public var oil_12:MovieClip;
public var oil_13:MovieClip;
public var isSelectingRing:Boolean;
public var oil_11:MovieClip;
public var cs_oil_mc:MovieClip;
public var MOREGAME_URI:String;
public var cursorType:String;
public var ring_1:MovieClip;
public var ring_2:MovieClip;
public var ring_3:MovieClip;
public var ring_4:MovieClip;
public var ring_5:MovieClip;
public var ring_7:MovieClip;
public var ring_8:MovieClip;
public var icon_1:MovieClip;
public var icon_2:MovieClip;
public var icon_3:MovieClip;
public var icon_4:MovieClip;
public var icon_5:MovieClip;
public var icon_6:MovieClip;
public var ring_9:MovieClip;
public var icon_8:MovieClip;
public var ring_6:MovieClip;
public var icon_7:MovieClip;
public var moreGameBtn:SimpleButton;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function appendDragEvent(_arg1:MovieClip, _arg2:Function=null):void{
if (dragedItem){
dragedItem.x = (dragedItem.y = -500);
dragedItem = null;
stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMove);
stage.removeEventListener(MouseEvent.MOUSE_UP, dragUp);
};
releaseCallback = _arg2;
dragedItem = _arg1;
dragedItem.dragData = {offsetX:(dragedItem.parent.mouseX - dragedItem.x), offsetY:(dragedItem.parent.mouseY - dragedItem.y)};
stage.addEventListener(MouseEvent.MOUSE_MOVE, dragMove);
stage.addEventListener(MouseEvent.MOUSE_UP, dragUp);
}
public function onIconRelease(_arg1:MovieClip):void{
var _local2:int;
var _local3:MovieClip;
_local2 = 1;
while (_local2 <= 5) {
_local3 = activeHand[("nail_" + _local2)];
if (_local3.hitTestPoint(stage.mouseX, stage.mouseY, true)){
gameData[currentHandID][_local2].icon = _arg1.currentFrame;
setIcon(activeHand, _local2, _arg1.currentFrame);
break;
};
_local2++;
};
drag_icon_mc.x = (drag_icon_mc.y = -500);
}
public function beforDrag(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
dragedItem.x = dragedItem.parent.mouseX;
dragedItem.y = dragedItem.parent.mouseY;
}
public function dragIcon(_arg1:MouseEvent):void{
var _local2:int;
setCursor("default", null);
_local2 = get_id(_arg1.currentTarget.name);
drag_icon_mc.gotoAndStop(_local2);
drag_icon_mc.x = mouseX;
drag_icon_mc.y = mouseY;
appendDragEvent(drag_icon_mc, onIconRelease);
}
public function setOil(_arg1:MovieClip, _arg2:int, _arg3:int):void{
if (_arg3 > 0){
_arg1[("star_" + _arg2)].gotoAndPlay(2);
_arg1[("nail_" + _arg2)].oil_mc.gotoAndStop(_arg3);
_arg1[("nail_" + _arg2)].oil_mc.visible = true;
} else {
_arg1[("nail_" + _arg2)].oil_mc.gotoAndStop(1);
_arg1[("nail_" + _arg2)].oil_mc.visible = false;
};
}
public function setIcon(_arg1:MovieClip, _arg2:int, _arg3:int):void{
if (_arg3 > 0){
_arg1[("icon_" + _arg2)].gotoAndStop(_arg3);
_arg1[("icon_" + _arg2)].visible = true;
} else {
_arg1[("icon_" + _arg2)].gotoAndStop(1);
_arg1[("icon_" + _arg2)].visible = false;
};
}
public function select_oil(_arg1:int):void{
if (_arg1 == selectedOil){
return;
};
if (selectedOil > 0){
removeLight(this[("oil_" + selectedOil)]);
};
selectedOil = _arg1;
if (selectedOil > 0){
addLight(this[("oil_" + selectedOil)]);
};
}
public function toggleHandHandler(_arg1:MouseEvent):void{
var _local2:int;
currentHandID = (3 - currentHandID);
if (currentHandID == 1){
TweenLite.to(hand_1, 0.5, {x:314.3, ease:Back.easeOut});
TweenLite.to(hand_2, 0.5, {x:796.4, ease:Back.easeOut});
} else {
TweenLite.to(hand_1, 0.5, {x:-314.3, ease:Back.easeOut});
TweenLite.to(hand_2, 0.5, {x:314.3, ease:Back.easeOut});
};
activeHand = this[("hand_" + currentHandID)];
toggle_hand_mc.gotoAndStop(currentHandID);
_local2 = gameData[currentHandID][0].nail;
removeLight(this[("nail_" + (3 - _local2))]);
addLight(this[("nail_" + _local2)]);
}
public function init_oil(_arg1:MovieClip):void{
var _local2:int;
_local2 = get_id(_arg1.name);
_arg1.oil_mc.gotoAndStop(_local2);
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.ROLL_OUT, itemOut);
_arg1.addEventListener(MouseEvent.ROLL_OVER, itemOver);
_arg1.addEventListener(MouseEvent.CLICK, oilItemDown);
_arg1.initData = {scaleX:_arg1.scaleX, scaleY:_arg1.scaleY};
}
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++;
};
} else {
_local8 = _arg5;
while ((_local7 = _arg1[((_arg3 + _local8) + _arg4)])) {
_arg2.apply(null, [_local7]);
_local8++;
};
};
}
public function eraseHandler(_arg1:MouseEvent):void{
if (cursorType == "erase"){
setCursor("default", null);
return;
};
setCursor("erase", cs_erase_mc);
}
public function init_nail(_arg1:MovieClip):void{
var _local2:int;
_local2 = get_id(_arg1.name);
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, setNailLength);
_arg1.addEventListener(MouseEvent.ROLL_OUT, itemOut);
_arg1.addEventListener(MouseEvent.ROLL_OVER, itemOver);
_arg1.initData = {scaleX:_arg1.scaleX, scaleY:_arg1.scaleY};
}
public function init_selector():void{
$(this, init_fuse_select, "fuse_");
$(this, init_nail, "nail_");
$(this, init_oil, "oil_");
$(this, init_ring, "ring_");
$(this, init_icon, "icon_");
erase_btn.addEventListener(MouseEvent.CLICK, eraseHandler);
$(hand_1, initNailEvent, "nail_");
$(hand_2, initNailEvent, "nail_");
toggle_hand_mc.gotoAndStop(1);
toggle_hand_mc.mouseChildren = false;
toggle_hand_mc.buttonMode = true;
toggle_hand_mc.addEventListener(MouseEvent.CLICK, toggleHandHandler);
show_btn.addEventListener(MouseEvent.CLICK, doneHandler);
addLight(nail_1);
reset_btn.addEventListener(MouseEvent.CLICK, resetHandler);
}
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));
}
public function init_hand(_arg1:MovieClip, _arg2:Array):void{
var globalSetting:Object;
var i:int;
var o:Object;
var n_mc:MovieClip;
var ring_mc:MovieClip;
var h_mc = _arg1;
var arr = _arg2;
globalSetting = arr[0];
h_mc.hand_mc.gotoAndStop(globalSetting.fuse);
i = 1;
while (i <= 5) {
o = arr[i];
n_mc = h_mc[("nail_" + i)];
if (globalSetting.nail == n_mc.currentFrame){
try {
n_mc.setOil();
} catch(e) {
};
} else {
n_mc.gotoAndStop(globalSetting.nail);
};
if (o.icon > -1){
h_mc[("icon_" + i)].gotoAndStop(o.icon);
h_mc[("icon_" + i)].visible = true;
} else {
h_mc[("icon_" + i)].gotoAndStop(1);
h_mc[("icon_" + i)].visible = false;
};
h_mc[("icon_" + i)].mouseEnabled = false;
ring_mc = h_mc[("ring_" + i)];
if (ring_mc){
if (o.ring > 0){
ring_mc.gotoAndStop(o.ring);
ring_mc.visible = true;
} else {
ring_mc.gotoAndStop(1);
ring_mc.visible = false;
};
};
i = (i + 1);
};
}
public function init_icon(_arg1:MovieClip):void{
var _local2:int;
_local2 = get_id(_arg1.name);
_arg1.gotoAndStop(_local2);
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.ROLL_OUT, itemOut);
_arg1.addEventListener(MouseEvent.ROLL_OVER, itemOver);
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, dragIcon);
_arg1.initData = {scaleX:_arg1.scaleX, scaleY:_arg1.scaleY};
}
public function setCursor(_arg1:String, _arg2:MovieClip):void{
if (_arg1 == cursorType){
return;
};
if (cursorType == "oil"){
cursor_mc.x = (cursor_mc.y = -500);
select_oil(-1);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, cursor_move);
} else {
if (cursorType == "erase"){
cursor_mc.x = (cursor_mc.y = -500);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, cursor_move);
};
};
cursorType = _arg1;
if (cursorType == "oil"){
cursor_mc = _arg2;
cursor_mc.x = cursor_mc.parent.mouseX;
cursor_mc.y = cursor_mc.parent.mouseY;
cursor_mc.mouseChildren = false;
cursor_mc.mouseEnabled = false;
stage.addEventListener(MouseEvent.MOUSE_MOVE, cursor_move);
} else {
if (cursorType == "erase"){
cursor_mc = _arg2;
cursor_mc.x = cursor_mc.parent.mouseX;
cursor_mc.y = cursor_mc.parent.mouseY;
cursor_mc.mouseChildren = false;
cursor_mc.mouseEnabled = false;
stage.addEventListener(MouseEvent.MOUSE_MOVE, cursor_move);
};
};
}
public function onRingRelease(_arg1:MovieClip):void{
var _local2:int;
var _local3:MovieClip;
_local2 = 1;
while (_local2 <= 4) {
_local3 = activeHand[("ring_" + _local2)];
if (Point.distance(new Point(activeHand.mouseX, activeHand.mouseY), new Point(_local3.x, _local3.y)) < 50){
gameData[currentHandID][_local2].ring = _arg1.currentFrame;
setRing(activeHand, _local2, _arg1.currentFrame);
break;
};
_local2++;
};
drag_ring_mc.x = (drag_ring_mc.y = -500);
}
public function moreGameHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(MOREGAME_URI), "_blank");
}
function frame3(){
stop();
isSelectingNail = false;
isSelectingRing = false;
selectedOil = -1;
isChangingHand = false;
init_game();
}
function frame4(){
stop();
init_show();
}
public function oilItemDown(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:*;
_local2 = (_arg1.currentTarget as MovieClip);
_local3 = get_id(_local2.name);
if (_local3 == selectedOil){
setCursor("default", null);
return;
};
setCursor("oil", cs_oil_mc);
select_oil(_local3);
}
function frame1(){
MOREGAME_URI = "http://www.igirlsgames.com/perfect-date-makeup.html";
sourceData = [undefined, [{fuse:1, nail:1}, {oil:-1, icon:-1, ring:-1}, {oil:-1, icon:-1, ring:-1}, {oil:-1, icon:-1, ring:-1}, {oil:-1, icon:-1, ring:-1}, {oil:-1, icon:-1, ring:-1}], [{fuse:1, nail:1}, {oil:-1, icon:-1, ring:-1}, {oil:-1, icon:-1, ring:-1}, {oil:-1, icon:-1, ring:-1}, {oil:-1, icon:-1, ring:-1}, {oil:-1, icon:-1, ring:-1}]];
gameData = null;
cursorType = "default";
cursor_mc = null;
releaseCallback = null;
MochiBot.track(this, "cf14a3a3");
stop();
}
public function init_start():void{
play_btn.addEventListener(MouseEvent.CLICK, playHandler);
moreGameBtn.addEventListener(MouseEvent.CLICK, moreGameHandler);
}
public function handNailHandler(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:int;
_local2 = (_arg1.currentTarget as MovieClip);
_local3 = get_id(_local2.name);
if (cursorType == "default"){
return;
};
if (cursorType == "oil"){
gameData[currentHandID][_local3].oil = selectedOil;
setOil(activeHand, _local3, selectedOil);
cs_oil_mc.main.gotoAndPlay(2);
} else {
if (cursorType == "erase"){
gameData[currentHandID][_local3].oil = -1;
setOil(activeHand, _local3, -1);
};
};
}
public function itemOver(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
TweenLite.to(_local2, 0.5, {scaleX:(_local2.initData.scaleX + 0.1), scaleY:(_local2.initData.scaleY + 0.1), ease:Back.easeOut});
}
public function get_id(_arg1:String, _arg2:int=1):int{
var _local3:Array;
_local3 = _arg1.split("_");
return (int(_local3[_arg2]));
}
public function setNailLength(_arg1:MouseEvent):void{
var _local2:int;
var _local3:int;
_local2 = get_id(_arg1.currentTarget.name);
gameData[currentHandID][0].nail = _local2;
_local3 = 1;
while (_local3 <= 5) {
activeHand[("nail_" + _local3)].gotoAndStop(_local2);
_local3++;
};
removeLight(this[("nail_" + (3 - _local2))]);
addLight(this[("nail_" + _local2)]);
}
public function clear_game():void{
setCursor("default", null);
erase_btn.removeEventListener(MouseEvent.CLICK, eraseHandler);
toggle_hand_mc.removeEventListener(MouseEvent.CLICK, toggleHandHandler);
show_btn.removeEventListener(MouseEvent.CLICK, doneHandler);
}
function frame2(){
stop();
init_start();
}
public function select_fuse(_arg1:MouseEvent):void{
var _local2:MovieClip;
var _local3:int;
_local2 = (_arg1.currentTarget as MovieClip);
_local3 = get_id(_local2.name);
if (_local3 == gameData[1][0].fuse){
return;
};
gameData[1][0].fuse = _local3;
gameData[2][0].fuse = _local3;
hand_1.hand_mc.gotoAndStop(_local3);
hand_2.hand_mc.gotoAndStop(_local3);
TweenLite.to(fuse_select_mc, 0.5, {x:_local2.x, y:_local2.y, ease:Back.easeOut});
}
public function init_show():void{
replay_btn.addEventListener(MouseEvent.CLICK, replayHandler);
}
public function init_fuse_select(_arg1:MovieClip):void{
var _local2:int;
_local2 = get_id(_arg1.name);
_arg1.gotoAndStop(_local2);
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.CLICK, select_fuse);
}
public function dragUp(_arg1:MouseEvent):void{
if (releaseCallback != null){
releaseCallback(dragedItem);
};
dragedItem = null;
stage.removeEventListener(MouseEvent.MOUSE_MOVE, dragMove);
stage.removeEventListener(MouseEvent.MOUSE_UP, dragUp);
}
public function addLight(_arg1:MovieClip):void{
_arg1.lightData = {speed:1, blur:5, color:0xFFFFFF};
_arg1.addEventListener(Event.ENTER_FRAME, lightHandler);
}
public function removeLight(_arg1:MovieClip):void{
_arg1.removeEventListener(Event.ENTER_FRAME, lightHandler);
_arg1.filters = [];
}
public function copyObject(_arg1:Object):Object{
var _local2:ByteArray;
_local2 = new ByteArray();
_local2.writeObject(_arg1);
_local2.position = 0;
return (_local2.readObject());
}
public function cursor_move(_arg1:MouseEvent):void{
if (cursor_mc){
cursor_mc.x = cursor_mc.parent.mouseX;
cursor_mc.y = cursor_mc.parent.mouseY;
};
}
public function dragMove(_arg1:MouseEvent):void{
dragedItem.x = (dragedItem.parent.mouseX - dragedItem.dragData.offsetX);
dragedItem.y = (dragedItem.parent.mouseY - dragedItem.dragData.offsetY);
}
public function initNailEvent(_arg1:MovieClip):void{
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, handNailHandler);
}
public function itemOut(_arg1:MouseEvent):void{
var _local2:MovieClip;
_local2 = (_arg1.currentTarget as MovieClip);
TweenLite.to(_local2, 0.5, {scaleX:_local2.initData.scaleX, scaleY:_local2.initData.scaleY, ease:Back.easeOut});
}
public function resetHandler(_arg1:MouseEvent):void{
init_data();
init_hand(hand_1, gameData[1]);
init_hand(hand_2, gameData[2]);
}
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 replayHandler(_arg1:MouseEvent):void{
clear_show();
this.gotoAndStop("start");
}
public function playHandler(_arg1:MouseEvent):void{
clear_start();
this.nextFrame();
}
public function doneHandler(_arg1:MouseEvent):void{
clear_game();
this.nextFrame();
}
public function init_data():void{
gameData = (copyObject(sourceData) as Array);
}
public function dragRing(_arg1:MouseEvent):void{
var _local2:int;
setCursor("default", null);
_local2 = get_id(_arg1.currentTarget.name);
drag_ring_mc.gotoAndStop(_local2);
drag_ring_mc.x = mouseX;
drag_ring_mc.y = mouseY;
appendDragEvent(drag_ring_mc, onRingRelease);
}
public function setRing(_arg1:MovieClip, _arg2:int, _arg3:int):void{
if (_arg3 > 0){
_arg1[("ring_" + _arg2)].gotoAndStop(_arg3);
_arg1[("ring_" + _arg2)].visible = true;
} else {
_arg1[("ring_" + _arg2)].gotoAndStop(1);
_arg1[("ring_" + _arg2)].visible = false;
};
}
public function clear_show():void{
replay_btn.removeEventListener(MouseEvent.CLICK, replayHandler);
}
public function init_game():void{
init_data();
init_selector();
activeHand = hand_1;
currentHandID = 1;
}
public function clear_start():void{
play_btn.removeEventListener(MouseEvent.CLICK, playHandler);
}
public function init_ring(_arg1:MovieClip):void{
var _local2:int;
_local2 = get_id(_arg1.name);
_arg1.gotoAndStop(_local2);
_arg1.mouseChildren = false;
_arg1.buttonMode = true;
_arg1.addEventListener(MouseEvent.ROLL_OUT, itemOut);
_arg1.addEventListener(MouseEvent.ROLL_OVER, itemOver);
_arg1.addEventListener(MouseEvent.MOUSE_DOWN, dragRing);
_arg1.initData = {scaleX:_arg1.scaleX, scaleY:_arg1.scaleY};
}
}
}//package _fla
Section 11
//sttardsdf_78 (_fla.sttardsdf_78)
package _fla {
import flash.display.*;
public dynamic class sttardsdf_78 extends MovieClip {
public function sttardsdf_78(){
addFrameScript(0, frame1, 17, frame18);
}
function frame18(){
gotoAndStop(1);
}
function frame1(){
stop();
this.mouseChildren = false;
this.mouseEnabled = false;
}
}
}//package _fla
Section 12
//Timeline_102 (_fla.Timeline_102)
package _fla {
import flash.display.*;
public dynamic class Timeline_102 extends MovieClip {
public function Timeline_102(){
addFrameScript(6, frame7);
}
function frame7(){
stop();
}
}
}//package _fla
Section 13
//Timeline_117 (_fla.Timeline_117)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_117 extends MovieClip {
public var icon_2:MovieClip;
public var ring_2:MovieClip;
public var ring_3:MovieClip;
public var icon_1:MovieClip;
public var id:int;
public var nail_1:MovieClip;
public var nail_5:MovieClip;
public var nail_2:MovieClip;
public var nail_4:MovieClip;
public var hand_mc:MovieClip;
public var nail_3:MovieClip;
public var star_1:MovieClip;
public var star_4:MovieClip;
public var star_3:MovieClip;
public var star_5:MovieClip;
public var star_2:MovieClip;
public var main:MovieClip;
public var ring_4:MovieClip;
public var ring_1:MovieClip;
public var icon_3:MovieClip;
public var icon_4:MovieClip;
public var icon_5:MovieClip;
public function Timeline_117(){
addFrameScript(0, frame1);
}
function frame1(){
main = MovieClip(root);
id = main.get_id(this.name);
main.init_hand(this, main.gameData[id]);
}
}
}//package _fla
Section 14
//Timeline_118 (_fla.Timeline_118)
package _fla {
import flash.display.*;
public dynamic class Timeline_118 extends MovieClip {
public function Timeline_118(){
addFrameScript(36, frame37);
}
function frame37(){
stop();
}
}
}//package _fla
Section 15
//Timeline_120 (_fla.Timeline_120)
package _fla {
import flash.display.*;
public dynamic class Timeline_120 extends MovieClip {
public var 新符号:MovieClip;
public var 新建符号_16:MovieClip;
public var 新建符号_13:MovieClip;
public var 新建符号_49:MovieClip;
}
}//package _fla
Section 16
//Timeline_20 (_fla.Timeline_20)
package _fla {
import flash.display.*;
public dynamic class Timeline_20 extends MovieClip {
public var 新建符号_1:MovieClip;
public function Timeline_20(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package _fla
Section 17
//Timeline_27 (_fla.Timeline_27)
package _fla {
import flash.display.*;
public dynamic class Timeline_27 extends MovieClip {
public function Timeline_27(){
addFrameScript(13, frame14);
}
function frame14(){
stop();
}
}
}//package _fla
Section 18
//Timeline_28 (_fla.Timeline_28)
package _fla {
import flash.display.*;
public dynamic class Timeline_28 extends MovieClip {
public var 新符号:MovieClip;
public var 新建符号_16:MovieClip;
public var 新建符号_13:MovieClip;
public var 新建符号_49:MovieClip;
}
}//package _fla
Section 19
//Timeline_66 (_fla.Timeline_66)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_66 extends MovieClip {
public var icon_2:MovieClip;
public var ring_2:MovieClip;
public var ring_3:MovieClip;
public var icon_1:MovieClip;
public var id:int;
public var nail_1:MovieClip;
public var nail_5:MovieClip;
public var nail_2:MovieClip;
public var nail_4:MovieClip;
public var hand_mc:MovieClip;
public var nail_3:MovieClip;
public var star_1:MovieClip;
public var star_4:MovieClip;
public var star_3:MovieClip;
public var star_5:MovieClip;
public var star_2:MovieClip;
public var main:MovieClip;
public var ring_4:MovieClip;
public var ring_1:MovieClip;
public var icon_3:MovieClip;
public var icon_4:MovieClip;
public var icon_5:MovieClip;
public function Timeline_66(){
addFrameScript(0, frame1);
}
function frame1(){
main = MovieClip(root);
id = main.get_id(this.name);
main.init_hand(this, main.gameData[id]);
}
}
}//package _fla
Section 20
//Timeline_69 (_fla.Timeline_69)
package _fla {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.filters.*;
import flash.media.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.printing.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class Timeline_69 extends MovieClip {
public var oil_mc:MovieClip;
public function Timeline_69(){
addFrameScript(0, frame1, 1, frame2);
}
public function setOil():void{
var _local1:MovieClip;
var _local2:int;
var _local3:int;
_local1 = MovieClip(root);
_local2 = _local1.get_id(this.name);
_local3 = _local1.get_id(this.parent.name);
if (_local1.gameData[_local3][_local2].oil > 0){
oil_mc.gotoAndStop(_local1.gameData[_local3][_local2].oil);
oil_mc.visible = true;
} else {
oil_mc.gotoAndStop(1);
oil_mc.visible = false;
};
}
function frame1(){
stop();
stop();
setOil();
}
function frame2(){
stop();
setOil();
}
}
}//package _fla
Section 21
//Timeline_79 (_fla.Timeline_79)
package _fla {
import flash.display.*;
public dynamic class Timeline_79 extends MovieClip {
public function Timeline_79(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package _fla
Section 22
//Timeline_84 (_fla.Timeline_84)
package _fla {
import flash.display.*;
public dynamic class Timeline_84 extends MovieClip {
public var 新建符号_14:MovieClip;
public var 新建符号_16:MovieClip;
public var 新建符号_13:MovieClip;
public var 新符号_78:MovieClip;
public var 新建符号_1:MovieClip;
}
}//package _fla
Section 23
//Timeline_88 (_fla.Timeline_88)
package _fla {
import flash.display.*;
public dynamic class Timeline_88 extends MovieClip {
public var 新建符号_22:MovieClip;
}
}//package _fla
Section 24
//Timeline_98 (_fla.Timeline_98)
package _fla {
import flash.display.*;
public dynamic class Timeline_98 extends MovieClip {
public var oil_mc:MovieClip;
}
}//package _fla
Section 25
//youping_109 (_fla.youping_109)
package _fla {
import flash.display.*;
public dynamic class youping_109 extends MovieClip {
public var m:MovieClip;
public function youping_109(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 26
//youpingadsfs_108 (_fla.youpingadsfs_108)
package _fla {
import flash.display.*;
public dynamic class youpingadsfs_108 extends MovieClip {
public var main:MovieClip;
}
}//package _fla
Section 27
//zhanshizhezhao_116 (_fla.zhanshizhezhao_116)
package _fla {
import flash.display.*;
public dynamic class zhanshizhezhao_116 extends MovieClip {
public var hand_2:MovieClip;
public var hand_1:MovieClip;
public function zhanshizhezhao_116(){
addFrameScript(17, frame18);
}
function frame18(){
stop();
}
}
}//package _fla
Section 28
//Back (gs.easing.Back)
package gs.easing {
public class Back {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / _arg4);
return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=1.70158):Number{
_arg1 = (_arg1 / (_arg4 / 2));
if (_arg1 < 1){
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2));
};
_arg1 = (_arg1 - 2);
_arg5 = (_arg5 * 1.525);
return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2));
}
}
}//package gs.easing
Section 29
//AutoAlphaPlugin (gs.plugins.AutoAlphaPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class AutoAlphaPlugin extends TweenPlugin {
protected var _tweenVisible:Boolean;
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function AutoAlphaPlugin(){
this.propName = "autoAlpha";
this.overwriteProps = ["alpha", "visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
if (((!((_target.visible == true))) && (_tweenVisible))){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((((_tweenVisible) && (!((_tween.vars.runBackwards == true))))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(!((_arg2 == 0)));
_tweenVisible = true;
addTween(_arg1, "alpha", _arg1.alpha, _arg2, "alpha");
return (true);
}
override public function killProps(_arg1:Object):void{
super.killProps(_arg1);
_tweenVisible = !(Boolean(("visible" in _arg1)));
}
}
}//package gs.plugins
Section 30
//EndArrayPlugin (gs.plugins.EndArrayPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class EndArrayPlugin extends TweenPlugin {
protected var _info:Array;
protected var _a:Array;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function EndArrayPlugin(){
_info = [];
super();
this.propName = "endArray";
this.overwriteProps = ["endArray"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:int;
var _local3:ArrayTweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_a[_local3.index] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_info.length - 1);
while (_local2 > -1) {
_local3 = _info[_local2];
_a[_local3.index] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function init(_arg1:Array, _arg2:Array):void{
var _local3:int;
_a = _arg1;
_local3 = (_arg2.length - 1);
while (_local3 > -1) {
if (((!((_arg1[_local3] == _arg2[_local3]))) && (!((_arg1[_local3] == null))))){
_info[_info.length] = new ArrayTweenInfo(_local3, _a[_local3], (_arg2[_local3] - _a[_local3]));
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (false);
};
init((_arg1 as Array), _arg2);
return (true);
}
}
}//package gs.plugins
Section 31
//FramePlugin (gs.plugins.FramePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class FramePlugin extends TweenPlugin {
public var frame:int;
protected var _target:MovieClip;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function FramePlugin(){
this.propName = "frame";
this.overwriteProps = ["frame"];
this.round = true;
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.gotoAndStop(this.frame);
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((!((_arg1 is MovieClip))) || (isNaN(_arg2)))){
return (false);
};
_target = (_arg1 as MovieClip);
this.frame = _target.currentFrame;
addTween(this, "frame", this.frame, _arg2, "frame");
return (true);
}
}
}//package gs.plugins
Section 32
//RemoveTintPlugin (gs.plugins.RemoveTintPlugin)
package gs.plugins {
public class RemoveTintPlugin extends TintPlugin {
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function RemoveTintPlugin(){
this.propName = "removeTint";
}
}
}//package gs.plugins
Section 33
//TintPlugin (gs.plugins.TintPlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.geom.*;
import gs.utils.tween.*;
public class TintPlugin extends TweenPlugin {
protected var _ct:ColorTransform;
protected var _ignoreAlpha:Boolean;
protected var _target:DisplayObject;
public static const VERSION:Number = 1.1;
public static const API:Number = 1;
protected static var _props:Array = ["redMultiplier", "greenMultiplier", "blueMultiplier", "alphaMultiplier", "redOffset", "greenOffset", "blueOffset", "alphaOffset"];
public function TintPlugin(){
this.propName = "tint";
this.overwriteProps = ["tint"];
}
override public function set changeFactor(_arg1:Number):void{
var _local2:ColorTransform;
updateTweens(_arg1);
if (_ignoreAlpha){
_local2 = _target.transform.colorTransform;
_ct.alphaMultiplier = _local2.alphaMultiplier;
_ct.alphaOffset = _local2.alphaOffset;
};
_target.transform.colorTransform = _ct;
}
public function init(_arg1:DisplayObject, _arg2:ColorTransform):void{
var _local3:int;
var _local4:String;
_target = _arg1;
_ct = _target.transform.colorTransform;
_local3 = (_props.length - 1);
while (_local3 > -1) {
_local4 = _props[_local3];
if (_ct[_local4] != _arg2[_local4]){
_tweens[_tweens.length] = new TweenInfo(_ct, _local4, _ct[_local4], (_arg2[_local4] - _ct[_local4]), "tint", false);
};
_local3--;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
var _local4:ColorTransform;
if (!(_arg1 is DisplayObject)){
return (false);
};
_local4 = new ColorTransform();
if (((!((_arg2 == null))) && (!((_arg3.exposedVars.removeTint == true))))){
_local4.color = uint(_arg2);
};
_ignoreAlpha = true;
init((_arg1 as DisplayObject), _local4);
return (true);
}
}
}//package gs.plugins
Section 34
//TweenPlugin (gs.plugins.TweenPlugin)
package gs.plugins {
import gs.*;
import gs.utils.tween.*;
public class TweenPlugin {
public var overwriteProps:Array;
protected var _tweens:Array;
public var round:Boolean;
public var onComplete:Function;
public var propName:String;
protected var _changeFactor:Number;// = 0
public static const VERSION:Number = 1.03;
public static const API:Number = 1;
public function TweenPlugin(){
_tweens = [];
_changeFactor = 0;
super();
}
protected function updateTweens(_arg1:Number):void{
var _local2:int;
var _local3:TweenInfo;
var _local4:Number;
var _local5:int;
if (this.round){
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local4 = (_local3.start + (_local3.change * _arg1));
_local5 = ((_local4)<0) ? -1 : 1;
_local3.target[_local3.property] = ((((_local4 % 1) * _local5))>0.5) ? (int(_local4) + _local5) : int(_local4);
_local2--;
};
} else {
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
_local3 = _tweens[_local2];
_local3.target[_local3.property] = (_local3.start + (_local3.change * _arg1));
_local2--;
};
};
}
public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_changeFactor = _arg1;
}
protected function addTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4, _arg5:String=null):void{
var _local6:Number;
if (_arg4 != null){
_local6 = ((typeof(_arg4))=="number") ? (_arg4 - _arg3) : Number(_arg4);
if (_local6 != 0){
_tweens[_tweens.length] = new TweenInfo(_arg1, _arg2, _arg3, _local6, ((_arg5) || (_arg2)), false);
};
};
}
public function killProps(_arg1:Object):void{
var _local2:int;
_local2 = (this.overwriteProps.length - 1);
while (_local2 > -1) {
if ((this.overwriteProps[_local2] in _arg1)){
this.overwriteProps.splice(_local2, 1);
};
_local2--;
};
_local2 = (_tweens.length - 1);
while (_local2 > -1) {
if ((_tweens[_local2].name in _arg1)){
_tweens.splice(_local2, 1);
};
_local2--;
};
}
public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
addTween(_arg1, this.propName, _arg1[this.propName], _arg2, this.propName);
return (true);
}
public function get changeFactor():Number{
return (_changeFactor);
}
public static function activate(_arg1:Array):Boolean{
var _local2:int;
var _local3:Object;
_local2 = (_arg1.length - 1);
while (_local2 > -1) {
_local3 = new (_arg1[_local2]);
TweenLite.plugins[_local3.propName] = _arg1[_local2];
_local2--;
};
return (true);
}
}
}//package gs.plugins
Section 35
//VisiblePlugin (gs.plugins.VisiblePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
public class VisiblePlugin extends TweenPlugin {
protected var _tween:TweenLite;
protected var _visible:Boolean;
protected var _target:Object;
public static const VERSION:Number = 1;
public static const API:Number = 1;
public function VisiblePlugin(){
this.propName = "visible";
this.overwriteProps = ["visible"];
this.onComplete = onCompleteTween;
}
override public function set changeFactor(_arg1:Number):void{
if (_target.visible != true){
_target.visible = true;
};
}
public function onCompleteTween():void{
if (((!((_tween.vars.runBackwards == true))) && ((_tween.ease == _tween.vars.ease)))){
_target.visible = _visible;
};
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
_target = _arg1;
_tween = _arg3;
_visible = Boolean(_arg2);
return (true);
}
}
}//package gs.plugins
Section 36
//VolumePlugin (gs.plugins.VolumePlugin)
package gs.plugins {
import gs.*;
import flash.display.*;
import flash.media.*;
public class VolumePlugin extends TweenPlugin {
protected var _st:SoundTransform;
protected var _target:Object;
public static const VERSION:Number = 1.01;
public static const API:Number = 1;
public function VolumePlugin(){
this.propName = "volume";
this.overwriteProps = ["volume"];
}
override public function set changeFactor(_arg1:Number):void{
updateTweens(_arg1);
_target.soundTransform = _st;
}
override public function onInitTween(_arg1:Object, _arg2, _arg3:TweenLite):Boolean{
if (((isNaN(_arg2)) || (!(_arg1.hasOwnProperty("soundTransform"))))){
return (false);
};
_target = _arg1;
_st = _target.soundTransform;
addTween(_st, "volume", _st.volume, _arg2, "volume");
return (true);
}
}
}//package gs.plugins
Section 37
//ArrayTweenInfo (gs.utils.tween.ArrayTweenInfo)
package gs.utils.tween {
public class ArrayTweenInfo {
public var change:Number;
public var index:uint;
public var start:Number;
public function ArrayTweenInfo(_arg1:uint, _arg2:Number, _arg3:Number){
this.index = _arg1;
this.start = _arg2;
this.change = _arg3;
}
}
}//package gs.utils.tween
Section 38
//TweenInfo (gs.utils.tween.TweenInfo)
package gs.utils.tween {
public class TweenInfo {
public var start:Number;
public var name:String;
public var change:Number;
public var target:Object;
public var property:String;
public var isPlugin:Boolean;
public function TweenInfo(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
}
}
}//package gs.utils.tween
Section 39
//TweenLite (gs.TweenLite)
package gs {
import flash.events.*;
import flash.display.*;
import gs.utils.tween.*;
import gs.plugins.*;
import flash.utils.*;
public class TweenLite {
public var delay:Number;
protected var _hasUpdate:Boolean;
protected var _hasPlugins:Boolean;
public var started:Boolean;
public var initted:Boolean;
public var active:Boolean;
public var startTime:Number;
public var target:Object;
public var duration:Number;
public var gc:Boolean;
public var vars:Object;
public var ease:Function;
public var tweens:Array;
public var exposedVars:Object;
public var combinedTimeScale:Number;
public var initTime:Number;
public static const version:Number = 10.092;
private static var _timer:Timer = new Timer(2000);
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var currentTime:uint;
public static var masterList:Dictionary = new Dictionary(false);
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
public static var timingSprite:Sprite = new Sprite();
public static var overwriteManager:Object;
private static var _tlInitted:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
var _local4:int;
super();
if (_arg1 == null){
return;
};
if (!_tlInitted){
TweenPlugin.activate([TintPlugin, RemoveTintPlugin, FramePlugin, AutoAlphaPlugin, VisiblePlugin, VolumePlugin, EndArrayPlugin]);
currentTime = getTimer();
timingSprite.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
_timer.addEventListener("timer", killGarbage, false, 0, true);
_timer.start();
_tlInitted = true;
};
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.combinedTimeScale = ((_arg3.timeScale) || (1));
this.active = Boolean((((_arg2 == 0)) && ((this.delay == 0))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
this.ease = this.vars.ease;
this.exposedVars = ((this.vars.isTV)==true) ? this.vars.exposedVars : this.vars;
this.tweens = [];
this.initTime = currentTime;
this.startTime = (this.initTime + (this.delay * 1000));
_local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
if (((!((_arg1 in masterList))) || ((_local4 == 1)))){
masterList[_arg1] = [this];
} else {
masterList[_arg1].push(this);
};
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (this.active))){
initTweenVals();
if (this.active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
if (((((!((this.exposedVars.visible == null))) && ((this.vars.runBackwards == true)))) && ((this.target is DisplayObject)))){
this.target.visible = this.exposedVars.visible;
};
};
}
public function set enabled(_arg1:Boolean):void{
var _local2:Array;
var _local3:Boolean;
var _local4:int;
if (_arg1){
if (!(this.target in masterList)){
masterList[this.target] = [this];
} else {
_local2 = masterList[this.target];
_local4 = (_local2.length - 1);
while (_local4 > -1) {
if (_local2[_local4] == this){
_local3 = true;
break;
};
_local4--;
};
if (!_local3){
_local2[_local2.length] = this;
};
};
};
this.gc = (_arg1) ? false : true;
if (this.gc){
this.active = false;
} else {
this.active = this.started;
};
}
public function clear():void{
this.tweens = [];
this.vars = (this.exposedVars = {ease:this.vars.ease});
_hasUpdate = false;
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:TweenInfo;
var _local5:int;
_local2 = ((_arg1 - this.startTime) * 0.001);
if (_local2 >= this.duration){
_local2 = this.duration;
_local3 = ((((this.ease == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0;
} else {
_local3 = this.ease(_local2, 0, 1, this.duration);
};
_local5 = (this.tweens.length - 1);
while (_local5 > -1) {
_local4 = this.tweens[_local5];
_local4.target[_local4.property] = (_local4.start + (_local3 * _local4.change));
_local5--;
};
if (_hasUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
public function activate():void{
this.started = (this.active = true);
if (!this.initted){
initTweenVals();
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
}
public function get enabled():Boolean{
return ((this.gc) ? false : true);
}
public function initTweenVals():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:TweenInfo;
if (((!((this.exposedVars.timeScale == undefined))) && (this.target.hasOwnProperty("timeScale")))){
this.tweens[this.tweens.length] = new TweenInfo(this.target, "timeScale", this.target.timeScale, (this.exposedVars.timeScale - this.target.timeScale), "timeScale", false);
};
for (_local1 in this.exposedVars) {
if ((_local1 in _reservedProps)){
} else {
if ((_local1 in plugins)){
_local3 = new (plugins[_local1]);
if (_local3.onInitTween(this.target, this.exposedVars[_local1], this) == false){
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
} else {
this.tweens[this.tweens.length] = new TweenInfo(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true);
_hasPlugins = true;
};
} else {
this.tweens[this.tweens.length] = new TweenInfo(this.target, _local1, this.target[_local1], ((typeof(this.exposedVars[_local1]))=="number") ? (this.exposedVars[_local1] - this.target[_local1]) : Number(this.exposedVars[_local1]), _local1, false);
};
};
};
if (this.vars.runBackwards == true){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
_local4 = this.tweens[_local2];
this.tweens[_local2].start = (_local4.start + _local4.change);
_local4.change = -(_local4.change);
_local2--;
};
};
if (this.vars.onUpdate != null){
_hasUpdate = true;
};
if (((TweenLite.overwriteManager.enabled) && ((this.target in masterList)))){
overwriteManager.manageOverwrites(this, masterList[this.target]);
};
this.initted = true;
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function killVars(_arg1:Object):void{
if (overwriteManager.enabled){
overwriteManager.killVars(_arg1, this.exposedVars, this.tweens);
};
}
public function complete(_arg1:Boolean=false):void{
var _local2:int;
if (!_arg1){
if (!this.initted){
initTweenVals();
};
this.startTime = (currentTime - ((this.duration * 1000) / this.combinedTimeScale));
render(currentTime);
return;
};
if (_hasPlugins){
_local2 = (this.tweens.length - 1);
while (_local2 > -1) {
if (((this.tweens[_local2].isPlugin) && (!((this.tweens[_local2].target.onComplete == null))))){
this.tweens[_local2].target.onComplete();
};
_local2--;
};
};
if (this.vars.persist != true){
this.enabled = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public static function updateAll(_arg1:Event=null):void{
var _local2:uint;
var _local3:Dictionary;
var _local4:Array;
var _local5:int;
var _local6:TweenLite;
_local2 = (currentTime = getTimer());
_local3 = masterList;
for each (_local4 in _local3) {
_local5 = (_local4.length - 1);
while (_local5 > -1) {
_local6 = _local4[_local5];
if (_local6.active){
_local6.render(_local2);
} else {
if (_local6.gc){
_local4.splice(_local5, 1);
} else {
if (_local2 >= _local6.startTime){
_local6.activate();
_local6.render(_local2);
};
};
};
_local5--;
};
};
}
public static function removeTween(_arg1:TweenLite, _arg2:Boolean=true):void{
if (_arg1 != null){
if (_arg2){
_arg1.clear();
};
_arg1.enabled = false;
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
var _local5:TweenLite;
if (((!((_arg1 == null))) && ((_arg1 in masterList)))){
_local3 = masterList[_arg1];
_local4 = (_local3.length - 1);
while (_local4 > -1) {
_local5 = _local3[_local4];
if (((_arg2) && (!(_local5.gc)))){
_local5.complete(false);
};
_local5.clear();
_local4--;
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
protected static function killGarbage(_arg1:TimerEvent):void{
var _local2:Dictionary;
var _local3:Object;
_local2 = masterList;
for (_local3 in _local2) {
if (_local2[_local3].length == 0){
delete _local2[_local3];
};
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0}));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package gs
Section 40
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package