Section 1
//bgs_67 (barbie2_fla.bgs_67)
package barbie2_fla {
import flash.display.*;
public dynamic class bgs_67 extends MovieClip {
public function bgs_67(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
gotoAndStop(1);
}
}
}//package barbie2_fla
Section 2
//bottoms_141 (barbie2_fla.bottoms_141)
package barbie2_fla {
import flash.display.*;
public dynamic class bottoms_141 extends MovieClip {
public function bottoms_141(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package barbie2_fla
Section 3
//buttons_202 (barbie2_fla.buttons_202)
package barbie2_fla {
import flash.display.*;
public dynamic class buttons_202 extends MovieClip {
public var earringbtn:MovieClip;
public var shoesbtn:MovieClip;
public var chainbtn:MovieClip;
public var hairbtn:MovieClip;
public var bottomsbtn:MovieClip;
public var dressbtn:MovieClip;
public var topsbtn:MovieClip;
}
}//package barbie2_fla
Section 4
//buttons2_210 (barbie2_fla.buttons2_210)
package barbie2_fla {
import flash.display.*;
public dynamic class buttons2_210 extends MovieClip {
public var resetbtn:MovieClip;
public var nextbtn1:MovieClip;
}
}//package barbie2_fla
Section 5
//cbvdsfdsf_loader_7 (barbie2_fla.cbvdsfdsf_loader_7)
package barbie2_fla {
import flash.display.*;
public dynamic class cbvdsfdsf_loader_7 extends MovieClip {
public var masker:MovieClip;
}
}//package barbie2_fla
Section 6
//chaisn_172 (barbie2_fla.chaisn_172)
package barbie2_fla {
import flash.display.*;
public dynamic class chaisn_172 extends MovieClip {
public function chaisn_172(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package barbie2_fla
Section 7
//cvbcvbcvbvcy_78_1_loader_20 (barbie2_fla.cvbcvbcvbvcy_78_1_loader_20)
package barbie2_fla {
import flash.display.*;
public dynamic class cvbcvbcvbvcy_78_1_loader_20 extends MovieClip {
public function cvbcvbcvbvcy_78_1_loader_20(){
addFrameScript(56, frame57);
}
function frame57(){
stop();
}
}
}//package barbie2_fla
Section 8
//doll_94 (barbie2_fla.doll_94)
package barbie2_fla {
import flash.display.*;
public dynamic class doll_94 extends MovieClip {
public var dresses:MovieClip;
public var glasses:MovieClip;
public var earring:MovieClip;
public var bottoms:MovieClip;
public var tops:MovieClip;
public var chain:MovieClip;
public var shoes:MovieClip;
public var hair:MovieClip;
}
}//package barbie2_fla
Section 9
//dress_100 (barbie2_fla.dress_100)
package barbie2_fla {
import flash.display.*;
public dynamic class dress_100 extends MovieClip {
public function dress_100(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package barbie2_fla
Section 10
//ear_164 (barbie2_fla.ear_164)
package barbie2_fla {
import flash.display.*;
public dynamic class ear_164 extends MovieClip {
public function ear_164(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package barbie2_fla
Section 11
//glass_158 (barbie2_fla.glass_158)
package barbie2_fla {
import flash.display.*;
public dynamic class glass_158 extends MovieClip {
public function glass_158(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package barbie2_fla
Section 12
//MainTimeline (barbie2_fla.MainTimeline)
package barbie2_fla {
import flash.events.*;
import fl.transitions.*;
import flash.display.*;
import fl.transitions.easing.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.ui.*;
import flash.text.*;
import flash.net.*;
import flash.system.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.printing.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var sndon:SimpleButton;
public var bullet:backscore;
public var bg:MovieClip;
public var dol:MovieClip;
public var backdrop:MovieClip;
public var doll:MovieClip;
public var sndoff:SimpleButton;
public var man:MovieClip;
public var preloader:MovieClip;
public var buttons:MovieClip;
public var playmore:MovieClip;
public var contestMenu:ContextMenu;
public var percentage:Number;
public var trans:TransitionManager;
public var bulletChannel:SoundChannel;
public var logo_mc:MovieClip;
public var playagain:MovieClip;
public var tr:TransitionManager;
public var contextmenuItem:ContextMenuItem;
public var trans1:TransitionManager;
public var buttons2:MovieClip;
public var BitsLoaded:TextField;
public var play_btn:MovieClip;
public var ball:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
public function link(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
public function po(_arg1:MouseEvent):void{
nextFrame();
}
public function shoe(_arg1:MouseEvent):void{
doll.shoes.nextFrame();
}
public function pl(_arg1:MouseEvent):void{
doll.hair.gotoAndStop(1);
doll.dresses.gotoAndStop(1);
doll.tops.gotoAndStop(1);
doll.bottoms.gotoAndStop(1);
doll.shoes.gotoAndStop(1);
doll.chain.gotoAndStop(1);
doll.earring.gotoAndStop(1);
bg.gotoAndStop(1);
playagain.visible = false;
playmore.visible = false;
backdrop.visible = false;
buttons.visible = true;
buttons2.visible = true;
}
public function sndop(_arg1:MouseEvent):void{
bulletChannel.stop();
sndon.visible = true;
sndoff.visible = false;
}
public function bac(_arg1:MouseEvent):void{
bg.nextFrame();
}
public function dress(_arg1:MouseEvent):void{
doll.dresses.nextFrame();
doll.dresses.visible = true;
doll.tops.visible = false;
doll.bottoms.visible = false;
}
public function BeeMoving(_arg1:Event):void{
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
_local2 = (mouseX - ball.x);
_local3 = (mouseY - ball.y);
ball.x = (ball.x + (_local2 * 0.2));
ball.y = (ball.y + (_local3 * 0.2));
_local4 = loaderInfo.bytesLoaded;
_local5 = loaderInfo.bytesTotal;
percentage = Math.round(((_local4 / _local5) * 100));
BitsLoaded.text = (((_local4 + "kbs /") + _local5) + "kbs");
if (_local4 == _local5){
stage.removeEventListener(Event.ENTER_FRAME, BeeMoving);
gotoAndStop(2);
};
}
function frame1(){
stop();
contestMenu = new ContextMenu();
contestMenu.hideBuiltInItems();
contextmenuItem = new ContextMenuItem("www.123peppy.com");
contextmenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, Site);
contestMenu.customItems.push(contextmenuItem);
this.contextMenu = contestMenu;
percentage = 0;
stage.addEventListener(Event.ENTER_FRAME, BeeMoving);
}
function frame3(){
MochiBot.track(this, "0d57416a");
stop();
playagain.visible = false;
playmore.visible = false;
backdrop.visible = false;
tr = new TransitionManager(doll);
bullet = new backscore();
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.addEventListener(MouseEvent.CLICK, sndop);
sndon.addEventListener(MouseEvent.CLICK, sndst);
buttons.dressbtn.addEventListener(MouseEvent.CLICK, dress);
buttons.hairbtn.addEventListener(MouseEvent.CLICK, hair);
buttons.topsbtn.addEventListener(MouseEvent.CLICK, tops);
buttons.bottomsbtn.addEventListener(MouseEvent.CLICK, bottoms);
buttons.shoesbtn.addEventListener(MouseEvent.CLICK, shoe);
buttons.chainbtn.addEventListener(MouseEvent.CLICK, chain);
buttons.earringbtn.addEventListener(MouseEvent.CLICK, earring);
buttons2.resetbtn.addEventListener(MouseEvent.CLICK, rese);
buttons2.nextbtn1.addEventListener(MouseEvent.CLICK, nx);
playagain.addEventListener(MouseEvent.CLICK, pl);
backdrop.addEventListener(MouseEvent.CLICK, bac);
logo_mc.addEventListener(MouseEvent.CLICK, link);
playmore.addEventListener(MouseEvent.CLICK, link);
}
public function Site(_arg1:Event):void{
var _local2:URLRequest;
_local2 = new URLRequest("http://www.123peppy.com");
navigateToURL(_local2, "_blank");
}
function frame2(){
stop();
trans = new TransitionManager(dol);
trans1 = new TransitionManager(man);
trans.startTransition({type:PixelDissolve, direction:Transition.IN, duration:1, easing:None.easeIn, xSections:40, ySections:40});
trans1.startTransition({type:Wipe, direction:Transition.IN, duration:2, easing:None.easeOut});
play_btn.addEventListener(MouseEvent.CLICK, po);
}
public function earring(_arg1:MouseEvent):void{
doll.earring.nextFrame();
}
public function sndst(_arg1:MouseEvent):void{
bulletChannel = bullet.play(0, int.MAX_VALUE);
sndoff.visible = true;
sndon.visible = false;
}
public function tops(_arg1:MouseEvent):void{
doll.tops.nextFrame();
doll.tops.visible = true;
doll.dresses.visible = false;
doll.bottoms.visible = true;
}
public function rese(_arg1:MouseEvent):void{
doll.hair.gotoAndStop(1);
doll.dresses.gotoAndStop(1);
doll.tops.gotoAndStop(1);
doll.bottoms.gotoAndStop(1);
doll.shoes.gotoAndStop(1);
doll.chain.gotoAndStop(1);
doll.earring.gotoAndStop(1);
}
public function bottoms(_arg1:MouseEvent):void{
doll.bottoms.nextFrame();
doll.bottoms.visible = true;
doll.dresses.visible = false;
doll.tops.visible = true;
}
public function chain(_arg1:MouseEvent):void{
doll.chain.nextFrame();
}
public function nx(_arg1:MouseEvent):void{
playagain.visible = true;
playmore.visible = true;
backdrop.visible = true;
buttons.visible = false;
buttons2.visible = false;
tr.startTransition({type:Wipe, direction:Transition.IN, duration:2, easing:None.easeIn, xSections:60, ySections:60});
}
public function hair(_arg1:MouseEvent):void{
doll.hair.nextFrame();
}
}
}//package barbie2_fla
Section 13
//peppydfgfsds_loader_19 (barbie2_fla.peppydfgfsds_loader_19)
package barbie2_fla {
import flash.display.*;
public dynamic class peppydfgfsds_loader_19 extends MovieClip {
public function peppydfgfsds_loader_19(){
addFrameScript(46, frame47);
}
function frame47(){
stop();
}
}
}//package barbie2_fla
Section 14
//shoes_95 (barbie2_fla.shoes_95)
package barbie2_fla {
import flash.display.*;
public dynamic class shoes_95 extends MovieClip {
public function shoes_95(){
addFrameScript(0, frame1, 6, frame7);
}
function frame7(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package barbie2_fla
Section 15
//Symbol3_62 (barbie2_fla.Symbol3_62)
package barbie2_fla {
import flash.display.*;
public dynamic class Symbol3_62 extends MovieClip {
public function Symbol3_62(){
addFrameScript(0, frame1, 3, frame4);
}
function frame1(){
stop();
}
function frame4(){
gotoAndStop(1);
}
}
}//package barbie2_fla
Section 16
//top_148 (barbie2_fla.top_148)
package barbie2_fla {
import flash.display.*;
public dynamic class top_148 extends MovieClip {
public function top_148(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package barbie2_fla
Section 17
//None (fl.transitions.easing.None)
package fl.transitions.easing {
public class None {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
}
}//package fl.transitions.easing
Section 18
//PixelDissolve (fl.transitions.PixelDissolve)
package fl.transitions {
import flash.display.*;
import flash.geom.*;
public class PixelDissolve extends Transition {
protected var _numSections:uint;// = 1
protected var _ySections:Number;// = 10
protected var _mask:MovieClip;
protected var _xSections:Number;// = 10
protected var _innerMask:MovieClip;
protected var _indices:Array;
public function PixelDissolve(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
var _local4:int;
var _local5:int;
_xSections = 10;
_ySections = 10;
_numSections = 1;
super(_arg1, _arg2, _arg3);
if (_arg2.xSections){
this._xSections = _arg2.xSections;
};
if (_arg2.ySections){
this._ySections = _arg2.ySections;
};
this._numSections = (this._xSections * this._ySections);
this._indices = new Array();
_local4 = this._ySections;
while (_local4--) {
_local5 = this._xSections;
while (_local5--) {
this._indices[((_local4 * this._xSections) + _local5)] = {x:_local5, y:_local4};
};
};
this._shuffleArray(this._indices);
this._initMask();
}
protected function _initMask():void{
var _local1:Rectangle;
this._mask = new MovieClip();
this._mask.visible = false;
this._content.addChild(this._mask);
this._innerMask = new MovieClip();
this._mask.addChild(this._innerMask);
this._innerMask.graphics.beginFill(0xFF0000);
this.drawBox(this._innerMask, 0, 0, 100, 100);
this._innerMask.graphics.endFill();
_local1 = this._innerBounds;
this._mask.x = _local1.left;
this._mask.y = _local1.top;
this._mask.width = (_local1.right - _local1.left);
this._mask.height = (_local1.bottom - _local1.top);
}
override protected function _render(_arg1:Number):void{
var _local2:Number;
var _local3:Number;
var _local4:Array;
var _local5:MovieClip;
var _local6:Number;
if (_arg1 < 0){
_arg1 = 0;
};
if (_arg1 > 1){
_arg1 = 1;
};
_local2 = (100 / this._xSections);
_local3 = (100 / this._ySections);
_local4 = this._indices;
_local5 = this._innerMask;
_local5.graphics.clear();
_local5.graphics.beginFill(0xFF0000);
_local6 = Math.floor((_arg1 * this._numSections));
while (_local6--) {
this.drawBox(_local5, (_local4[_local6].x * _local2), (_local4[_local6].y * _local3), _local2, _local3);
};
_local5.graphics.endFill();
}
protected function _shuffleArray(_arg1:Array):void{
var _local2:int;
var _local3:int;
var _local4:Object;
_local2 = (_arg1.length - 1);
while (_local2 > 0) {
_local3 = Math.floor((Math.random() * (_local2 + 1)));
if (_local3 == _local2){
} else {
_local4 = _arg1[_local2];
_arg1[_local2] = _arg1[_local3];
_arg1[_local3] = _local4;
};
_local2--;
};
}
override public function get type():Class{
return (PixelDissolve);
}
override public function cleanUp():void{
this._content.removeChild(this._mask);
this._content.mask = null;
super.cleanUp();
}
override public function start():void{
this._content.mask = this._mask;
super.start();
}
}
}//package fl.transitions
Section 19
//Transition (fl.transitions.Transition)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class Transition extends EventDispatcher {
protected var _direction:uint;// = 0
protected var _progress:Number;
public var ID:int;
protected var _twn:Tween;
protected var _content:MovieClip;
protected var _height:Number;// = NAN
protected var _width:Number;// = NAN
protected var _outerBounds:Rectangle;
protected var _easing:Function;
protected var _innerBounds:Rectangle;
protected var _manager:TransitionManager;
protected var _duration:Number;// = 2
public static const IN:uint = 0;
public static const OUT:uint = 1;
public function Transition(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
_direction = 0;
_duration = 2;
_width = NaN;
_height = NaN;
super();
this.content = _arg1;
this.direction = _arg2.direction;
this.duration = _arg2.duration;
this.easing = _arg2.easing;
this.manager = _arg3;
this._innerBounds = this.manager._innerBounds;
this._outerBounds = this.manager._outerBounds;
this._width = this.manager._width;
this._height = this.manager._height;
this._resetTween();
}
public function stop():void{
this._twn.fforward();
this._twn.stop();
}
private function _resetTween():void{
if (this._twn){
this._twn.stop();
this._twn.removeEventListener(TweenEvent.MOTION_FINISH, this.onMotionFinished);
};
this._twn = new Tween(this, "", this.easing, 0, 1, this.duration, true);
this._twn.stop();
this._twn.prop = "progress";
this._twn.addEventListener(TweenEvent.MOTION_FINISH, this.onMotionFinished, false, 0, true);
}
public function onMotionFinished(_arg1:Object):void{
if (this.direction == Transition.OUT){
this.dispatchEvent(new Event("transitionOutDone"));
} else {
this.dispatchEvent(new Event("transitionInDone"));
};
}
public function get duration():Number{
return (this._duration);
}
public function set duration(_arg1:Number):void{
if (_arg1){
this._duration = _arg1;
if (this._twn){
this._twn.duration = _arg1;
};
};
}
public function get easing():Function{
return (this._easing);
}
public function get manager():TransitionManager{
return (this._manager);
}
public function get progress():Number{
return (this._progress);
}
protected function _render(_arg1:Number):void{
}
public function get type():Class{
return (Transition);
}
public function drawCircle(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number):void{
_arg1.graphics.moveTo((_arg2 + _arg4), _arg3);
_arg1.graphics.curveTo((_arg4 + _arg2), ((Math.tan((Math.PI / 8)) * _arg4) + _arg3), ((Math.sin((Math.PI / 4)) * _arg4) + _arg2), ((Math.sin((Math.PI / 4)) * _arg4) + _arg3));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg4) + _arg2), (_arg4 + _arg3), _arg2, (_arg4 + _arg3));
_arg1.graphics.curveTo(((-(Math.tan((Math.PI / 8))) * _arg4) + _arg2), (_arg4 + _arg3), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg2), ((Math.sin((Math.PI / 4)) * _arg4) + _arg3));
_arg1.graphics.curveTo((-(_arg4) + _arg2), ((Math.tan((Math.PI / 8)) * _arg4) + _arg3), (-(_arg4) + _arg2), _arg3);
_arg1.graphics.curveTo((-(_arg4) + _arg2), ((-(Math.tan((Math.PI / 8))) * _arg4) + _arg3), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg2), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg3));
_arg1.graphics.curveTo(((-(Math.tan((Math.PI / 8))) * _arg4) + _arg2), (-(_arg4) + _arg3), _arg2, (-(_arg4) + _arg3));
_arg1.graphics.curveTo(((Math.tan((Math.PI / 8)) * _arg4) + _arg2), (-(_arg4) + _arg3), ((Math.sin((Math.PI / 4)) * _arg4) + _arg2), ((-(Math.sin((Math.PI / 4))) * _arg4) + _arg3));
_arg1.graphics.curveTo((_arg4 + _arg2), ((-(Math.tan((Math.PI / 8))) * _arg4) + _arg3), (_arg4 + _arg2), _arg3);
}
public function cleanUp():void{
this.removeEventListener("transitionInDone", this._manager.transitionInDone);
this.removeEventListener("transitionOutDone", this._manager.transitionOutDone);
this.stop();
}
public function set easing(_arg1:Function):void{
this._easing = _arg1;
if (this._twn){
this._twn.func = _arg1;
};
}
public function set manager(_arg1:TransitionManager):void{
if (this._manager){
this.removeEventListener("transitionInDone", this._manager.transitionInDone);
this.removeEventListener("transitionOutDone", this._manager.transitionOutDone);
};
this._manager = _arg1;
this.addEventListener("transitionInDone", this._manager.transitionInDone);
this.addEventListener("transitionOutDone", this._manager.transitionOutDone);
}
public function set progress(_arg1:Number):void{
if (this._progress == _arg1){
return;
};
this._progress = _arg1;
if (this._direction){
this._render((1 - _arg1));
} else {
this._render(_arg1);
};
this.dispatchEvent(new Event("transitionProgress"));
}
public function start():void{
this.content.visible = true;
this._twn.start();
}
public function drawBox(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):void{
_arg1.graphics.moveTo(_arg2, _arg3);
_arg1.graphics.lineTo((_arg2 + _arg4), _arg3);
_arg1.graphics.lineTo((_arg2 + _arg4), (_arg3 + _arg5));
_arg1.graphics.lineTo(_arg2, (_arg3 + _arg5));
_arg1.graphics.lineTo(_arg2, _arg3);
}
public function set content(_arg1:MovieClip):void{
if (_arg1){
this._content = _arg1;
if (this._twn){
this._twn.obj = _arg1;
};
};
}
private function _noEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
}
public function get content():MovieClip{
return (this._content);
}
public function set direction(_arg1:Number):void{
this._direction = (_arg1) ? 1 : 0;
}
public function get direction():Number{
return (this._direction);
}
}
}//package fl.transitions
Section 20
//TransitionManager (fl.transitions.TransitionManager)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
public class TransitionManager extends EventDispatcher {
public var _innerBounds:Rectangle;
private var _visualPropList:Object;
private var _triggerEvent:String;
public var className:String;// = "TransitionManager"
public var type:Object;
private var _contentAppearance:Object;
private var _content:MovieClip;
public var _width:Number;// = NAN
public var _height:Number;// = NAN
public var _outerBounds:Rectangle;
private var _transitions:Object;
private static var IDCount:int = 0;
public function TransitionManager(_arg1:MovieClip){
type = TransitionManager;
className = "TransitionManager";
_width = NaN;
_height = NaN;
_visualPropList = {x:null, y:null, scaleX:null, scaleY:null, alpha:null, rotation:null};
super();
this.content = _arg1;
this._transitions = {};
}
public function get content():MovieClip{
return (this._content);
}
public function removeAllTransitions():void{
var _local1:Transition;
for each (_local1 in this._transitions) {
_local1.cleanUp();
this.removeTransition(_local1);
};
}
function transitionInDone(_arg1:Object):void{
var _local2:Boolean;
this.removeTransition(_arg1.target);
if (this.numInTransitions == 0){
_local2 = this._content.visible;
if ((((this._triggerEvent == "hide")) || ((this._triggerEvent == "hideChild")))){
this._content.visible = false;
};
if (_local2){
this.dispatchEvent(new Event("allTransitionsInDone"));
};
};
}
public function get numOutTransitions():Number{
var _local1:Number;
var _local2:Object;
var _local3:Transition;
_local1 = 0;
_local2 = this._transitions;
for each (_local3 in _local2) {
if (_local3.direction){
_local1++;
};
};
return (_local1);
}
public function get contentAppearance():Object{
return (this._contentAppearance);
}
public function saveContentAppearance():void{
var _local1:MovieClip;
var _local2:Object;
var _local3:String;
_local1 = this._content;
if (!this._contentAppearance){
_local2 = (this._contentAppearance = {});
for (_local3 in this._visualPropList) {
_local2[_local3] = _local1[_local3];
};
_local2.colorTransform = _local1.transform.colorTransform;
};
this._innerBounds = _local1.getBounds(_local1);
this._outerBounds = _local1.getBounds(_local1.parent);
this._width = _local1.width;
this._height = _local1.height;
}
public function addTransition(_arg1:Transition):Transition{
_arg1.ID = ++TransitionManager.IDCount;
this._transitions[_arg1.ID] = _arg1;
return (_arg1);
}
public function startTransition(_arg1:Object):Transition{
var _local2:Class;
var _local3:Transition;
this.removeTransition(this.findTransition(_arg1));
_local2 = _arg1.type;
_local3 = new _local2(this._content, _arg1, this);
this.addTransition(_local3);
_local3.start();
return (_local3);
}
function transitionOutDone(_arg1:Object):void{
var _local2:Boolean;
this.removeTransition(_arg1.target);
if (this.numOutTransitions == 0){
this.restoreContentAppearance();
_local2 = this._content.visible;
if (((_local2) && ((((_triggerEvent == "hide")) || ((_triggerEvent == "hideChild")))))){
this._content.visible = false;
};
if (_local2){
this.dispatchEvent(new Event("allTransitionsOutDone"));
};
};
}
public function restoreContentAppearance():void{
var _local1:MovieClip;
var _local2:Object;
var _local3:String;
_local1 = this._content;
_local2 = this._contentAppearance;
for (_local3 in this._visualPropList) {
_local1[_local3] = _local2[_local3];
};
_local1.transform.colorTransform = _local2.colorTransform;
}
public function get numTransitions():Number{
var _local1:Number;
var _local2:Transition;
_local1 = 0;
for each (_local2 in this._transitions) {
_local1++;
};
return (_local1);
}
public function findTransition(_arg1:Object):Transition{
var _local2:Transition;
for each (_local2 in this._transitions) {
if (_local2.type == _arg1.type){
return (_local2);
};
};
return (null);
}
public function set content(_arg1:MovieClip):void{
this._content = _arg1;
this.saveContentAppearance();
}
public function get numInTransitions():Number{
var _local1:Number;
var _local2:Object;
var _local3:Transition;
_local1 = 0;
_local2 = this._transitions;
for each (_local3 in _local2) {
if (!_local3.direction){
_local1++;
};
};
return (_local1);
}
public function removeTransition(_arg1:Transition):Boolean{
if (((((!(_arg1)) || (!(this._transitions)))) || (!(this._transitions[_arg1.ID])))){
return (false);
};
_arg1.cleanUp();
return (delete this._transitions[_arg1.ID]);
}
public function get transitionsList():Object{
return (this._transitions);
}
public static function start(_arg1:MovieClip, _arg2:Object):Transition{
if (!_arg1.__transitionManager){
_arg1.__transitionManager = new TransitionManager(_arg1);
};
if (_arg2.direction == 1){
_arg1.__transitionManager._triggerEvent = "hide";
} else {
_arg1.__transitionManager._triggerEvent = "reveal";
};
return (_arg1.__transitionManager.startTransition(_arg2));
}
}
}//package fl.transitions
Section 21
//Tween (fl.transitions.Tween)
package fl.transitions {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Tween extends EventDispatcher {
private var _position:Number;// = NAN
public var prevTime:Number;// = NAN
public var prevPos:Number;// = NAN
public var isPlaying:Boolean;// = false
public var begin:Number;// = NAN
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var change:Number;// = NAN
private var _finish:Number;// = NAN
public var looping:Boolean;// = false
private var _intervalID:uint;// = 0
public var func:Function;
private var _timer:Timer;// = null
private var _startTime:Number;// = NAN
public var prop:String;// = ""
private var _duration:Number;// = NAN
public var obj:Object;// = null
public var useSeconds:Boolean;// = false
protected static var _mc:MovieClip = new MovieClip();
public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
isPlaying = false;
obj = null;
prop = "";
func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
begin = NaN;
change = NaN;
useSeconds = false;
prevTime = NaN;
prevPos = NaN;
looping = false;
_duration = NaN;
_time = NaN;
_fps = NaN;
_position = NaN;
_startTime = NaN;
_intervalID = 0;
_finish = NaN;
_timer = null;
super();
if (!arguments.length){
return;
};
this.obj = _arg1;
this.prop = _arg2;
this.begin = _arg4;
this.position = _arg4;
this.duration = _arg6;
this.useSeconds = _arg7;
if ((_arg3 is Function)){
this.func = _arg3;
};
this.finish = _arg5;
this._timer = new Timer(100);
this.start();
}
public function continueTo(_arg1:Number, _arg2:Number):void{
this.begin = this.position;
this.finish = _arg1;
if (!isNaN(_arg2)){
this.duration = _arg2;
};
this.start();
}
public function stop():void{
this.stopEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
}
private function fixTime():void{
if (this.useSeconds){
this._startTime = (getTimer() - (this._time * 1000));
};
}
public function set FPS(_arg1:Number):void{
var _local2:Boolean;
_local2 = this.isPlaying;
this.stopEnterFrame();
this._fps = _arg1;
if (_local2){
this.startEnterFrame();
};
}
public function get finish():Number{
return ((this.begin + this.change));
}
public function get duration():Number{
return (this._duration);
}
protected function startEnterFrame():void{
var _local1:Number;
if (isNaN(this._fps)){
_mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true);
} else {
_local1 = (1000 / this._fps);
this._timer.delay = _local1;
this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
this._timer.start();
};
this.isPlaying = true;
}
public function set time(_arg1:Number):void{
this.prevTime = this._time;
if (_arg1 > this.duration){
if (this.looping){
this.rewind((_arg1 - this._duration));
this.update();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
} else {
if (this.useSeconds){
this._time = this._duration;
this.update();
};
this.stop();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
};
} else {
if (_arg1 < 0){
this.rewind();
this.update();
} else {
this._time = _arg1;
this.update();
};
};
}
protected function stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
public function getPosition(_arg1:Number=NaN):Number{
if (isNaN(_arg1)){
_arg1 = this._time;
};
return (this.func(_arg1, this.begin, this.change, this._duration));
}
public function set finish(_arg1:Number):void{
this.change = (_arg1 - this.begin);
}
public function set duration(_arg1:Number):void{
this._duration = ((_arg1)<=0) ? Infinity : _arg1;
}
public function setPosition(_arg1:Number):void{
this.prevPos = this._position;
if (this.prop.length){
this.obj[this.prop] = (this._position = _arg1);
};
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
}
public function resume():void{
this.fixTime();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
}
public function fforward():void{
this.time = this._duration;
this.fixTime();
}
protected function onEnterFrame(_arg1:Event):void{
this.nextFrame();
}
public function get position():Number{
return (this.getPosition(this._time));
}
public function yoyo():void{
this.continueTo(this.begin, this.time);
}
public function nextFrame():void{
if (this.useSeconds){
this.time = ((getTimer() - this._startTime) / 1000);
} else {
this.time = (this._time + 1);
};
}
protected function timerHandler(_arg1:TimerEvent):void{
this.nextFrame();
_arg1.updateAfterEvent();
}
public function get FPS():Number{
return (this._fps);
}
public function rewind(_arg1:Number=0):void{
this._time = _arg1;
this.fixTime();
this.update();
}
public function set position(_arg1:Number):void{
this.setPosition(_arg1);
}
public function get time():Number{
return (this._time);
}
private function update():void{
this.setPosition(this.getPosition(this._time));
}
public function start():void{
this.rewind();
this.startEnterFrame();
this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
}
public function prevFrame():void{
if (!this.useSeconds){
this.time = (this._time - 1);
};
}
}
}//package fl.transitions
Section 22
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var time:Number;// = NAN
public var position:Number;// = NAN
public static const MOTION_START:String = "motionStart";
public static const MOTION_STOP:String = "motionStop";
public static const MOTION_LOOP:String = "motionLoop";
public static const MOTION_CHANGE:String = "motionChange";
public static const MOTION_FINISH:String = "motionFinish";
public static const MOTION_RESUME:String = "motionResume";
public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){
time = NaN;
position = NaN;
super(_arg1, _arg4, _arg5);
this.time = _arg2;
this.position = _arg3;
}
override public function clone():Event{
return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
}
}
}//package fl.transitions
Section 23
//Wipe (fl.transitions.Wipe)
package fl.transitions {
import flash.display.*;
import flash.geom.*;
public class Wipe extends Transition {
protected var _cornerMode:Boolean;// = false
protected var _mask:MovieClip;
protected var _innerMask:MovieClip;
protected var _startPoint:uint;// = 4
public function Wipe(_arg1:MovieClip, _arg2:Object, _arg3:TransitionManager){
_startPoint = 4;
_cornerMode = false;
super(_arg1, _arg2, _arg3);
if (_arg2.startPoint){
this._startPoint = _arg2.startPoint;
};
this._initMask();
}
protected function _initMask():void{
var _local1:Rectangle;
this._mask = new MovieClip();
this._mask.visible = false;
this._content.addChild(this._mask);
this._innerMask = new MovieClip();
this._mask.addChild(this._innerMask);
this._innerMask.x = (this._innerMask.y = 50);
this._innerMask.graphics.beginFill(0xFF0000);
this.drawBox(this._innerMask, -50, -50, 100, 100);
this._innerMask.graphics.endFill();
switch (this._startPoint){
case 3:
case 2:
this._innerMask.rotation = 90;
break;
case 1:
case 4:
case 5:
this._innerMask.rotation = 0;
break;
case 9:
case 6:
this._innerMask.rotation = 180;
break;
case 7:
case 8:
this._innerMask.rotation = -90;
break;
};
if ((this._startPoint % 2)){
this._cornerMode = true;
};
_local1 = this._innerBounds;
this._mask.x = _local1.left;
this._mask.y = _local1.top;
this._mask.width = _local1.width;
this._mask.height = _local1.height;
}
protected function _drawSlant(_arg1:MovieClip, _arg2:Number):void{
_arg1.graphics.moveTo(-50, -50);
if (_arg2 <= 0.5){
_arg1.graphics.lineTo((200 * (_arg2 - 0.25)), -50);
_arg1.graphics.lineTo(-50, (200 * (_arg2 - 0.25)));
} else {
_arg1.graphics.lineTo(50, -50);
_arg1.graphics.lineTo(50, (200 * (_arg2 - 0.75)));
_arg1.graphics.lineTo((200 * (_arg2 - 0.75)), 50);
_arg1.graphics.lineTo(-50, 50);
};
_arg1.graphics.lineTo(-50, -50);
}
override protected function _render(_arg1:Number):void{
this._innerMask.graphics.clear();
this._innerMask.graphics.beginFill(0xFF0000);
if (this._cornerMode){
this._drawSlant(this._innerMask, _arg1);
} else {
this.drawBox(this._innerMask, -50, -50, (_arg1 * 100), 100);
};
this._innerMask.graphics.endFill();
}
override public function get type():Class{
return (Wipe);
}
override public function cleanUp():void{
this._content.removeChild(this._mask);
this._content.mask = null;
super.cleanUp();
}
override public function start():void{
this._content.mask = this._mask;
super.start();
}
}
}//package fl.transitions
Section 24
//backscore (backscore)
package {
import flash.media.*;
public dynamic class backscore extends Sound {
}
}//package
Section 25
//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