Section 1
//EmmaWatsongamescreen_148 (EmmaWatson_fla.EmmaWatsongamescreen_148)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class EmmaWatsongamescreen_148 extends MovieClip {
public var buttons:MovieClip;
public var backGround:MovieClip;
public var logo2:MovieClip;
public var startText:MovieClip;
public function EmmaWatsongamescreen_148(){
addFrameScript(0, frame1);
}
function frame1(){
logo2.addEventListener(MouseEvent.CLICK, goTo2);
logo2.useHandCursor = true;
logo2.buttonMode = true;
}
public function goTo2(_arg1:Event){
navigateToURL(new URLRequest("http://www.didigames.com"), "_blank");
}
}
}//package EmmaWatson_fla
Section 2
//EmmaWatsonvexel_28 (EmmaWatson_fla.EmmaWatsonvexel_28)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class EmmaWatsonvexel_28 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var nameElements:Array;
public var activeCategory:Number;
public var logo:MovieClip;
public var activeItem:Array;
public var mainMenu:MovieClip;
public var ch10:MovieClip;
public var nrElements:Array;
public var savedFilter:GlowFilter;
public var simboluri:MovieClip;
public var saveAI:Array;
public var defaultElements:Array;
public var i;
public var ch1:MovieClip;
public var ch2:MovieClip;
public var logo2:MovieClip;
public var ch4:MovieClip;
public var ch5:MovieClip;
public var ch6:MovieClip;
public var ch8:MovieClip;
public var ch9:MovieClip;
public var ch3:MovieClip;
public var ch7:MovieClip;
public function EmmaWatsonvexel_28(){
addFrameScript(0, frame1);
}
public function goTo(_arg1:Event){
navigateToURL(new URLRequest("http://www.rainbowdressup.com"), "_blank");
}
public function before(_arg1:Event){
i = 1;
while (i <= 10) {
saveAI[i] = activeItem[i];
i++;
};
i = 1;
while (i <= 10) {
hideElements(this[("ch" + i)], nameElements[i], nrElements[i], defaultElements[i], i, 0.01);
i++;
};
}
public function goTo2(_arg1:Event){
navigateToURL(new URLRequest("http://www.didigames.com"), "_blank");
}
public function init(){
activeCategory = 1;
activeItem[1] = 4;
simboluri.o4.gotoAndStop(2);
i = 1;
while (i <= 10) {
hideElements(this[("ch" + i)], nameElements[i], nrElements[i], defaultElements[i], i, 0.3);
i++;
};
i = 1;
while (i <= 5) {
simboluri[("o" + i)].x = (71 + ((i - 1) * 40));
simboluri[("o" + i)].visible = true;
i++;
};
simboluri[("o" + 5)].alpha = 0;
i = 1;
while (i <= 4) {
simboluri[("o" + i)].x = (89 + ((i - 1) * 40));
i++;
};
}
function frame1(){
stop();
keepTweensAlive = new Dictionary(false);
nrElements = new Array(0, 4, 5, 3, 5, 5, 5, 5, 5, 4, 5);
nameElements = new Array("x", "p", "h", "f", "o", "b", "g", "s", "e", "p", "a");
defaultElements = new Array(0, 4, 1, 3, 5, 1, 3, 5, 2, 1, 1);
activeCategory = new Number();
activeItem = new Array();
saveAI = new Array();
savedFilter = new GlowFilter();
i = 1;
while (i <= 10) {
simboluri[("m" + i)].addEventListener(MouseEvent.MOUSE_UP, doClick);
simboluri[("m" + i)].buttonMode = true;
simboluri[("m" + i)].useHandCursor = true;
simboluri[("m" + i)].myNr = i;
i++;
};
i = 1;
while (i <= 5) {
simboluri[("o" + i)].addEventListener(MouseEvent.MOUSE_UP, changeActive);
simboluri[("o" + i)].addEventListener(MouseEvent.ROLL_OVER, startFlower);
simboluri[("o" + i)].addEventListener(MouseEvent.ROLL_OUT, stopFlower);
simboluri[("o" + i)].myNr = i;
simboluri[("o" + i)].buttonMode = true;
simboluri[("o" + i)].useHandCursor = true;
i++;
};
init();
mainMenu.b1.addEventListener(MouseEvent.ROLL_OVER, before);
mainMenu.b1.addEventListener(MouseEvent.ROLL_OUT, after);
mainMenu.b2.addEventListener(MouseEvent.MOUSE_UP, reset);
mainMenu.b3.addEventListener(MouseEvent.MOUSE_UP, moreGames);
i = 1;
while (i <= 3) {
mainMenu[("b" + i)].buttonMode = true;
mainMenu[("b" + i)].useHandCursor = true;
mainMenu[("b" + i)].addEventListener(MouseEvent.ROLL_OVER, startFlower);
mainMenu[("b" + i)].addEventListener(MouseEvent.ROLL_OUT, stopFlower);
i++;
};
logo.addEventListener(MouseEvent.CLICK, goTo);
logo2.addEventListener(MouseEvent.CLICK, goTo2);
logo2.useHandCursor = true;
logo2.buttonMode = true;
}
public function addShadow(_arg1:DisplayObject){
var _local2:DropShadowFilter = new DropShadowFilter();
_local2.distance = 0;
_local2.angle = 45;
_local2.color = 0;
_local2.alpha = 1;
_local2.blurX = 5;
_local2.blurY = 5;
_local2.strength = 1;
_local2.quality = 15;
_local2.inner = false;
_local2.knockout = false;
_local2.hideObject = false;
_arg1.filters = new Array(_local2);
}
public function fadeOut(_arg1:MovieClip){
var endTween2:Function;
var mc = _arg1;
endTween2 = function (_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
fadeIn(mc);
};
var myTweenIn:* = new Tween(mc, "alpha", None.easeIn, 1, 0, 0.5, true);
myTweenIn.addEventListener(TweenEvent.MOTION_FINISH, endTween2);
keepTweensAlive[myTweenIn] = myTweenIn;
}
public function categShadow(_arg1:DisplayObject){
var _local2:GlowFilter = new GlowFilter();
_local2.color = 0xFF0000;
_local2.alpha = 1;
_local2.blurX = 2;
_local2.blurY = 2;
_local2.strength = 4;
_local2.quality = 3;
_local2.inner = false;
_local2.knockout = false;
_arg1.filters = new Array(_local2);
}
public function doClick(_arg1:Event){
var _local2:*;
var _local3:*;
var _local4:*;
if (activeCategory != _arg1.target.parent.myNr){
_arg1.target.parent.parent[("o" + activeItem[activeCategory])].gotoAndStop(1);
categShadow(simboluri[("m" + activeCategory)]);
activeCategory = _arg1.target.parent.myNr;
removeShadow(DisplayObject(_arg1.target.parent));
_arg1.target.parent.parent[("o" + activeItem[activeCategory])].gotoAndStop(2);
if (nrElements[_arg1.target.parent.myNr] == 5){
i = 1;
while (i <= 5) {
_local2 = new Tween(simboluri[("o" + i)], "x", None.easeIn, simboluri[("o" + i)].x, (71 + ((i - 1) * 40)), 0.5, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
fadeOut(simboluri[("o" + i)]);
simboluri[("o" + 4)].visible = true;
simboluri[("o" + 5)].visible = true;
i++;
};
};
if (nrElements[_arg1.target.parent.myNr] == 4){
i = 1;
while (i <= 4) {
_local3 = new Tween(simboluri[("o" + i)], "x", None.easeIn, simboluri[("o" + i)].x, (89 + ((i - 1) * 40)), 0.5, true);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local3] = _local3;
fadeOut(simboluri[("o" + i)]);
simboluri[("o" + 4)].visible = true;
i++;
};
simboluri[("o" + 5)].visible = false;
};
if (nrElements[_arg1.target.parent.myNr] == 3){
i = 1;
while (i <= 3) {
_local4 = new Tween(simboluri[("o" + i)], "x", None.easeIn, simboluri[("o" + i)].x, (111 + ((i - 1) * 40)), 0.5, true);
_local4.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local4] = _local4;
fadeOut(simboluri[("o" + i)]);
i++;
};
simboluri[("o" + 4)].visible = false;
simboluri[("o" + 5)].visible = false;
};
};
}
public function fadeIn(_arg1:MovieClip){
var _local2:* = new Tween(_arg1, "alpha", None.easeIn, 0, 1, 0.5, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(_arg1.target, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(_arg1.target, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function removeShadow(_arg1:DisplayObject){
_arg1.filters = null;
}
public function hideElements(_arg1:MovieClip, _arg2:String, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){
var _local8:*;
var _local9:*;
var _local7:* = 1;
while (_local7 <= _arg3) {
if (_local7 != _arg4){
if (_arg1[(("" + _arg2) + _local7)].activ == 1){
_local8 = new Tween(_arg1[(("" + _arg2) + _local7)], "alpha", None.easeIn, 1, 0, _arg6, true);
_local8.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local8] = _local8;
} else {
_arg1[(("" + _arg2) + _local7)].alpha = 0;
};
_arg1[(("" + _arg2) + _local7)].activ = 0;
} else {
_local9 = new Tween(_arg1[(("" + _arg2) + _local7)], "alpha", None.easeIn, 0, 1, _arg6, true);
_local9.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local9] = _local9;
_arg1[(("" + _arg2) + _local7)].activ = 1;
activeItem[_arg5] = _local7;
};
_local7++;
};
}
public function startFlower(_arg1:Event){
addShadow(DisplayObject(_arg1.target));
}
public function after(_arg1:Event){
i = 1;
while (i <= 10) {
hideElements(this[("ch" + i)], nameElements[i], nrElements[i], saveAI[i], i, 0.01);
i++;
};
}
public function changeActive(_arg1:Event){
if (activeItem[activeCategory] != _arg1.target.parent.myNr){
if ((((activeCategory == 10)) && ((_arg1.target.parent.myNr == 5)))){
MovieClip(root).mainscreen.addChild(ch10);
} else {
MovieClip(root).mainscreen.addChild(ch1);
};
_arg1.target.parent.gotoAndStop(2);
_arg1.target.parent.parent[("o" + activeItem[activeCategory])].gotoAndStop(1);
hideElements(this[("ch" + activeCategory)], nameElements[activeCategory], nrElements[activeCategory], _arg1.target.parent.myNr, activeCategory, 0.3);
};
}
public function moreGames(_arg1:Event){
navigateToURL(new URLRequest("http://www.rainbowdressup.com"), "_blank");
}
public function reset(_arg1:Event){
var _local2:Number = new Number();
_local2 = activeCategory;
simboluri[("o" + activeItem[activeCategory])].gotoAndStop(1);
i = 1;
while (i <= 10) {
hideElements(this[("ch" + i)], nameElements[i], nrElements[i], defaultElements[i], i, 0.1);
i++;
};
activeCategory = _local2;
simboluri[("o" + activeItem[activeCategory])].gotoAndStop(2);
}
public function stopFlower(_arg1:Event){
removeShadow(DisplayObject(_arg1.target));
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(_arg1.target, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(_arg1.target, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 3
//m1_106 (EmmaWatson_fla.m1_106)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m1_106 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var iconBut:MovieClip;
public function m1_106(){
addFrameScript(0, frame1);
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
function frame1(){
keepTweensAlive = new Dictionary(false);
iconBut.addEventListener(MouseEvent.ROLL_OVER, doOver);
iconBut.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 4
//m10_90 (EmmaWatson_fla.m10_90)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m10_90 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var iconBut:MovieClip;
public function m10_90(){
addFrameScript(0, frame1);
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
function frame1(){
keepTweensAlive = new Dictionary(false);
iconBut.addEventListener(MouseEvent.ROLL_OVER, doOver);
iconBut.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 5
//m11_88 (EmmaWatson_fla.m11_88)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m11_88 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var iconBut:MovieClip;
public function m11_88(){
addFrameScript(0, frame1);
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
function frame1(){
keepTweensAlive = new Dictionary(false);
iconBut.addEventListener(MouseEvent.ROLL_OVER, doOver);
iconBut.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 6
//m2_104 (EmmaWatson_fla.m2_104)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m2_104 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var iconBut:MovieClip;
public function m2_104(){
addFrameScript(0, frame1);
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
function frame1(){
keepTweensAlive = new Dictionary(false);
iconBut.addEventListener(MouseEvent.ROLL_OVER, doOver);
iconBut.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 7
//m3_102 (EmmaWatson_fla.m3_102)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m3_102 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var iconBut:MovieClip;
public function m3_102(){
addFrameScript(0, frame1);
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
function frame1(){
keepTweensAlive = new Dictionary(false);
iconBut.addEventListener(MouseEvent.ROLL_OVER, doOver);
iconBut.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 8
//m4_100 (EmmaWatson_fla.m4_100)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m4_100 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var iconBut:MovieClip;
public function m4_100(){
addFrameScript(0, frame1);
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
function frame1(){
keepTweensAlive = new Dictionary(false);
iconBut.addEventListener(MouseEvent.ROLL_OVER, doOver);
iconBut.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 9
//m5_98 (EmmaWatson_fla.m5_98)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m5_98 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var iconBut:MovieClip;
public function m5_98(){
addFrameScript(0, frame1);
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
function frame1(){
keepTweensAlive = new Dictionary(false);
iconBut.addEventListener(MouseEvent.ROLL_OVER, doOver);
iconBut.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 10
//m6_96 (EmmaWatson_fla.m6_96)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m6_96 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var iconBut:MovieClip;
public function m6_96(){
addFrameScript(0, frame1);
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
function frame1(){
keepTweensAlive = new Dictionary(false);
iconBut.addEventListener(MouseEvent.ROLL_OVER, doOver);
iconBut.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 11
//m7_94 (EmmaWatson_fla.m7_94)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m7_94 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var iconBut:MovieClip;
public function m7_94(){
addFrameScript(0, frame1);
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
function frame1(){
keepTweensAlive = new Dictionary(false);
iconBut.addEventListener(MouseEvent.ROLL_OVER, doOver);
iconBut.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 12
//m9_92 (EmmaWatson_fla.m9_92)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class m9_92 extends MovieClip {
public var keepTweensAlive:Dictionary;
public var iconBut:MovieClip;
public function m9_92(){
addFrameScript(0, frame1);
}
public function endTween(_arg1:TweenEvent){
keepTweensAlive[_arg1.currentTarget] = null;
delete keepTweensAlive[_arg1.currentTarget];
}
public function doOut(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOut);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1.1, 1, 0.2, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1.1, 1, 0.2, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
function frame1(){
keepTweensAlive = new Dictionary(false);
iconBut.addEventListener(MouseEvent.ROLL_OVER, doOver);
iconBut.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
public function doOver(_arg1:Event){
removeEventListener(MouseEvent.ROLL_OVER, doOver);
var _local2:* = new Tween(iconBut, "scaleX", None.easeIn, 1, 1.1, 0.1, true);
var _local3:* = new Tween(iconBut, "scaleY", None.easeIn, 1, 1.1, 0.1, true);
_local2.addEventListener(TweenEvent.MOTION_FINISH, endTween);
_local3.addEventListener(TweenEvent.MOTION_FINISH, endTween);
keepTweensAlive[_local2] = _local2;
keepTweensAlive[_local3] = _local3;
}
}
}//package EmmaWatson_fla
Section 13
//MainTimeline (EmmaWatson_fla.MainTimeline)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import fl.transitions.easing.*;
import flash.utils.*;
import flash.filters.*;
import flash.system.*;
import flash.net.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.geom.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.text.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var mainscreen:MovieClip;
public var preload:MovieClip;
public var startScreen:MovieClip;
public var preloadBack:MovieClip;
public var i;
public function MainTimeline(){
addFrameScript(0, frame1, 9, frame10);
}
public function addShadow(_arg1:DisplayObject){
var _local2:DropShadowFilter = new DropShadowFilter();
_local2.distance = 0;
_local2.angle = 45;
_local2.color = 0;
_local2.alpha = 1;
_local2.blurX = 5;
_local2.blurY = 5;
_local2.strength = 1;
_local2.quality = 15;
_local2.inner = false;
_local2.knockout = false;
_local2.hideObject = false;
_arg1.filters = new Array(_local2);
}
public function doOut(_arg1:Event){
removeShadow(DisplayObject(_arg1.currentTarget));
}
public function removeShadow(_arg1:DisplayObject){
_arg1.filters = null;
}
function frame1(){
stop();
stop();
MochiBot.track(this, "186a5333");
preload.addEventListener(MouseEvent.CLICK, goTo2);
preload.useHandCursor = true;
preload.buttonMode = true;
preloadBack.addEventListener(MouseEvent.CLICK, goTo2);
preloadBack.useHandCursor = true;
preloadBack.buttonMode = true;
}
function frame10(){
stop();
i = 1;
while (i <= 2) {
startScreen.buttons[("button" + i)].addEventListener(MouseEvent.CLICK, doClick);
startScreen.buttons[("button" + i)].addEventListener(MouseEvent.ROLL_OVER, doOver);
startScreen.buttons[("button" + i)].addEventListener(MouseEvent.ROLL_OUT, doOut);
startScreen.buttons[("button" + i)].buttonMode = true;
startScreen.buttons[("button" + i)].useHandCursor = true;
i++;
};
}
public function goTo2(_arg1:Event){
navigateToURL(new URLRequest("http://www.rainbowdressup.com"), "_blank");
}
public function addShadow2(_arg1:DisplayObject){
var _local2:DropShadowFilter = new DropShadowFilter();
_local2.distance = 0;
_local2.angle = 45;
_local2.color = 0xFFFFFF;
_local2.alpha = 1;
_local2.blurX = 5;
_local2.blurY = 5;
_local2.strength = 1;
_local2.quality = 15;
_local2.inner = false;
_local2.knockout = false;
_local2.hideObject = false;
_arg1.filters = new Array(_local2);
}
public function doClick(_arg1:Event){
if (_arg1.currentTarget.name == "button1"){
startScreen.visible = false;
};
if (_arg1.currentTarget.name == "button2"){
trace("pressed");
navigateToURL(new URLRequest("http://www.rainbowdressup.com"), "_blank");
};
}
public function doOver(_arg1:Event){
addShadow(DisplayObject(_arg1.currentTarget));
}
}
}//package EmmaWatson_fla
Section 14
//op1_108 (EmmaWatson_fla.op1_108)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class op1_108 extends MovieClip {
public var flower:MovieClip;
public function op1_108(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package EmmaWatson_fla
Section 15
//op2_111 (EmmaWatson_fla.op2_111)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class op2_111 extends MovieClip {
public var flower:MovieClip;
public function op2_111(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package EmmaWatson_fla
Section 16
//op3_112 (EmmaWatson_fla.op3_112)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class op3_112 extends MovieClip {
public var flower:MovieClip;
public function op3_112(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package EmmaWatson_fla
Section 17
//op4_113 (EmmaWatson_fla.op4_113)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class op4_113 extends MovieClip {
public var flower:MovieClip;
public function op4_113(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package EmmaWatson_fla
Section 18
//op5_114 (EmmaWatson_fla.op5_114)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class op5_114 extends MovieClip {
public var flower:MovieClip;
public function op5_114(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package EmmaWatson_fla
Section 19
//playButton_27 (EmmaWatson_fla.playButton_27)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class playButton_27 extends MovieClip {
public function playButton_27(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package EmmaWatson_fla
Section 20
//pre_rainb_blingblingggggR_15 (EmmaWatson_fla.pre_rainb_blingblingggggR_15)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class pre_rainb_blingblingggggR_15 extends MovieClip {
public function pre_rainb_blingblingggggR_15(){
addFrameScript(29, frame30);
}
function frame30(){
stop();
}
}
}//package EmmaWatson_fla
Section 21
//pre_rainb_flaresR_21 (EmmaWatson_fla.pre_rainb_flaresR_21)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class pre_rainb_flaresR_21 extends MovieClip {
public function pre_rainb_flaresR_21(){
addFrameScript(20, frame21);
}
function frame21(){
stop();
}
}
}//package EmmaWatson_fla
Section 22
//pre_rainb_loadingbarR_24 (EmmaWatson_fla.pre_rainb_loadingbarR_24)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class pre_rainb_loadingbarR_24 extends MovieClip {
public function pre_rainb_loadingbarR_24(){
addFrameScript(239, frame240);
}
function frame240(){
stop();
MovieClip(root).gotoAndPlay("Game");
}
}
}//package EmmaWatson_fla
Section 23
//pre_rainb_t1_11 (EmmaWatson_fla.pre_rainb_t1_11)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class pre_rainb_t1_11 extends MovieClip {
public function pre_rainb_t1_11(){
addFrameScript(19, frame20);
}
function frame20(){
}
}
}//package EmmaWatson_fla
Section 24
//pre_rainb_t1R_10 (EmmaWatson_fla.pre_rainb_t1R_10)
package EmmaWatson_fla {
import flash.display.*;
public dynamic class pre_rainb_t1R_10 extends MovieClip {
public var bar_mc:MovieClip;
public function pre_rainb_t1R_10(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package EmmaWatson_fla
Section 25
//RainbowDressup_Preloader_8 (EmmaWatson_fla.RainbowDressup_Preloader_8)
package EmmaWatson_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class RainbowDressup_Preloader_8 extends MovieClip {
public var playGame:MovieClip;
public var gotoRainbow:MovieClip;
public var loadingbar:MovieClip;
public function RainbowDressup_Preloader_8(){
addFrameScript(0, frame1, 10, frame11, 19, frame20);
}
public function doOut(_arg1:Event){
playGame.gotoAndStop(1);
}
function frame1(){
stop();
}
public function doRainbow(_arg1:Event){
navigateToURL(new URLRequest("http://www.rainbowdressup.com"), "_blank");
}
function frame20(){
stop();
gotoRainbow.addEventListener(MouseEvent.MOUSE_UP, doRainbow);
playGame.addEventListener(MouseEvent.CLICK, doGame);
playGame.addEventListener(MouseEvent.ROLL_OVER, doOver);
playGame.addEventListener(MouseEvent.ROLL_OUT, doOut);
}
function frame11(){
MovieClip(root).gotoAndStop("Game");
}
public function preLoading(_arg1:ProgressEvent):void{
var _local2:Number = _arg1.bytesLoaded;
var _local3:Number = _arg1.bytesTotal;
var _local4:Number = Math.floor(((_local2 / _local3) * 100));
loadingbar.gotoAndStop(_local4);
if (_local4 == 100){
gotoAndPlay("start");
};
}
public function doGame(_arg1:Event){
MovieClip(root).gotoAndStop("Game");
}
public function doOver(_arg1:Event){
playGame.gotoAndStop(2);
}
}
}//package EmmaWatson_fla
Section 26
//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 27
//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
private var _fps:Number;// = NAN
private var _time:Number;// = NAN
public var begin:Number;// = NAN
private var _finish:Number;// = NAN
public var change: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){
this.func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 * _arg1) / _arg4) + _arg2));
};
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();
}
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 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 = 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 stopEnterFrame():void{
if (isNaN(this._fps)){
_mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame);
} else {
this._timer.stop();
};
this.isPlaying = false;
}
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();
};
};
}
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 get position():Number{
return (this.getPosition(this._time));
}
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 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 28
//TweenEvent (fl.transitions.TweenEvent)
package fl.transitions {
import flash.events.*;
public class TweenEvent extends Event {
public var position:Number;// = NAN
public var time: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){
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 29
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
if (Security.sandboxType == "localWithFile"){
return (null);
};
var _local3:MochiBot = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
var _local4 = "http://core.mochibot.com/my/core.swf";
var _local5:URLVariables = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
var _local6:String = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
var _local7:URLRequest = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
var _local8:Loader = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package