Section 1
//copy_getToTheGoodStuffFaster_25 (ATT_Skyrocket_NON_fla.copy_getToTheGoodStuffFaster_25)
package ATT_Skyrocket_NON_fla {
import com.greensock.*;
import flash.display.*;
public dynamic class copy_getToTheGoodStuffFaster_25 extends MovieClip {
public var copy1:MovieClip;
public var copy2:MovieClip;
public var copy3:MovieClip;
public function copy_getToTheGoodStuffFaster_25(){
addFrameScript(0, frame1);
}
public function animateIn(_arg1:Number=0):void{
TweenNano.to(copy1, 0.4, {alpha:1, delay:_arg1});
TweenNano.to(copy2, 0.4, {alpha:1, delay:(_arg1 + 0.2)});
TweenNano.to(copy3, 0.4, {alpha:1, delay:(_arg1 + 0.4)});
}
public function init():void{
copy1.alpha = (copy2.alpha = (copy3.alpha = 0));
this.alpha = 1;
}
function frame1(){
init();
}
}
}//package ATT_Skyrocket_NON_fla
Section 2
//logo_android_20 (ATT_Skyrocket_NON_fla.logo_android_20)
package ATT_Skyrocket_NON_fla {
import flash.display.*;
public dynamic class logo_android_20 extends MovieClip {
public var body:MovieClip;
public var arm:MovieClip;
public var copy:MovieClip;
public function logo_android_20(){
addFrameScript(0, frame1);
}
function frame1(){
}
}
}//package ATT_Skyrocket_NON_fla
Section 3
//logo_att_29 (ATT_Skyrocket_NON_fla.logo_att_29)
package ATT_Skyrocket_NON_fla {
import com.greensock.*;
import flash.display.*;
public dynamic class logo_att_29 extends MovieClip {
public var copy:MovieClip;
public var globe:MovieClip;
public function logo_att_29(){
addFrameScript(0, frame1);
}
public function hideCopy():void{
copy.alpha = 0;
}
public function showCopy(_arg1:Number=0):void{
TweenNano.to(copy, 0.5, {alpha:1, delay:_arg1});
}
function frame1(){
}
}
}//package ATT_Skyrocket_NON_fla
Section 4
//logo_samsungSkyrocket_8 (ATT_Skyrocket_NON_fla.logo_samsungSkyrocket_8)
package ATT_Skyrocket_NON_fla {
import com.greensock.*;
import flash.display.*;
public dynamic class logo_samsungSkyrocket_8 extends MovieClip {
public var skyrocket:MovieClip;
public var samsung:MovieClip;
public function logo_samsungSkyrocket_8(){
addFrameScript(0, frame1);
}
public function animateIn(_arg1:Number=0):void{
TweenNano.to(samsung, 0.4, {alpha:1, delay:_arg1});
TweenNano.to(skyrocket, 0.4, {alpha:1, delay:(_arg1 + 0.2)});
}
public function init():void{
samsung.alpha = 0;
skyrocket.alpha = 0;
this.alpha = 1;
}
function frame1(){
init();
}
}
}//package ATT_Skyrocket_NON_fla
Section 5
//MainTimeline (ATT_Skyrocket_NON_fla.MainTimeline)
package ATT_Skyrocket_NON_fla {
import com.greensock.*;
import flash.events.*;
import com.greensock.easing.*;
import com.bbdo.clients.att.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public const BANNER_WIDTH:Number = 300;
public const BANNER_HEIGHT:Number = 250;
public var skyrocketResolve:MovieClip;
public var curtain:MovieClip;
public var legal:Legal;
public var getTo:MovieClip;
public var android:MovieClip;
public var borders:MovieClip;
public var logoATT:MovieClip;
public var bg:MovieClip;
public var clickScreen:MovieClip;
public var introducing:MovieClip;
public var skyrocket:MovieClip;
public var replay:MovieClip;
public var cta:Cta;
public var phoneResolve:MovieClip;
public var phoneFlat:MovieClip;
public var clickScreenClickTagName:String;
public var clickTagURLs:Array;
public var isSetup:Boolean;
public var playCount:Number;
public var withCopy:Array;
public var currentWithCopy:MovieClip;
public var resolvePhoneX:Number;
public var WITH_COPY_Y:Number;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function setupClickTagURL(_arg1:Array=null){
var _local2:String;
if (_arg1 == null){
_arg1 = ["clickTag", "CLICKTAG", "ClickTag", "clicktag"];
};
for each (_local2 in _arg1) {
if (root.loaderInfo.parameters[_local2] != null){
clickTagURLs[_local2] = root.loaderInfo.parameters[_local2];
} else {
clickTagURLs[_local2] = _local2;
};
};
}
public function callClickTagURL(_arg1:String=null){
navigateToURL(new URLRequest(clickTagURLs[_arg1]), "_blank");
}
public function reportRuntime(){
}
public function init(){
var _local2:MovieClip;
trace("init");
setupClickTagURL(["clickTag1"]);
if (!isSetup){
clickScreen.buttonMode = true;
clickScreen.addEventListener(MouseEvent.CLICK, onClick);
cta.addEventListener(MouseEvent.CLICK, onClick);
replay.addEventListener(MouseEvent.CLICK, replayBanner);
replay.addEventListener(MouseEvent.MOUSE_OVER, replay.spin);
replay.mouseChildren = false;
replay.buttonMode = true;
resolvePhoneX = phoneResolve.x;
withCopy = [makeCopy("action"), makeCopy("deals"), makeCopy("flirting")];
playCount = 0;
phoneFlat.init();
isSetup = true;
};
legal.alpha = 0;
legal.mouseEnabled = false;
cta.alpha = 0;
phoneResolve.x = -(phoneResolve.width);
var _local1:Number = 0;
while (_local1 < withCopy.length) {
_local2 = withCopy[_local1];
_local2.x = (-(_local2.width) - 10);
_local2.alpha = 1;
_local1++;
};
skyrocketResolve.init();
skyrocket.init();
getTo.init();
phoneFlat.x = -(phoneFlat.width);
phoneFlat.alpha = 1;
phoneFlat.changeImg(0, false);
cta.alpha = 0;
logoATT.hideCopy();
introducing.alpha = 0;
android.alpha = 0;
replay.alpha = 0;
replay.mouseEnabled = false;
TweenNano.to(curtain, 0.5, {alpha:0, onComplete:seq01});
}
public function makeCopy(_arg1:String):WithCopy{
var _local2:WithCopy = new WithCopy();
_local2.setText(_arg1);
_local2.y = WITH_COPY_Y;
addChildAt(_local2, getChildIndex(phoneFlat));
_local2.mouseChildren = false;
return (_local2);
}
public function seq01():void{
trace("seq01");
TweenNano.to(introducing, 0.4, {alpha:1});
skyrocket.animateIn();
TweenNano.to(phoneFlat, 0.4, {x:((BANNER_WIDTH - phoneFlat.phoneWidth) / 2)});
currentWithCopy = withCopy[0];
TweenNano.to(currentWithCopy, 0.5, {x:((BANNER_WIDTH - currentWithCopy.width) / 2), delay:1});
TweenNano.delayedCall(3.8, seq02);
}
public function bouncePhone():void{
TweenNano.to(phoneFlat, 1, {x:((BANNER_WIDTH - phoneFlat.width) / 2), ease:Elastic.easeOut});
}
public function seq02():void{
trace("seq02");
TweenNano.to(introducing, 0.4, {alpha:0});
swapContent(1);
TweenNano.delayedCall(2.5, seq03);
}
public function seq03():void{
trace("seq03");
swapContent(2);
TweenNano.delayedCall(2.5, resolve);
}
public function swapContent(_arg1:Number, _arg2:Boolean=true):void{
if (currentWithCopy){
TweenNano.to(currentWithCopy, 0.3, {x:BANNER_WIDTH, alpha:0});
};
var _local3:MovieClip = MovieClip(withCopy[_arg1]);
if (_local3 != currentWithCopy){
if (_arg2){
TweenNano.to(_local3, 0.5, {x:((BANNER_WIDTH - _local3.width) / 2)});
};
};
currentWithCopy = _local3;
phoneFlat.changeImg(_arg1, _arg2);
}
public function resolve():void{
trace("resolve");
TweenNano.to(skyrocket, 0.3, {alpha:0});
TweenNano.to(phoneFlat, 0.3, {x:BANNER_WIDTH});
TweenNano.to(currentWithCopy, 0.3, {alpha:0});
var _local1:Number = 0.3;
TweenNano.to(phoneResolve, 0.3, {x:resolvePhoneX, delay:_local1});
skyrocketResolve.animateIn();
getTo.animateIn(0.4);
TweenNano.to(cta, 0.5, {alpha:1, delay:(_local1 + 0.6)});
TweenNano.to(android, 0.5, {alpha:1, delay:(_local1 + 0.6)});
logoATT.showCopy((_local1 + 0.7));
TweenNano.to(legal, 0.5, {alpha:1, delay:(_local1 + 0.7)});
legal.mouseEnabled = true;
if (playCount < 3){
TweenNano.to(replay, 0.5, {alpha:1, delay:0.9, onComplete:activateReplay});
};
}
public function activateReplay():void{
replay.mouseEnabled = true;
}
public function replayBanner(_arg1:MouseEvent):void{
swapContent(0, false);
TweenNano.to(cta, 0.3, {alpha:0});
TweenNano.to(curtain, 0.5, {alpha:1, onComplete:init});
}
public function onClick(_arg1:MouseEvent=null):void{
callClickTagURL("clickTag1");
}
function frame1(){
clickTagURLs = [];
WITH_COPY_Y = 190;
init();
}
}
}//package ATT_Skyrocket_NON_fla
Section 6
//phone_skyrocket_14 (ATT_Skyrocket_NON_fla.phone_skyrocket_14)
package ATT_Skyrocket_NON_fla {
import flash.display.*;
public dynamic class phone_skyrocket_14 extends MovieClip {
public var reflectionMask:MovieClip;
public var reflection:MovieClip;
public var phone:MovieClip;
public var bg:MovieClip;
public function phone_skyrocket_14(){
addFrameScript(0, frame1);
}
function frame1(){
reflection.cacheAsBitmap = true;
reflectionMask.cacheAsBitmap = true;
reflection.mask = reflectionMask;
}
}
}//package ATT_Skyrocket_NON_fla
Section 7
//phone_skyrocket_birdseye_2 (ATT_Skyrocket_NON_fla.phone_skyrocket_birdseye_2)
package ATT_Skyrocket_NON_fla {
import com.greensock.*;
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.xml.*;
public dynamic class phone_skyrocket_birdseye_2 extends MovieClip {
public var img2:MovieClip;
public var theMask:MovieClip;
public var img3:MovieClip;
public var phone:MovieClip;
public var img1:MovieClip;
public var currentImage:MovieClip;
public var images:Array;
public var leftMargin:Number;
public var rightMargin:Number;
public var phoneWidth:Number;
public var imgWidth:Number;
public function phone_skyrocket_birdseye_2(){
addFrameScript(0, frame1);
}
public function init():void{
phoneWidth = phone.width;
imgWidth = img1.width;
images = [img1, img2, img3];
leftMargin = img1.x;
rightMargin = (img1.x + img1.width);
}
public function changeImg(_arg1:Number=0, _arg2:Boolean=true):void{
var _local4:Number;
var _local5:MovieClip;
var _local3:MovieClip = images[_arg1];
if (((currentImage) && (_arg2))){
if (currentImage != _local3){
TweenNano.to(currentImage, 0.5, {x:rightMargin});
};
} else {
_local4 = 0;
while (_local4 < images.length) {
_local5 = MovieClip(images[_local4]);
if (_local5 != _local3){
_local5.x = (leftMargin - imgWidth);
} else {
_local5.x = leftMargin;
};
_local4++;
};
};
TweenNano.to(_local3, 0.5, {x:leftMargin});
currentImage = _local3;
}
function frame1(){
leftMargin = img1.x;
rightMargin = (img1.x + img1.width);
}
}
}//package ATT_Skyrocket_NON_fla
Section 8
//replay_41 (ATT_Skyrocket_NON_fla.replay_41)
package ATT_Skyrocket_NON_fla {
import com.greensock.*;
import flash.events.*;
import flash.display.*;
public dynamic class replay_41 extends MovieClip {
public var inner:MovieClip;
public function replay_41(){
addFrameScript(0, frame1);
}
public function spin(_arg1:MouseEvent=null):void{
TweenNano.to(inner, 1, {rotation:"-360"});
}
function frame1(){
}
}
}//package ATT_Skyrocket_NON_fla
Section 9
//Cta (com.bbdo.clients.att.Cta)
package com.bbdo.clients.att {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Cta extends Sprite {
public var btn_hit:MovieClip;
public var arrow_mc:MovieClip;
public var colorBack:MovieClip;
public var offColor:int;// = 0
public var currentColor:int;// = 1
public var colorBackArray:Array;
public var duration:int;// = 9
private var tweeningIn:Boolean;// = false
private var count;// = 0
private var offColorMC:Sprite;
private var currentColorMC:Sprite;
private var tw:Class;
private var dX;// = 2
public function Cta(){
var mc:*;
super();
mouseChildren = false;
buttonMode = true;
arrow_mc.origX = arrow_mc.x;
arrow_mc.finalX = (arrow_mc.x + dX);
colorBackArray = [];
var i:* = (colorBack.numChildren - 2);
while (i >= 0) {
mc = colorBack.getChildAt(i);
colorBackArray.push(mc);
mc.alpha = 0;
i = (i - 1);
};
offColorMC = Sprite(colorBack.getChildAt((colorBack.numChildren - 1)));
try {
tw = (getDefinitionByName("com.greensock.TweenNano") as Class);
} catch(e) {
};
try {
tw = (getDefinitionByName("com.greensock.TweenLite") as Class);
} catch(e) {
};
try {
tw = (getDefinitionByName("com.greensock.TweenMax") as Class);
} catch(e) {
};
if (tw == null){
throw (new Error("// TO USE LEGAL YOU MUST REFERENCE A GREENSOCK TWEEN CLASS ON STAGE AT LEAST ONCE. AND NOT JUST AN IMPORT STATEMENT EITHER. JUST WRITE com.greensock.TweenNano; IN YOUR AS SOMEWHERE AND ALL WILL BE WELL //"));
};
arm();
reset();
}
public function reset(){
var _local1:*;
for (_local1 in colorBackArray) {
colorBackArray[_local1].alpha = 0;
};
arrow_mc.origX = arrow_mc.x;
offColorMC.alpha = 1;
}
public function arm(){
addEventListener(MouseEvent.ROLL_OVER, ctaRollOver);
addEventListener(MouseEvent.ROLL_OUT, ctaRollOut);
}
public function disarm(){
removeEventListener(MouseEvent.ROLL_OVER, ctaRollOver);
removeEventListener(MouseEvent.ROLL_OUT, ctaRollOut);
}
public function ctaRollOver(_arg1:Event=null){
var _local2:*;
var _local3:*;
currentColor++;
currentColor = ((currentColor >= colorBackArray.length)) ? 0 : currentColor;
currentColorMC = colorBackArray[currentColor];
for (_local2 in colorBackArray) {
_local3 = colorBackArray[_local2];
if (_local3 != currentColorMC){
_local3.alpha = 0;
} else {
_local3.alpha = 1;
};
};
var _local4 = tw;
_local4["to"](offColorMC, 0.5, {alpha:0, overwrite:true});
_local4 = tw;
_local4["to"](arrow_mc, 0.5, {x:arrow_mc.finalX, overwrite:true});
}
public function ctaRollOut(_arg1:Event=null){
var _local2 = tw;
_local2["to"](offColorMC, 0.5, {alpha:1, overwrite:true});
_local2 = tw;
_local2["to"](arrow_mc, 0.5, {x:arrow_mc.origX, overwrite:true});
}
}
}//package com.bbdo.clients.att
Section 10
//Legal (com.bbdo.clients.att.Legal)
package com.bbdo.clients.att {
import com.greensock.*;
import flash.events.*;
import com.greensock.easing.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
public class Legal extends MovieClip {
private var tw:Class;
public var bubble_mc:MovieClip;
public var content_mc:MovieClip;
public var closeButton_mc:MovieClip;
public var legalButton_mc:MovieClip;
public var backScreen_mc:MovieClip;
private var boxOpen;
private var pointerOpen;
private var arrowOpen;
private var arrowClosed;
private var legalOpen:Boolean;
public var effectDuration:Number;// = 0.4
public var backScreenOpacity:Number;
private var initCopyPosition:Matrix;
public function Legal(){
boxOpen = {};
pointerOpen = {};
arrowOpen = {};
arrowClosed = {};
super();
try {
tw = (getDefinitionByName("com.greensock.TweenNano") as Class);
} catch(e) {
};
try {
tw = (getDefinitionByName("com.greensock.TweenLite") as Class);
} catch(e) {
};
try {
tw = (getDefinitionByName("com.greensock.TweenMax") as Class);
} catch(e) {
};
if (tw == null){
throw (new Error("// TO USE LEGAL YOU MUST REFERENCE A GREENSOCK TWEEN CLASS ON STAGE AT LEAST ONCE. AND NOT JUST AN IMPORT STATEMENT EITHER. JUST WRITE com.greensock.TweenNano; IN YOUR AS SOMEWHERE AND ALL WILL BE WELL //"));
};
legalButton_mc.addEventListener(MouseEvent.CLICK, toggleLegal);
closeButton_mc.addEventListener(MouseEvent.CLICK, closeLegal);
pointerOpen = clone(bubble_mc.pointer);
boxOpen = clone(bubble_mc.legalBox);
arrowOpen = clone(legalButton_mc.arrowRef);
arrowClosed = clone(legalButton_mc.arrow);
reset();
closeLegal();
}
public function reset():void{
legalButton_mc.mouseChildren = false;
legalButton_mc.buttonMode = true;
closeButton_mc.mouseChildren = false;
closeButton_mc.buttonMode = true;
backScreen_mc.visible = false;
backScreenOpacity = backScreen_mc.alpha;
backScreen_mc.alpha = 0;
legalButton_mc.arrowRef.visible = (bubble_mc.boxRef.visible = (bubble_mc.pointerRef.visible = false));
bubble_mc.visible = (content_mc.visible = (closeButton_mc.visible = false));
}
public function setTween(_arg1:Class):void{
this.tw = _arg1;
}
function toggleLegal(_arg1){
if (legalOpen){
closeLegal();
} else {
openLegal();
};
}
function openLegal(){
dispatchEvent(new Event("User opened legal"));
backScreen_mc.alpha = 0;
backScreen_mc.visible = true;
var _local2 = tw;
_local2["to"](legalButton_mc.arrow, (0.5 * effectDuration), arrowOpen);
_local2 = tw;
_local2["to"](backScreen_mc, (0.5 * effectDuration), {alpha:backScreenOpacity});
bubble_mc.visible = true;
bubble_mc.legalBox.alpha = 1;
var o0:* = clone(boxOpen);
o0.ease = Sine.easeOut;
o0.delay = (0.15 * effectDuration);
o0.overwrite = false;
o0.onComplete = finishOpening;
_local2 = tw;
_local2["to"](bubble_mc.legalBox, (0.85 * effectDuration), o0);
var o1:* = clone(pointerOpen);
o1.ease = Sine.easeIn;
o1.onComplete = function (){
bubble_mc.legalBox.visible = true;
};
_local2 = tw;
_local2["to"](bubble_mc.pointer, (0.15 * effectDuration), o1);
bubble_mc.visible = true;
closeButton_mc.visible = true;
content_mc.alpha = (closeButton_mc.alpha = 0);
content_mc.visible = (closeButton_mc.visible = true);
}
function finishOpening(){
legalOpen = true;
var _local1 = tw;
_local1["to"](closeButton_mc, 0.2, {alpha:1});
_local1 = tw;
_local1["to"](content_mc, 0.2, {alpha:1});
}
function closeLegal(_arg1:Event=null){
var e = _arg1;
legalOpen = false;
var _local3 = tw;
_local3["to"](closeButton_mc, 0.15, {alpha:0});
_local3 = tw;
_local3["to"](content_mc, 0.15, {alpha:0});
_local3 = tw;
_local3["to"](backScreen_mc, 0.15, {alpha:0});
var o0:* = clone(bubble_mc.boxRef);
o0.onComplete = finishClosing;
o0.ease = Sine.easeIn;
o0.delay = (0.1 * effectDuration);
_local3 = tw;
_local3["to"](bubble_mc.legalBox, (0.75 * effectDuration), o0);
var o1:* = clone(bubble_mc.pointerRef);
o1.delay = (0.85 * effectDuration);
o1.onComplete = function (){
bubble_mc.visible = false;
};
_local3 = tw;
_local3["to"](bubble_mc.pointer, (0.15 * effectDuration), o1);
legalButton_mc.mouseEnabled = true;
_local3 = tw;
_local3["to"](legalButton_mc.arrow, 0.5, arrowClosed);
dispatchEvent(new Event("User closed legal"));
}
function finishClosing(){
bubble_mc.legalBox.visible = false;
bubble_mc.legalBox.mouseEnabled = false;
backScreen_mc.visible = false;
backScreen_mc.mouseEnabled = false;
content_mc.visible = false;
content_mc.mouseEnabled = false;
}
function clone(_arg1:Object):Object{
var _local2:* = {};
_local2.rotation = _arg1.rotation;
_local2.scaleX = _arg1.scaleX;
_local2.scaleY = _arg1.scaleY;
_local2.x = _arg1.x;
_local2.y = _arg1.y;
return (_local2);
}
}
}//package com.bbdo.clients.att
Section 11
//Elastic (com.greensock.easing.Elastic)
package com.greensock.easing {
public class Elastic {
private static const _2PI:Number = (Math.PI * 2);
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((((!(_arg5)) || ((((_arg3 > 0)) && ((_arg5 < _arg3)))))) || ((((_arg3 < 0)) && ((_arg5 < -(_arg3))))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
--_arg1;
return ((-(((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / _arg4);
if (_arg1 == 1){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * 0.3);
};
if (((((!(_arg5)) || ((((_arg3 > 0)) && ((_arg5 < _arg3)))))) || ((((_arg3 < 0)) && ((_arg5 < -(_arg3))))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
return (((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) + _arg3) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0):Number{
var _local7:Number;
if (_arg1 == 0){
return (_arg2);
};
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 == 2){
return ((_arg2 + _arg3));
};
if (!_arg6){
_arg6 = (_arg4 * (0.3 * 1.5));
};
if (((((!(_arg5)) || ((((_arg3 > 0)) && ((_arg5 < _arg3)))))) || ((((_arg3 < 0)) && ((_arg5 < -(_arg3))))))){
_arg5 = _arg3;
_local7 = (_arg6 / 4);
} else {
_local7 = ((_arg6 / _2PI) * Math.asin((_arg3 / _arg5)));
};
if (_arg1 < 1){
--_arg1;
return (((-0.5 * ((_arg5 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6)))) + _arg2));
};
--_arg1;
return ((((((_arg5 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * _2PI) / _arg6))) * 0.5) + _arg3) + _arg2));
}
}
}//package com.greensock.easing
Section 12
//Sine (com.greensock.easing.Sine)
package com.greensock.easing {
public class Sine {
private static const _HALF_PI:Number = (Math.PI * 0.5);
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * _HALF_PI))) + _arg3) + _arg2));
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((_arg3 * Math.sin(((_arg1 / _arg4) * _HALF_PI))) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((-(_arg3) * 0.5) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
}
}
}//package com.greensock.easing
Section 13
//TweenNano (com.greensock.TweenNano)
package com.greensock {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class TweenNano {
public var duration:Number;
public var vars:Object;
public var startTime:Number;
public var target:Object;
public var active:Boolean;
public var gc:Boolean;
public var useFrames:Boolean;
public var ratio:Number;// = 0
protected var _ease:Function;
protected var _initted:Boolean;
protected var _propTweens:Array;
protected static var _currentTime:Number;
protected static var _currentFrame:uint;
protected static var _masterList:Dictionary = new Dictionary(false);
protected static var _shape:Shape = new Shape();
protected static var _tnInitted:Boolean;
protected static var _reservedProps:Object = {ease:1, delay:1, useFrames:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, immediateRender:1, onUpdate:1, onUpdateParams:1};
public function TweenNano(_arg1:Object, _arg2:Number, _arg3:Object){
if (!_tnInitted){
_currentTime = (getTimer() * 0.001);
_currentFrame = 0;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
_tnInitted = true;
};
this.vars = _arg3;
this.duration = _arg2;
this.active = Boolean((((((_arg2 == 0)) && ((this.vars.delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.target = _arg1;
if (typeof(this.vars.ease) != "function"){
_ease = TweenNano.easeOut;
} else {
_ease = this.vars.ease;
};
_propTweens = [];
this.useFrames = Boolean((_arg3.useFrames == true));
var _local4:Number = ((this.vars.delay) || (0));
this.startTime = (this.useFrames) ? (_currentFrame + _local4) : (_currentTime + _local4);
var _local5:Array = _masterList[_arg1];
if ((((_local5 == null)) || (int(this.vars.overwrite)))){
_masterList[_arg1] = [this];
} else {
_local5[_local5.length] = this;
};
if ((((this.vars.immediateRender == true)) || (this.active))){
renderTime(0);
};
}
public function init():void{
var _local1:String;
var _local2:Array;
var _local3:int;
for (_local1 in this.vars) {
if (!(_local1 in _reservedProps)){
_propTweens[_propTweens.length] = [_local1, this.target[_local1], ((typeof(this.vars[_local1]))=="number") ? (this.vars[_local1] - this.target[_local1]) : Number(this.vars[_local1])];
};
};
if (this.vars.runBackwards){
_local3 = _propTweens.length;
while (_local3--) {
_local2 = _propTweens[_local3];
_local2[1] = (_local2[1] + _local2[2]);
_local2[2] = -(_local2[2]);
};
};
_initted = true;
}
public function renderTime(_arg1:Number):void{
var _local2:Array;
if (!_initted){
init();
};
var _local3:int = _propTweens.length;
if (_arg1 >= this.duration){
_arg1 = this.duration;
this.ratio = 1;
} else {
if (_arg1 <= 0){
this.ratio = 0;
} else {
this.ratio = _ease(_arg1, 0, 1, this.duration);
};
};
while (_local3--) {
_local2 = _propTweens[_local3];
this.target[_local2[0]] = (_local2[1] + (this.ratio * _local2[2]));
};
if (this.vars.onUpdate){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_arg1 == this.duration){
complete(true);
};
}
public function complete(_arg1:Boolean=false):void{
if (!_arg1){
renderTime(this.duration);
return;
};
kill();
if (this.vars.onComplete){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
};
}
public function kill():void{
this.gc = true;
this.active = false;
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenNano{
return (new TweenNano(_arg1, _arg2, _arg3));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenNano{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenNano(_arg1, _arg2, _arg3));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenNano{
return (new TweenNano(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, useFrames:_arg4, overwrite:0}));
}
public static function updateAll(_arg1:Event=null):void{
var _local3:Array;
var _local4:Object;
var _local5:int;
var _local6:Number;
var _local7:TweenNano;
_currentFrame++;
_currentTime = (getTimer() * 0.001);
var _local2:Dictionary = _masterList;
for (_local4 in _local2) {
_local3 = _local2[_local4];
_local5 = _local3.length;
while (_local5--) {
_local7 = _local3[_local5];
_local6 = (_local7.useFrames) ? _currentFrame : _currentTime;
if (((_local7.active) || (((!(_local7.gc)) && ((_local6 >= _local7.startTime)))))){
_local7.renderTime((_local6 - _local7.startTime));
} else {
if (_local7.gc){
_local3.splice(_local5, 1);
};
};
};
if (_local3.length == 0){
delete _local2[_local4];
};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
if ((_arg1 in _masterList)){
if (_arg2){
_local3 = _masterList[_arg1];
_local4 = _local3.length;
while (_local4--) {
if (!TweenNano(_local3[_local4]).gc){
TweenNano(_local3[_local4]).complete(false);
};
};
};
delete _masterList[_arg1];
};
}
private static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((-1 * _arg1) * (_arg1 - 2)));
}
}
}//package com.greensock
Section 14
//WithCopy (WithCopy)
package {
import flash.display.*;
import flash.text.*;
public dynamic class WithCopy extends MovieClip {
public var txt:TextField;
public var getTo:TextField;
public var faster:TextField;
public function WithCopy(){
addFrameScript(0, frame1);
}
public function setText(_arg1:String):void{
txt.text = _arg1;
txt.autoSize = TextFieldAutoSize.LEFT;
faster.autoSize = TextFieldAutoSize.LEFT;
getTo.autoSize = TextFieldAutoSize.LEFT;
faster.x = ((txt.x + txt.width) + 2);
getTo.x = (((txt.width + faster.width) - getTo.width) / 2);
}
function frame1(){
}
}
}//package