STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/43689596?noj=FRM43689596-22DC" width="1" height="1"></div>

Popcorn Flicks.swf

This is the info page for
Flash #46471

(Click the ID number above for more basic data on this flash file.)


Text
<p align="center"><font face="Poplar Std" size="51" color="#ed008e" letterSpacing="0.000000" kerning="1">0%</font></p>

LOADING

BONUS

<p align="center"><font face="Poplar Std" size="37" color="#ffffff" letterSpacing="0.000000" kerning="1">POPCORN SPRAY</font></p>

PLAY GAME

PLAY GAME

HOW TO PLAY

HOW TO PLAY

HIGH SCORES

HIGH SCORES

VISIT BOX WISH

VISIT BOX WISH

SEND TO A FRIEND

SEND TO A FRIEND

SEND TO FRIEND

BACK TO MAIN MENU

BACK TO MAIN MENU

SEND

SEND

YOUR EMAIL

FRIEND EMAILS

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

SENT!

TOP 10 DAILY SCORES

1.

<p align="left"></p>

<p align="left"></p>

2.

<p align="left"></p>

<p align="left"></p>

3.

<p align="left"></p>

<p align="left"></p>

4.

<p align="left"></p>

<p align="left"></p>

5.

<p align="left"></p>

<p align="left"></p>

6.

<p align="left"></p>

<p align="left"></p>

7.

<p align="left"></p>

<p align="left"></p>

8.

<p align="left"></p>

<p align="left"></p>

9.

<p align="left"></p>

<p align="left"></p>

10.

<p align="left"></p>

<p align="left"></p>

HOW TO PLAY

CLEAR THE  TARGETS IN THE TIME GIVEN! USE YOUR
MOUSE TO AIM AT MEMBERS OF THE AUDIENCE IN
THE CINEMA!

0%

2%

4%

6%

8%

10%

12%

14%

16%

18%

20%

22%

24%

26%

28%

30%

32%

34%

36%

38%

40%

42%

44%

46%

48%

CLICK AND HOLD THE MOUSE TO BUILD UP POWER
AND THEN RELEASE TO FLICK THE POPCORN!

COLLECT POWER-UPS
HOMING POPCORN
CLICK ANYWHERE AND A POPCORN WILL BE FLICKED TO
THAT EXACT SPOT
POPCORN SPRAY
A HANDFUL OF POPCORN IS THROWN
RAPID FLICK
POPCORN IS FLICKED RAPIDLY AT YOUR TARGET SPOT

<p align="center"><font face="Poplar Std" size="35" color="#ec008c" letterSpacing="0.000000" kerning="1">+250</font></p>

<p align="center"></p>

<p align="center"></p>

<p align="center"></p>

GAME OVER!

HAVE YOU MADE IT INTO THE DAILY TOP 10?

SUBMIT SCORE

SUBMIT SCORE

<p align="left"><font face="Franklin Gothic Demi Cond" size="12" color="#401e4c" letterSpacing="0.000000" kerning="1">ENTER NICKNAME</font></p>

<p align="center"><font face="Franklin Gothic Demi Cond" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">MAIN MENU</font></p>

<p align="center"><font face="Franklin Gothic Demi Cond" size="12" color="#ffffff" letterSpacing="0.000000" kerning="1">MAIN MENU</font></p>

<p align="left"><font face="Poplar Std" size="23" color="#401e4c" letterSpacing="0.000000" kerning="1">LEVEL 1 - SELECT DIFFICULTY</font></p>

EASY

250 PER HIT

MEDIUM

500 PER HIT

HARD

750 PER HIT

<p align="center"><font face="Franklin Gothic Demi Cond" size="11" color="#401e4c" letterSpacing="0.000000" kerning="1">SEX AND THE CITY SILK DRESS</font></p>

<p align="center"><font face="Franklin Gothic Demi Cond" size="11" color="#401e4c" letterSpacing="0.000000" kerning="1">SEX AND THE CITY SILK DRESS</font></p>

<p align="center"><font face="Franklin Gothic Demi Cond" size="11" color="#401e4c" letterSpacing="0.000000" kerning="1">SEX AND THE CITY SILK DRESS</font></p>

BE INSPIRED BY GREAT STUFF FROM THE MOVIES

WALL-E- RUBIX CUBE

SEX AND THE CITY - GLADIATOR SANDALS

CASINO ROYALE - PERSOL SUNGLASSES JAMES BOND MODEL

THE DARK KNIGHT - HOT WHEELS BATMOBILE TOY

SEX AND THE CITY - LOVE LETTERS OF GREAT MEN BOOK

STAR WARS - STORMTROOPER HELMET

WALL-E- NIGHT VISION GOGGLES

JAMES BOND - OMEGA SEAMASTER

HARRY POTTER - THE ORDER OF THE PHOENIX PENDANT

FORGETTING SARAH MARSHALL - YAMAHA MOTIF XS8 KEYBOARD

STAR WARS - LEGO MILLENNIUM FALCON

CASINO ROYAL E- ASTON MARTIN THRILL DRIVING EXPERIENCE

ROCK N ROLLA  - WHITE WATCH

STAR WARS - STAR WARS LIMITED EDITION CANVAS PRINT

IRON MAN - TONY STARKS CELESTRON TELESCOPE

JUNO - HAMBURGER PHONE

PULP FICTION - PULP FICTION BAD MOTHER F***ER WALLET

SEX AND THE CITY - EIFFEL TOWER SWAROVSKI CRYSTAL HANDBAG

GET SMART - VICTORINOX SWISS ARMY KNIFE

THE DARK KNIGHT - BATMAN COSTUME

BACK TO THE FUTURE 2 - HOVER BOARD

WIZARD OF OZ - BLUE GINGHAM DRESS

I -ROBOT - BLACK CONVERSE ALL STARS

THE DARK KNIGHT - BANG & OLUFSEN BEOLAB 5 SPEAKERS

GAME OF DEATH - ONITSUKA TIGER TRAINERS

THE DARK KNIGHT - THE JOKER FANCY DRESS COSTUME

IRON MAN - AUDI R8

BORAT - BORAT'S GREEN MANKINI

TOP GUN - RAY-BAN RB3206 AVIATORS

THE DARK KNIGHT - BELSTAFF BIKER JACKET

<p align="left"><font face="Poplar Std" size="25" color="#ec008c" letterSpacing="0.000000" kerning="1">10 / 10</font></p>

LEVEL

SCORE

<p align="left"><font face="Poplar Std" size="25" color="#ec008c" letterSpacing="0.000000" kerning="1">999999</font></p>

TIME LEFT

<p align="left"><font face="Poplar Std" size="25" color="#ec008c" letterSpacing="0.000000" kerning="1">60.46</font></p>

REMAINING  TARGETS

<p align="center"><font face="Poplar Std" size="25" color="#ec008c" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="center"></p>

HOLD MOUSE DOWN TO INCREASE POWER

www.kokodigital.co.uk

ActionScript [AS3]

Section 1
//highScoresMC_20 (boxwish_fla.highScoresMC_20) package boxwish_fla { import flash.display.*; import flash.text.*; public dynamic class highScoresMC_20 extends MovieClip { public var name1:TextField; public var name3:TextField; public var name4:TextField; public var name6:TextField; public var name8:TextField; public var name2:TextField; public var name5:TextField; public var name7:TextField; public var name9:TextField; public var backToMainMenu_btn:SimpleButton; public var highScores_btn:MovieClip; public var points2:TextField; public var points3:TextField; public var points4:TextField; public var points6:TextField; public var points1:TextField; public var points5:TextField; public var points7:TextField; public var points9:TextField; public var points8:TextField; public var name10:TextField; public var points10:TextField; } }//package boxwish_fla
Section 2
//howToPlayMenu_22 (boxwish_fla.howToPlayMenu_22) package boxwish_fla { import flash.display.*; public dynamic class howToPlayMenu_22 extends MovieClip { public var backToMainMenu_btn:SimpleButton; public var highScores_btn:MovieClip; } }//package boxwish_fla
Section 3
//kokoIntro_52 (boxwish_fla.kokoIntro_52) package boxwish_fla { import flash.events.*; import flash.net.*; import flash.display.*; public dynamic class kokoIntro_52 extends MovieClip { public var koko_btn:SimpleButton; public function kokoIntro_52(){ addFrameScript(60, frame61, 116, frame117); } public function kokoDigital(_arg1:MouseEvent){ navigateToURL(new URLRequest("http://www.kokodigital.co.uk"), "_blank"); } function frame117(){ MovieClip(parent).play(); stop(); } function frame61(){ koko_btn.addEventListener(MouseEvent.MOUSE_UP, kokoDigital); } } }//package boxwish_fla
Section 4
//KokoLeaf_56 (boxwish_fla.KokoLeaf_56) package boxwish_fla { import flash.display.*; public dynamic class KokoLeaf_56 extends MovieClip { public function KokoLeaf_56(){ addFrameScript(77, frame78); } function frame78(){ stop(); } } }//package boxwish_fla
Section 5
//KokoLeafUp_53 (boxwish_fla.KokoLeafUp_53) package boxwish_fla { import flash.display.*; public dynamic class KokoLeafUp_53 extends MovieClip { public function KokoLeafUp_53(){ addFrameScript(84, frame85); } function frame85(){ stop(); } } }//package boxwish_fla
Section 6
//lamChopMainMenu_8 (boxwish_fla.lamChopMainMenu_8) package boxwish_fla { import flash.display.*; public dynamic class lamChopMainMenu_8 extends MovieClip { public var randomNumber; public function lamChopMainMenu_8(){ addFrameScript(33, frame34, 112, frame113, 149, frame150, 210, frame211); } function frame211(){ gotoAndPlay(1); } function frame34(){ if (Math.random() > 0.9){ randomNumber = Math.ceil((Math.random() * 4)); switch (randomNumber){ case 1: gotoAndPlay("laugh"); break; case 2: gotoAndPlay("cry"); break; case 3: gotoAndPlay("scare"); break; case 4: gotoAndPlay("eat"); break; }; } else { gotoAndPlay("chew"); }; } function frame113(){ gotoAndPlay(1); } function frame150(){ gotoAndPlay(1); } } }//package boxwish_fla
Section 7
//movieSpots_43 (boxwish_fla.movieSpots_43) package boxwish_fla { import flash.display.*; public dynamic class movieSpots_43 extends MovieClip { public function movieSpots_43(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package boxwish_fla
Section 8
//sendToFriendMC_16 (boxwish_fla.sendToFriendMC_16) package boxwish_fla { import flash.display.*; import flash.text.*; public dynamic class sendToFriendMC_16 extends MovieClip { public var backToMainMenu_btn:SimpleButton; public var fe3:TextField; public var fe5:TextField; public var fe1:TextField; public var fe2:TextField; public var fe4:TextField; public var highScores_btn:MovieClip; public var sendEmail_btn:SimpleButton; public var ye1:TextField; public function sendToFriendMC_16(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package boxwish_fla
Section 9
//spriteHolder_1 (boxwish_fla.spriteHolder_1) package boxwish_fla { import flash.display.*; public dynamic class spriteHolder_1 extends MovieClip { public function spriteHolder_1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package boxwish_fla
Section 10
//time_45 (boxwish_fla.time_45) package boxwish_fla { import flash.display.*; import flash.text.*; public dynamic class time_45 extends MovieClip { public var time:TextField; } }//package boxwish_fla
Section 11
//MD5 (com.adobe.crypto.MD5) package com.adobe.crypto { import com.adobe.utils.*; public class MD5 { private static function ff(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(f, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } private static function createBlocks(_arg1:String):Array{ var _local2:Array; var _local3:int; var _local4:int; var _local5:int; _local2 = new Array(); _local3 = (_arg1.length * 8); _local4 = 0xFF; _local5 = 0; while (_local5 < _local3) { _local2[(_local5 >> 5)] = (_local2[(_local5 >> 5)] | ((_arg1.charCodeAt((_local5 / 8)) & _local4) << (_local5 % 32))); _local5 = (_local5 + 8); }; _local2[(_local3 >> 5)] = (_local2[(_local3 >> 5)] | (128 << (_local3 % 32))); _local2[((((_local3 + 64) >>> 9) << 4) + 14)] = _local3; return (_local2); } private static function ii(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(i, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } private static function f(_arg1:int, _arg2:int, _arg3:int):int{ return (((_arg1 & _arg2) | (~(_arg1) & _arg3))); } private static function g(_arg1:int, _arg2:int, _arg3:int):int{ return (((_arg1 & _arg3) | (_arg2 & ~(_arg3)))); } private static function h(_arg1:int, _arg2:int, _arg3:int):int{ return (((_arg1 ^ _arg2) ^ _arg3)); } private static function i(_arg1:int, _arg2:int, _arg3:int):int{ return ((_arg2 ^ (_arg1 | ~(_arg3)))); } private static function transform(_arg1:Function, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int, _arg8:int):int{ var _local9:int; _local9 = (((_arg2 + int(_arg1(_arg3, _arg4, _arg5))) + _arg6) + _arg8); return ((IntUtil.rol(_local9, _arg7) + _arg3)); } private static function hh(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(h, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } public static function hash(_arg1:String):String{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:Array; var _local11:int; var _local12:int; _local2 = 1732584193; _local3 = -271733879; _local4 = -1732584194; _local5 = 271733878; _local10 = createBlocks(_arg1); _local11 = _local10.length; _local12 = 0; while (_local12 < _local11) { _local6 = _local2; _local7 = _local3; _local8 = _local4; _local9 = _local5; _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 7, -680876936); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 1)], 12, -389564586); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 17, 606105819); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 3)], 22, -1044525330); _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 7, -176418897); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 5)], 12, 1200080426); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 17, -1473231341); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 7)], 22, -45705983); _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 7, 1770035416); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 9)], 12, -1958414417); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 17, -42063); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 11)], 22, -1990404162); _local2 = ff(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 7, 1804603682); _local5 = ff(_local5, _local2, _local3, _local4, _local10[(_local12 + 13)], 12, -40341101); _local4 = ff(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 17, -1502002290); _local3 = ff(_local3, _local4, _local5, _local2, _local10[(_local12 + 15)], 22, 1236535329); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 5, -165796510); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 6)], 9, -1069501632); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 14, 643717713); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 0)], 20, -373897302); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 5, -701558691); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 10)], 9, 38016083); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 14, -660478335); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 4)], 20, -405537848); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 5, 568446438); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 14)], 9, -1019803690); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 14, -187363961); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 8)], 20, 1163531501); _local2 = gg(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 5, -1444681467); _local5 = gg(_local5, _local2, _local3, _local4, _local10[(_local12 + 2)], 9, -51403784); _local4 = gg(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 14, 1735328473); _local3 = gg(_local3, _local4, _local5, _local2, _local10[(_local12 + 12)], 20, -1926607734); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 5)], 4, -378558); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 8)], 11, -2022574463); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 11)], 16, 1839030562); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 14)], 23, -35309556); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 1)], 4, -1530992060); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 4)], 11, 1272893353); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 7)], 16, -155497632); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 10)], 23, -1094730640); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 13)], 4, 681279174); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 0)], 11, -358537222); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 3)], 16, -722521979); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 6)], 23, 76029189); _local2 = hh(_local2, _local3, _local4, _local5, _local10[(_local12 + 9)], 4, -640364487); _local5 = hh(_local5, _local2, _local3, _local4, _local10[(_local12 + 12)], 11, -421815835); _local4 = hh(_local4, _local5, _local2, _local3, _local10[(_local12 + 15)], 16, 530742520); _local3 = hh(_local3, _local4, _local5, _local2, _local10[(_local12 + 2)], 23, -995338651); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 0)], 6, -198630844); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 7)], 10, 1126891415); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 14)], 15, -1416354905); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 5)], 21, -57434055); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 12)], 6, 1700485571); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 3)], 10, -1894986606); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 10)], 15, -1051523); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 1)], 21, -2054922799); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 8)], 6, 1873313359); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 15)], 10, -30611744); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 6)], 15, -1560198380); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 13)], 21, 1309151649); _local2 = ii(_local2, _local3, _local4, _local5, _local10[(_local12 + 4)], 6, -145523070); _local5 = ii(_local5, _local2, _local3, _local4, _local10[(_local12 + 11)], 10, -1120210379); _local4 = ii(_local4, _local5, _local2, _local3, _local10[(_local12 + 2)], 15, 718787259); _local3 = ii(_local3, _local4, _local5, _local2, _local10[(_local12 + 9)], 21, -343485551); _local2 = (_local2 + _local6); _local3 = (_local3 + _local7); _local4 = (_local4 + _local8); _local5 = (_local5 + _local9); _local12 = (_local12 + 16); }; return ((((IntUtil.toHex(_local2) + IntUtil.toHex(_local3)) + IntUtil.toHex(_local4)) + IntUtil.toHex(_local5))); } private static function gg(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int, _arg6:int, _arg7:int):int{ return (transform(g, _arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7)); } } }//package com.adobe.crypto
Section 12
//IntUtil (com.adobe.utils.IntUtil) package com.adobe.utils { public class IntUtil { private static var hexChars:String = "0123456789abcdef"; public static function toHex(_arg1:int, _arg2:Boolean=false):String{ var _local3:String; var _local4:int; var _local5:int; _local3 = ""; if (_arg2){ _local4 = 0; while (_local4 < 4) { _local3 = (_local3 + (hexChars.charAt(((_arg1 >> (((3 - _local4) * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> ((3 - _local4) * 8)) & 15)))); _local4++; }; } else { _local5 = 0; while (_local5 < 4) { _local3 = (_local3 + (hexChars.charAt(((_arg1 >> ((_local5 * 8) + 4)) & 15)) + hexChars.charAt(((_arg1 >> (_local5 * 8)) & 15)))); _local5++; }; }; return (_local3); } public static function ror(_arg1:int, _arg2:int):uint{ var _local3:int; _local3 = (32 - _arg2); return (((_arg1 << _local3) | (_arg1 >>> (32 - _local3)))); } public static function rol(_arg1:int, _arg2:int):int{ return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2)))); } } }//package com.adobe.utils
Section 13
//Cache (console.loaders.Cache) package console.loaders { public class Cache { public function returnAntiCacheURL(_arg1:String):String{ var _local2:*; var _local3:*; var _local4:*; _local2 = ("rand=" + Math.ceil((Math.random() * 1000000))); _local3 = "?"; _local4 = 0; while (_local4 < _arg1.length) { if (_arg1.charAt(_local4) == "?"){ _local3 = "&"; break; }; _local4++; }; _arg1 = (_arg1 + (_local3 + _local2)); return (_arg1); } } }//package console.loaders
Section 14
//SendReceiveData (console.loaders.SendReceiveData) package console.loaders { import flash.events.*; import flash.net.*; public class SendReceiveData extends EventDispatcher { public var _loader:URLLoader; public var _errorMessage:String; public static const DATA_LOADED:String = "Data Loaded"; public static const DATA_ERROR:String = "Data Error"; public function onError(_arg1:IOErrorEvent){ trace(("ERROR = " + _arg1.text)); trace("POSSIBLE PROBLEMS - crossdomain.xml missing"); _errorMessage = _arg1.text; dispatchEvent(new Event(SendReceiveData.DATA_ERROR)); } public function sendData(_arg1:String, _arg2:URLVariables):void{ var _local3:URLRequest; _local3 = new URLRequest(_arg1); _local3.data = _arg2; _local3.method = URLRequestMethod.POST; _loader = new URLLoader(); _loader.addEventListener(Event.COMPLETE, onComplete); _loader.addEventListener(IOErrorEvent.IO_ERROR, onError); _loader.load(_local3); } public function onComplete(_arg1:Event){ dispatchEvent(new Event(SendReceiveData.DATA_LOADED)); } } }//package console.loaders
Section 15
//URLPreload (console.loaders.URLPreload) package console.loaders { import flash.events.*; import flash.net.*; public class URLPreload extends EventDispatcher { public var _progressBytesTotal:uint; public var _progress:uint; private var _URL:String; public var _progressBytesPerc:uint; public var _urlLoader:URLLoader;// = null public var _progressBytesLoaded:uint; private var _retry:uint;// = 0 private var _antiCache:Boolean; public static const LOAD_COMPLETE:String = "Complete"; public static const LOAD_PROGRESS:String = "Load Progress"; public static const LOAD_ERROR:String = "Error"; public function URLPreload(_arg1:String, _arg2:Boolean){ _retry = 0; _urlLoader = null; super(); _URL = _arg1; _antiCache = _arg2; setupPreload(_URL, _antiCache); } private function onProgress(_arg1:ProgressEvent):void{ _progressBytesLoaded = _arg1.target.bytesLoaded; _progressBytesTotal = _arg1.target.bytesTotal; _progressBytesPerc = ((_arg1.target.bytesLoaded / _arg1.target.bytesTotal) * 100); dispatchEvent(new Event(URLPreload.LOAD_PROGRESS)); } public function setupPreload(_arg1:String, _arg2:Boolean){ var _local3:URLRequest; var _local4:*; if (_arg2){ _local4 = new Cache(); _arg1 = _local4.returnAntiCacheURL(_arg1); trace(("URL: " + _arg1)); }; _local3 = new URLRequest(_arg1); _local3.method = URLRequestMethod.POST; _urlLoader = new URLLoader(); _urlLoader.load(_local3); _urlLoader.addEventListener(Event.COMPLETE, onComplete); _urlLoader.addEventListener(ProgressEvent.PROGRESS, onProgress); _urlLoader.addEventListener(IOErrorEvent.IO_ERROR, onError); } private function onError(_arg1:IOErrorEvent):void{ if (_retry > 10){ dispatchEvent(new Event(URLPreload.LOAD_ERROR)); } else { _retry++; setupPreload(_URL, _antiCache); }; } private function onComplete(_arg1:Event):void{ dispatchEvent(new Event(URLPreload.LOAD_COMPLETE)); } } }//package console.loaders
Section 16
//Pythag (console.math.Pythag) package console.math { public class Pythag { public function findOppositeLength(_arg1, _arg2):Number{ var _local3:*; _local3 = (Math.sin(_arg1) * _arg2); return (_local3); } public function findNewXY(_arg1, _arg2, _arg3, _arg4):Array{ var _local5:*; var _local6:*; var _local7:Array; var _local8:*; var _local9:*; _local5 = findAdjascentLength(_arg3, _arg4); _local6 = findOppositeLength(_arg3, _arg4); _local7 = new Array(); _local8 = (_arg1 + _local5); _local9 = (_arg2 + _local6); _local7[0] = _local8; _local7[1] = _local9; return (_local7); } public function findHypotenuseLength(_arg1, _arg2:Number){ var _local3:*; _local3 = Math.sqrt((Math.pow(_arg1, 2) + Math.pow(_arg2, 2))); return (_local3); } public function findAngle(_arg1, _arg2, _arg3, _arg4){ var _local5:Number; var _local6:Number; var _local7:Number; _local5 = (_arg1 - _arg3); _local6 = (_arg2 - _arg4); _local7 = Math.atan2(_local6, _local5); return (_local7); } public function findAdjascentLength(_arg1, _arg2):Number{ var _local3:*; _local3 = (Math.cos(_arg1) * _arg2); return (_local3); } } }//package console.math
Section 17
//ParseTOKEN (console.parsers.ParseTOKEN) package console.parsers { import flash.events.*; import flash.net.*; import com.adobe.crypto.*; import console.loaders.*; public class ParseTOKEN extends EventDispatcher { public var _loadToken; public var _loadedVars:URLVariables; public var _token:String; private var _MD5; public static const TOKEN_GENERATED:String = "Token Generated"; public function ParseTOKEN(_arg1){ var _local2:URLVariables; _MD5 = new MD5(); super(); _local2 = new URLVariables(); _local2.action = "token_generate"; _loadToken = new SendReceiveData(); _loadToken.sendData(_arg1, _local2); _loadToken.addEventListener(SendReceiveData.DATA_LOADED, loadToken); } public function loadToken(_arg1:Event):void{ var _local2:URLLoader; var _local3:String; var _local4:*; var _local5:*; var _local6:*; var _local7:*; _local2 = URLLoader(_arg1.target._loader); _loadedVars = new URLVariables(_local2.data); _token = _loadedVars.token; _local3 = _token.substr(28, 8); _local4 = MD5.hash(_local3); _local5 = Math.ceil((Math.random() * 1000000)); _local6 = Math.ceil((Math.random() * 1000000)); _local7 = Math.ceil((Math.random() * 1000000)); _token = (((MD5.hash(_local5) + MD5.hash(_local6)) + _local4) + MD5.hash(_local7)); trace(_token); dispatchEvent(new Event(ParseTOKEN.TOKEN_GENERATED)); } } }//package console.parsers
Section 18
//ParseXML (console.parsers.ParseXML) package console.parsers { import flash.events.*; import flash.net.*; import console.loaders.*; public class ParseXML extends EventDispatcher { public var _progressBytesPerc:uint;// = 0 public var _progressBytesTotal:uint;// = 0 public var _xmlDoc:XML; public var _tag:String;// = null private var _urlLoader:URLLoader; public var _progressBytesLoaded:uint;// = 0 public var _loaded:Boolean;// = false public var _preloader:URLPreload; public static const XML_FAILED:String = "XMLFailed"; public static const XML_PROGRESS:String = "XMLProgress"; public static const XML_LOADED:String = "XMLLoaded"; public function ParseXML(){ _tag = null; _progressBytesLoaded = 0; _progressBytesTotal = 0; _progressBytesPerc = 0; _loaded = false; super(); } public function checkProgress(_arg1:Event):void{ _progressBytesLoaded = _arg1.target._progressBytesLoaded; _progressBytesTotal = _arg1.target._progressBytesTotal; _progressBytesPerc = _arg1.target._progressBytesPerc; dispatchEvent(new Event(ParseXML.XML_PROGRESS)); } public function parseURL(_arg1:String, _arg2:Boolean):void{ _preloader = new URLPreload(_arg1, _arg2); _preloader.addEventListener(URLPreload.LOAD_PROGRESS, checkProgress); _preloader.addEventListener(URLPreload.LOAD_COMPLETE, completeLoad); } public function completeLoad(_arg1:Event):void{ _xmlDoc = new XML(_arg1.target._urlLoader.data); dispatchEvent(new Event(ParseXML.XML_LOADED)); } } }//package console.parsers
Section 19
//MochiBot (console.trackers.MochiBot) package console.trackers { import flash.net.*; import flash.display.*; 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; trace("RUN MOCHIBOT TRACKING"); 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 console.trackers
Section 20
//Back (fl.transitions.easing.Back) package fl.transitions.easing { public class Back { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{ if (!_arg5){ _arg5 = 1.70158; }; _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 1)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{ if (!_arg5){ _arg5 = 1.70158; }; _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * (((_arg5 + 1) * _arg1) - _arg5)) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0):Number{ if (!_arg5){ _arg5 = 1.70158; }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ _arg5 = (_arg5 * 1.525); return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) - _arg5))) + _arg2)); }; _arg1 = (_arg1 - 2); _arg5 = (_arg5 * 1.525); return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_arg5 + 1) * _arg1) + _arg5)) + 2)) + _arg2)); } } }//package fl.transitions.easing
Section 21
//Bounce (fl.transitions.easing.Bounce) package fl.transitions.easing { public class Bounce { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); if (_arg1 < (1 / 2.75)){ return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2)); }; if (_arg1 < (2 / 2.75)){ _arg1 = (_arg1 - (1.5 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2)); }; if (_arg1 < (2.5 / 2.75)){ _arg1 = (_arg1 - (2.25 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2)); }; _arg1 = (_arg1 - (2.625 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (((_arg3 - easeOut((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ if (_arg1 < (_arg4 / 2)){ return (((easeIn((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2)); }; return ((((easeOut(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2)); } } }//package fl.transitions.easing
Section 22
//Tween (fl.transitions.Tween) package fl.transitions { import flash.events.*; import flash.utils.*; import flash.display.*; 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 23
//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 24
//Sine (gs.easing.Sine) package gs.easing { public class Sine { private static const _HALF_PI:Number = 1.5707963267949; 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 easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * _HALF_PI))) + _arg3) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2)); } } }//package gs.easing
Section 25
//TweenEvent (gs.events.TweenEvent) package gs.events { import flash.events.*; public class TweenEvent extends Event { public var info:Object; public static const UPDATE:String = "update"; public static const START:String = "start"; public static const version:Number = 0.9; public static const COMPLETE:String = "complete"; public function TweenEvent(_arg1:String, _arg2:Object=null, _arg3:Boolean=false, _arg4:Boolean=false){ super(_arg1, _arg3, _arg4); this.info = _arg2; } override public function clone():Event{ return (new TweenEvent(this.type, this.info, this.bubbles, this.cancelable)); } } }//package gs.events
Section 26
//OverwriteManager (gs.OverwriteManager) package gs { import flash.utils.*; import flash.errors.*; public class OverwriteManager { public static const ALL:int = 1; public static const NONE:int = 0; public static const AUTO:int = 2; public static const CONCURRENT:int = 3; public static const version:Number = 0.96; public static var mode:int; public static var enabled:Boolean; public static function killVars(_arg1:Object, _arg2:Object, _arg3:Array, _arg4:Array, _arg5:Array):void{ var _local6:int; var _local7:String; _local6 = (_arg4.length - 1); while (_local6 > -1) { if (_arg1[_arg4[_local6].name] != undefined){ _arg4.splice(_local6, 1); }; _local6--; }; _local6 = (_arg3.length - 1); while (_local6 > -1) { if (_arg1[_arg3[_local6].name] != undefined){ _arg3.splice(_local6, 1); }; _local6--; }; _local6 = (_arg5.length - 1); while (_local6 > -1) { if (_arg1[_arg5[_local6].name] != undefined){ _arg5.splice(_local6, 1); }; _local6--; }; for (_local7 in _arg1) { delete _arg2[_local7]; }; } public static function manageOverwrites(_arg1:TweenLite, _arg2:Dictionary):void{ var _local3:Object; var _local4:int; var _local5:Object; var _local6:Number; var _local7:Array; var _local8:int; var _local9:Object; var _local10:String; _local3 = _arg1.vars; _local4 = ((_local3.overwrite)==undefined) ? mode : int(_local3.overwrite); if (_local4 < 2){ return; }; _local6 = _arg1.startTime; _local7 = []; for each (_local5 in _arg2) { if (((!((_local5 == _arg1))) && ((_local5.startTime <= _local6)))){ _local7[_local7.length] = _local5; }; }; if (_local7.length == 0){ return; }; if (_local4 == AUTO){ if (_local3.isTV == true){ _local3 = _local3.exposedProps; }; _local9 = {}; for (_local10 in _local3) { if ((((((((((((((((((((((((((((((((((((((_local10 == "ease")) || ((_local10 == "delay")))) || ((_local10 == "overwrite")))) || ((_local10 == "onComplete")))) || ((_local10 == "onCompleteParams")))) || ((_local10 == "runBackwards")))) || ((_local10 == "persist")))) || ((_local10 == "onUpdate")))) || ((_local10 == "onUpdateParams")))) || ((_local10 == "timeScale")))) || ((_local10 == "onStart")))) || ((_local10 == "onStartParams")))) || ((_local10 == "renderOnStart")))) || ((_local10 == "proxiedEase")))) || ((_local10 == "easeParams")))) || ((_local10 == "onCompleteAll")))) || ((_local10 == "onCompleteAllParams")))) || ((_local10 == "yoyo")))) || ((_local10 == "loop")))){ } else { _local9[_local10] = 1; }; }; _local8 = (_local7.length - 1); while (_local8 > -1) { _local7[_local8].killVars(_local9); _local8--; }; } else { _local8 = (_local7.length - 1); while (_local8 > -1) { _arg2[_local7[_local8]] = null; delete _arg2[_local7[_local8]]; _local8--; }; }; } public static function init(_arg1:int=2):int{ if (TweenLite.version < 8.14){ trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com."); }; TweenLite.overwriteManager = OverwriteManager; mode = _arg1; enabled = true; return (mode); } } }//package gs
Section 27
//TweenFilterLite (gs.TweenFilterLite) package gs { import flash.filters.*; public class TweenFilterLite extends TweenLite { protected var _endMatrix:Array; protected var _hf:Boolean;// = false protected var _clrsa:Array; protected var _filters:Array; protected var _originalEase:Function; protected var _matrix:Array; protected var _cmf:ColorMatrixFilter; public static var removeTween:Function = TweenLite.removeTween; public static var defaultEase:Function = TweenLite.defaultEase; private static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]; private static var _lumB:Number = 0.072169; public static var version:Number = 8.16; public static var delayedCall:Function = TweenLite.delayedCall; public static var killTweensOf:Function = TweenLite.killTweensOf; private static var _lumG:Number = 0.71516; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _lumR:Number = 0.212671; public function TweenFilterLite(_arg1:Object, _arg2:Number, _arg3:Object){ _hf = false; _filters = []; super(_arg1, _arg2, _arg3); _originalEase = this.vars.ease; if (TweenLite.version < 8.15){ trace("TweenFilterLite error! Please update your TweenLite class or try deleting your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com."); }; if (_arg3.type != undefined){ trace((("TweenFilterLite error: " + _arg1) + " is using deprecated syntax. Please update to the new syntax. See http://www.TweenFilterLite.com for details.")); }; } override public function render(_arg1:uint):void{ var _local2:Number; var _local3:Number; var _local4:Object; var _local5:int; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:int; var _local10:Array; _local2 = (((_arg1 - this.startTime) / 1000) * _timeScale); if (_local2 >= this.duration){ _local2 = this.duration; _local3 = ((((_originalEase == this.vars.ease)) || ((this.duration == 0.001)))) ? 1 : 0; } else { _local3 = this.vars.ease(_local2, 0, 1, this.duration); }; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c)); _local5--; }; if (_hf){ _local5 = (_clrsa.length - 1); while (_local5 > -1) { _local4 = _clrsa[_local5]; _local6 = (_local4.sr + (_local3 * _local4.cr)); _local7 = (_local4.sg + (_local3 * _local4.cg)); _local8 = (_local4.sb + (_local3 * _local4.cb)); _local4.f[_local4.p] = (((_local6 << 16) | (_local7 << 8)) | _local8); _local5--; }; if (_cmf != null){ ColorMatrixFilter(_cmf).matrix = _matrix; }; _local10 = this.target.filters; _local5 = 0; while (_local5 < _filters.length) { _local9 = (_local10.length - 1); while (_local9 > -1) { if ((_local10[_local9] is _filters[_local5].type)){ _local10.splice(_local9, 1, _filters[_local5].filter); break; }; _local9--; }; _local5++; }; this.target.filters = _local10; }; if (_hst){ _local5 = (_subTweens.length - 1); while (_local5 > -1) { _subTweens[_local5].proxy(_subTweens[_local5]); _local5--; }; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } public function get timeScale():Number{ return (_timeScale); } public function set timeScale(_arg1:Number):void{ if (((_initted) && ((_curTime > (this.initTime + (this.delay * 1000)))))){ this.initTime = ((_curTime - (((_curTime - (this.initTime + (this.delay * 1000))) * _timeScale) * (1 / _arg1))) - (this.delay * 1000)); if (this.startTime != 99999999999){ this.startTime = (this.initTime + (this.delay * 1000)); }; }; _timeScale = _arg1; } override public function killVars(_arg1:Object):void{ if (TweenLite.overwriteManager.enabled){ TweenLite.overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, _filters); }; } override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{ var _local3:int; var _local4:Object; var _local5:Object; var _local6:Object; if (((((!(_arg1)) && (!((this.delay == 0))))) && (TweenLite.overwriteManager.enabled))){ TweenLite.overwriteManager.manageOverwrites(this, _all[this.target]); }; _clrsa = []; _filters = []; _matrix = _idMatrix.slice(); _arg2 = (_arg2 + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter "); if (_isDisplayObject){ if (this.vars.blurFilter != null){ _local4 = this.vars.blurFilter; addFilter("blurFilter", _local4, BlurFilter, ["blurX", "blurY", "quality"], new BlurFilter(0, 0, ((_local4.quality) || (2)))); }; if (this.vars.glowFilter != null){ _local4 = this.vars.glowFilter; addFilter("glowFilter", _local4, GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new GlowFilter(0xFFFFFF, 0, 0, 0, ((_local4.strength) || (1)), ((_local4.quality) || (2)), _local4.inner, _local4.knockout)); }; if (this.vars.colorMatrixFilter != null){ _local4 = this.vars.colorMatrixFilter; _local5 = addFilter("colorMatrixFilter", _local4, ColorMatrixFilter, [], new ColorMatrixFilter(_matrix)); _cmf = _local5.filter; _matrix = ColorMatrixFilter(_cmf).matrix; if (((!((_local4.matrix == null))) && ((_local4.matrix is Array)))){ _endMatrix = _local4.matrix; } else { if (_local4.relative == true){ _endMatrix = _matrix.slice(); } else { _endMatrix = _idMatrix.slice(); }; _endMatrix = setBrightness(_endMatrix, _local4.brightness); _endMatrix = setContrast(_endMatrix, _local4.contrast); _endMatrix = setHue(_endMatrix, _local4.hue); _endMatrix = setSaturation(_endMatrix, _local4.saturation); _endMatrix = setThreshold(_endMatrix, _local4.threshold); if (!isNaN(_local4.colorize)){ _endMatrix = colorize(_endMatrix, _local4.colorize, _local4.amount); } else { if (!isNaN(_local4.color)){ _endMatrix = colorize(_endMatrix, _local4.color, _local4.amount); }; }; }; _local3 = 0; while (_local3 < _endMatrix.length) { if (((!((_matrix[_local3] == _endMatrix[_local3]))) && (!((_matrix[_local3] == undefined))))){ this.tweens[this.tweens.length] = {o:_matrix, p:_local3.toString(), s:_matrix[_local3], c:(_endMatrix[_local3] - _matrix[_local3]), name:"colorMatrixFilter"}; }; _local3++; }; }; if (this.vars.dropShadowFilter != null){ _local4 = this.vars.dropShadowFilter; addFilter("dropShadowFilter", _local4, DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_local4.quality) || (2)), _local4.inner, _local4.knockout, _local4.hideObject)); }; if (this.vars.bevelFilter != null){ _local4 = this.vars.bevelFilter; addFilter("bevelFilter", _local4, BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_local4.quality) || (2)))); }; if (this.vars.runBackwards == true){ _local3 = (_clrsa.length - 1); while (_local3 > -1) { _local6 = _clrsa[_local3]; _clrsa[_local3].sr = (_local6.sr + _local6.cr); _local6.cr = (_local6.cr * -1); _local6.sg = (_local6.sg + _local6.cg); _local6.cg = (_local6.cg * -1); _local6.sb = (_local6.sb + _local6.cb); _local6.cb = (_local6.cb * -1); _local6.f[_local6.p] = (((_local6.sr << 16) | (_local6.sg << 8)) | _local6.sb); _local3--; }; }; super.initTweenVals(true, _arg2); } else { super.initTweenVals(_arg1, _arg2); }; } private function addFilter(_arg1:String, _arg2:Object, _arg3:Class, _arg4:Array, _arg5:BitmapFilter):Object{ var _local6:Object; var _local7:Array; var _local8:int; var _local9:String; var _local10:Number; var _local11:Object; var _local12:Object; _local6 = {type:_arg3, name:_arg1}; _local7 = this.target.filters; _local8 = 0; while (_local8 < _local7.length) { if ((_local7[_local8] is _arg3)){ _local6.filter = _local7[_local8]; break; }; _local8++; }; if (_local6.filter == undefined){ _local6.filter = _arg5; _local7[_local7.length] = _local6.filter; this.target.filters = _local7; }; _local8 = 0; while (_local8 < _arg4.length) { _local9 = _arg4[_local8]; if (_arg2[_local9] != undefined){ if ((((((_local9 == "color")) || ((_local9 == "highlightColor")))) || ((_local9 == "shadowColor")))){ _local11 = HEXtoRGB(_local6.filter[_local9]); _local12 = HEXtoRGB(_arg2[_local9]); _clrsa[_clrsa.length] = {f:_local6.filter, p:_local9, sr:_local11.rb, cr:(_local12.rb - _local11.rb), sg:_local11.gb, cg:(_local12.gb - _local11.gb), sb:_local11.bb, cb:(_local12.bb - _local11.bb)}; } else { if ((((((((_local9 == "quality")) || ((_local9 == "inner")))) || ((_local9 == "knockout")))) || ((_local9 == "hideObject")))){ _local6.filter[_local9] = _arg2[_local9]; } else { if (typeof(_arg2[_local9]) == "number"){ _local10 = (_arg2[_local9] - _local6.filter[_local9]); } else { _local10 = Number(_arg2[_local9]); }; this.tweens[this.tweens.length] = {o:_local6.filter, p:_local9, s:_local6.filter[_local9], c:_local10, name:_arg1}; }; }; }; _local8++; }; _filters[_filters.length] = _local6; _hf = true; return (_local6); } public static function setContrast(_arg1:Array, _arg2:Number):Array{ var _local3:Array; if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 + 0.01); _local3 = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=1):Array{ var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Array; if (isNaN(_arg2)){ return (_arg1); }; if (isNaN(_arg3)){ _arg3 = 1; }; _local4 = (((_arg2 >> 16) & 0xFF) / 0xFF); _local5 = (((_arg2 >> 8) & 0xFF) / 0xFF); _local6 = ((_arg2 & 0xFF) / 0xFF); _local7 = (1 - _arg3); _local8 = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local8, _arg1)); } public static function setBrightness(_arg1:Array, _arg2:Number):Array{ if (isNaN(_arg2)){ return (_arg1); }; _arg2 = ((_arg2 * 100) - 100); return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1)); } public static function setSaturation(_arg1:Array, _arg2:Number):Array{ var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Array; if (isNaN(_arg2)){ return (_arg1); }; _local3 = (1 - _arg2); _local4 = (_local3 * _lumR); _local5 = (_local3 * _lumG); _local6 = (_local3 * _lumB); _local7 = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0]; return (applyMatrix(_local7, _arg1)); } public static function applyMatrix(_arg1:Array, _arg2:Array):Array{ var _local3:Array; var _local4:int; var _local5:int; var _local6:int; var _local7:int; if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){ return (_arg2); }; _local3 = []; _local4 = 0; _local5 = 0; _local6 = 0; while (_local6 < 4) { _local7 = 0; while (_local7 < 5) { if (_local7 == 4){ _local5 = _arg1[(_local4 + 4)]; } else { _local5 = 0; }; _local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5); _local7++; }; _local4 = (_local4 + 5); _local6++; }; return (_local3); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{ _arg3.runBackwards = true; return (new TweenFilterLite(_arg1, _arg2, _arg3)); } public static function HEXtoRGB(_arg1:Number):Object{ return ({rb:(_arg1 >> 16), gb:((_arg1 >> 8) & 0xFF), bb:(_arg1 & 0xFF)}); } public static function setThreshold(_arg1:Array, _arg2:Number):Array{ var _local3:Array; if (isNaN(_arg2)){ return (_arg1); }; _local3 = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0]; return (applyMatrix(_local3, _arg1)); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{ return (new TweenFilterLite(_arg1, _arg2, _arg3)); } public static function setHue(_arg1:Array, _arg2:Number):Array{ var _local3:Number; var _local4:Number; var _local5:Array; if (isNaN(_arg2)){ return (_arg1); }; _arg2 = (_arg2 * (Math.PI / 180)); _local3 = Math.cos(_arg2); _local4 = Math.sin(_arg2); _local5 = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]; return (applyMatrix(_local5, _arg1)); } } }//package gs
Section 28
//TweenLite (gs.TweenLite) package gs { import flash.events.*; import flash.utils.*; import flash.display.*; import flash.geom.*; public class TweenLite { public var delay:Number; protected var _hasUpdate:Boolean; protected var _subTweens:Array; protected var _initted:Boolean; public var startTime:int; public var target:Object; public var duration:Number; protected var _hst:Boolean; protected var _isDisplayObject:Boolean; protected var _active:Boolean; public var vars:Object; public var tweens:Array; public var initTime:int; protected var _timeScale:Number; private static var _timer:Timer = new Timer(2000); private static var _classInitted:Boolean; public static var defaultEase:Function = TweenLite.easeOut; public static var version:Number = 8.15; protected static var _all:Dictionary = new Dictionary(); private static var _sprite:Sprite = new Sprite(); protected static var _curTime:uint; public static var overwriteManager:Object; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; private static var _listening:Boolean; public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ var _local4:int; var _local5:*; super(); if (_arg1 == null){ return; }; if (!_classInitted){ _curTime = getTimer(); _sprite.addEventListener(Event.ENTER_FRAME, executeAll); if (overwriteManager == null){ overwriteManager = {mode:1, enabled:false}; }; _classInitted = true; }; this.vars = _arg3; this.duration = ((_arg2) || (0.001)); this.delay = ((_arg3.delay) || (0)); _timeScale = ((_arg3.timeScale) || (1)); _active = (((_arg2 == 0)) && ((this.delay == 0))); this.target = _arg1; _isDisplayObject = (_arg1 is DisplayObject); if (!(this.vars.ease is Function)){ this.vars.ease = defaultEase; }; if (this.vars.easeParams != null){ this.vars.proxiedEase = this.vars.ease; this.vars.ease = easeProxy; }; if (!isNaN(Number(this.vars.autoAlpha))){ this.vars.alpha = Number(this.vars.autoAlpha); this.vars.visible = (this.vars.alpha > 0); }; this.tweens = []; _subTweens = []; _hst = (_initted = false); this.initTime = _curTime; this.startTime = (this.initTime + (this.delay * 1000)); _local4 = ((((_arg3.overwrite == undefined)) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite); if ((((_all[_arg1] == undefined)) || (((!((_arg1 == null))) && ((_local4 == 1)))))){ delete _all[_arg1]; _all[_arg1] = new Dictionary(true); } else { if ((((_local4 > 1)) && ((this.delay == 0)))){ overwriteManager.manageOverwrites(this, _all[_arg1]); }; }; _all[_arg1][this] = this; if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (_active))){ initTweenVals(); if (_active){ render((this.startTime + 1)); } else { render(this.startTime); }; _local5 = this.vars.visible; if (this.vars.isTV == true){ _local5 = this.vars.exposedProps.visible; }; if (((((!((_local5 == null))) && ((this.vars.runBackwards == true)))) && (_isDisplayObject))){ this.target.visible = Boolean(_local5); }; }; if (((!(_listening)) && (!(_active)))){ _timer.addEventListener("timer", killGarbage); _timer.start(); _listening = true; }; } protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{ var _local6:Object; var _local7:String; _local6 = {name:_arg1, proxy:_arg2, target:_arg3, info:_arg5}; _subTweens[_subTweens.length] = _local6; for (_local7 in _arg4) { if (typeof(_arg4[_local7]) == "number"){ this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:(_arg4[_local7] - _arg3[_local7]), sub:_local6, name:_arg1}; } else { this.tweens[this.tweens.length] = {o:_arg3, p:_local7, s:_arg3[_local7], c:Number(_arg4[_local7]), sub:_local6, name:_arg1}; }; }; _hst = true; } public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{ var _local3:String; var _local4:int; var _local5:Object; var _local6:Array; var _local7:ColorTransform; var _local8:ColorTransform; var _local9:Object; _local5 = this.vars; if (_local5.isTV == true){ _local5 = _local5.exposedProps; }; if (((((!(_arg1)) && (!((this.delay == 0))))) && (overwriteManager.enabled))){ overwriteManager.manageOverwrites(this, _all[this.target]); }; if ((this.target is Array)){ _local6 = ((this.vars.endArray) || ([])); _local4 = 0; while (_local4 < _local6.length) { if (((!((this.target[_local4] == _local6[_local4]))) && (!((this.target[_local4] == undefined))))){ this.tweens[this.tweens.length] = {o:this.target, p:_local4.toString(), s:this.target[_local4], c:(_local6[_local4] - this.target[_local4]), name:_local4.toString()}; }; _local4++; }; } else { if (((((!((typeof(_local5.tint) == "undefined"))) || ((this.vars.removeTint == true)))) && (_isDisplayObject))){ _local7 = this.target.transform.colorTransform; _local8 = new ColorTransform(); if (_local5.alpha != undefined){ _local8.alphaMultiplier = _local5.alpha; delete _local5.alpha; } else { _local8.alphaMultiplier = this.target.alpha; }; if (((!((this.vars.removeTint == true))) && (((((!((_local5.tint == null))) && (!((_local5.tint == ""))))) || ((_local5.tint == 0)))))){ _local8.color = _local5.tint; }; addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local7, endColor:_local8}); }; if (((!((_local5.frame == null))) && (_isDisplayObject))){ addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:_local5.frame}, {target:this.target}); }; if (((!(isNaN(this.vars.volume))) && (this.target.hasOwnProperty("soundTransform")))){ addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target}); }; for (_local3 in _local5) { if ((((((((((((((((((((((((((((((((((((((_local3 == "ease")) || ((_local3 == "delay")))) || ((_local3 == "overwrite")))) || ((_local3 == "onComplete")))) || ((_local3 == "onCompleteParams")))) || ((_local3 == "runBackwards")))) || ((_local3 == "visible")))) || ((_local3 == "autoOverwrite")))) || ((_local3 == "persist")))) || ((_local3 == "onUpdate")))) || ((_local3 == "onUpdateParams")))) || ((_local3 == "autoAlpha")))) || ((_local3 == "timeScale")))) || ((_local3 == "onStart")))) || ((_local3 == "onStartParams")))) || ((_local3 == "renderOnStart")))) || ((_local3 == "proxiedEase")))) || ((_local3 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local3) + " ")) == -1))))))){ } else { if (((!(((_isDisplayObject) && ((((((_local3 == "tint")) || ((_local3 == "removeTint")))) || ((_local3 == "frame"))))))) && (!((((_local3 == "volume")) && (this.target.hasOwnProperty("soundTransform"))))))){ if (typeof(_local5[_local3]) == "number"){ this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:(_local5[_local3] - this.target[_local3]), name:_local3}; } else { this.tweens[this.tweens.length] = {o:this.target, p:_local3, s:this.target[_local3], c:Number(_local5[_local3]), name:_local3}; }; }; }; }; }; if (this.vars.runBackwards == true){ _local4 = (this.tweens.length - 1); while (_local4 > -1) { _local9 = this.tweens[_local4]; this.tweens[_local4].s = (_local9.s + _local9.c); _local9.c = (_local9.c * -1); _local4--; }; }; if ((((_local5.visible == true)) && (_isDisplayObject))){ this.target.visible = true; }; if (this.vars.onUpdate != null){ _hasUpdate = true; }; _initted = true; } public function get active():Boolean{ if (_active){ return (true); }; if (_curTime >= this.startTime){ _active = true; if (!_initted){ initTweenVals(); } else { if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){ this.target.visible = true; }; }; if (this.vars.onStart != null){ this.vars.onStart.apply(null, this.vars.onStartParams); }; if (this.duration == 0.001){ this.startTime = (this.startTime - 1); }; return (true); //unresolved jump }; return (false); } public function render(_arg1:uint):void{ var _local2:Number; var _local3:Number; var _local4:Object; var _local5:int; _local2 = ((_arg1 - this.startTime) / 1000); if (_local2 >= this.duration){ _local2 = this.duration; _local3 = 1; } else { _local3 = this.vars.ease(_local2, 0, 1, this.duration); }; _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c)); _local5--; }; if (_hst){ _local5 = (_subTweens.length - 1); while (_local5 > -1) { _subTweens[_local5].proxy(_subTweens[_local5]); _local5--; }; }; if (_hasUpdate){ this.vars.onUpdate.apply(null, this.vars.onUpdateParams); }; if (_local2 == this.duration){ complete(true); }; } protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams))); } public function killVars(_arg1:Object):void{ if (overwriteManager.enabled){ overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []); }; } public function complete(_arg1:Boolean=false):void{ if (!_arg1){ if (!_initted){ initTweenVals(); }; this.startTime = (_curTime - ((this.duration * 1000) / _timeScale)); render(_curTime); return; }; if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){ if (((!(isNaN(this.vars.autoAlpha))) && ((this.target.alpha == 0)))){ this.target.visible = false; } else { if (this.vars.runBackwards != true){ this.target.visible = this.vars.visible; }; }; }; if (this.vars.persist != true){ removeTween(this); }; if (this.vars.onComplete != null){ this.vars.onComplete.apply(null, this.vars.onCompleteParams); }; } public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function frameProxy(_arg1:Object):void{ _arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame)); } public static function removeTween(_arg1:TweenLite=null):void{ if (((!((_arg1 == null))) && (!((_all[_arg1.target] == undefined))))){ _all[_arg1.target][_arg1] = null; delete _all[_arg1.target][_arg1]; }; } public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{ var _local3:Object; var _local4:*; if (((!((_arg1 == null))) && (!((_all[_arg1] == undefined))))){ if (_arg2){ _local3 = _all[_arg1]; for (_local4 in _local3) { _local3[_local4].complete(false); }; }; delete _all[_arg1]; }; } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenLite{ return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0})); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; return (new TweenLite(_arg1, _arg2, _arg3)); } public static function executeAll(_arg1:Event=null):void{ var _local2:uint; var _local3:Dictionary; var _local4:Object; var _local5:Object; _local2 = (_curTime = getTimer()); if (_listening){ _local3 = _all; for each (_local4 in _local3) { for (_local5 in _local4) { if (((!((_local4[_local5] == undefined))) && (_local4[_local5].active))){ _local4[_local5].render(_local2); }; }; }; }; } public static function volumeProxy(_arg1:Object):void{ _arg1.info.target.soundTransform = _arg1.target; } public static function killGarbage(_arg1:TimerEvent):void{ var _local2:uint; var _local3:Boolean; var _local4:Object; var _local5:Object; var _local6:Object; _local2 = 0; for (_local4 in _all) { _local3 = false; for (_local5 in _all[_local4]) { _local3 = true; break; }; if (!_local3){ delete _all[_local4]; } else { _local2++; }; }; if (_local2 == 0){ _timer.removeEventListener("timer", killGarbage); _timer.stop(); _listening = false; }; } public static function tintProxy(_arg1:Object):void{ var _local2:Number; var _local3:Number; var _local4:Object; var _local5:Object; _local2 = _arg1.target.progress; _local3 = (1 - _local2); _local4 = _arg1.info.color; _local5 = _arg1.info.endColor; _arg1.info.target.transform.colorTransform = new ColorTransform(((_local4.redMultiplier * _local3) + (_local5.redMultiplier * _local2)), ((_local4.greenMultiplier * _local3) + (_local5.greenMultiplier * _local2)), ((_local4.blueMultiplier * _local3) + (_local5.blueMultiplier * _local2)), ((_local4.alphaMultiplier * _local3) + (_local5.alphaMultiplier * _local2)), ((_local4.redOffset * _local3) + (_local5.redOffset * _local2)), ((_local4.greenOffset * _local3) + (_local5.greenOffset * _local2)), ((_local4.blueOffset * _local3) + (_local5.blueOffset * _local2)), ((_local4.alphaOffset * _local3) + (_local5.alphaOffset * _local2))); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } } }//package gs
Section 29
//TweenMax (gs.TweenMax) package gs { import flash.events.*; import flash.utils.*; import gs.events.*; public class TweenMax extends TweenFilterLite implements IEventDispatcher { protected var _isProcessingComplete:Boolean; protected var _dispatcher:EventDispatcher; protected var _callbacks:Object; protected var _pauseTime:int; protected static const _RAD2DEG:Number = 57.2957795130823; public static var removeTween:Function = TweenLite.removeTween; private static var _overwriteMode:int = (OverwriteManager.enabled) ? OverwriteManager.mode : OverwriteManager.init(); ; public static var defaultEase:Function = TweenLite.defaultEase; public static var killTweensOf:Function = TweenLite.killTweensOf; public static var version:Number = 2.19; public static var killDelayedCallsTo:Function = TweenLite.killDelayedCallsTo; public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){ super(_arg1, _arg2, _arg3); _pauseTime = -1; if (((((!((this.vars.onCompleteListener == null))) || (!((this.vars.onUpdateListener == null))))) || (!((this.vars.onStartListener == null))))){ initDispatcher(); if ((((_arg2 == 0)) && ((this.delay == 0)))){ onUpdateDispatcher(); onCompleteDispatcher(); }; }; if ((((this.vars.yoyo == true)) || ((this.vars.loop == true)))){ this.vars.persist = true; }; if (TweenFilterLite.version < 8.16){ trace("TweenMax error! Please update your TweenFilterLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com."); }; } override public function get active():Boolean{ if (_active){ return (true); }; if (_pauseTime != -1){ return (false); }; if (_curTime >= this.startTime){ _active = true; if (!_initted){ initTweenVals(); } else { if (((!((this.vars.visible == undefined))) && (_isDisplayObject))){ this.target.visible = true; }; }; if (this.vars.onStart != null){ this.vars.onStart.apply(null, this.vars.onStartParams); }; if (this.duration == 0.001){ this.startTime = (this.startTime - 1); }; return (true); //unresolved jump }; return (false); } public function get paused():Boolean{ if (_pauseTime != -1){ return (true); }; return (false); } public function resume():void{ var _local1:Boolean; var _local2:Number; if (_pauseTime != -1){ _local1 = (_pauseTime > (this.initTime + (this.delay * 1000))); _local2 = (_curTime - _pauseTime); this.initTime = (this.initTime + _local2); this.startTime = (this.initTime + (this.delay * 1000)); _pauseTime = -1; if (((!(_local1)) && ((_curTime >= this.startTime)))){ _local1 = this.active; } else { _active = _local1; }; }; } protected function adjustStartValues():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Object; var _local5:int; _local1 = this.progress; if (_local1 != 0){ _local2 = (1 / (1 - this.vars.ease((_local1 * this.duration), 0, 1, this.duration))); _local5 = (this.tweens.length - 1); while (_local5 > -1) { _local4 = this.tweens[_local5]; _local3 = (_local4.s + _local4.c); _local4.c = ((_local3 - _local4.o[_local4.p]) * _local2); _local4.s = (_local3 - _local4.c); _local5--; }; }; } override public function complete(_arg1:Boolean=false):void{ if (!_isProcessingComplete){ _isProcessingComplete = true; if ((((this.vars.yoyo == true)) || ((this.vars.loop == true)))){ if (this.vars.yoyo == true){ reverse(false); }; this.startTime = _curTime; this.initTime = (this.startTime - (this.delay * 1000)); render(_curTime); } else { if (this.vars.persist == true){ pause(); }; }; super.complete(_arg1); _isProcessingComplete = false; }; } public function invalidate(_arg1:Boolean=true):void{ var _local2:Number; if (_initted){ _local2 = this.progress; if (((!(_arg1)) && (!((_local2 == 0))))){ this.progress = 0; }; this.tweens = []; _subTweens = []; initTweenVals(); if (_local2 != 0){ if (_arg1){ adjustStartValues(); } else { this.progress = _local2; }; }; }; } public function willTrigger(_arg1:String):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.willTrigger(_arg1)); } public function get progress():Number{ var _local1:Number; _local1 = (((((((_curTime - this.initTime) / 1000) - this.delay) / this.duration) * _timeScale)) || (0)); if (_local1 > 1){ return (1); }; return (_local1); } public function dispatchEvent(_arg1:Event):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.dispatchEvent(_arg1)); } override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{ var _local3:String; var _local4:int; var _local5:Object; var _local6:Object; var _local7:Array; var _local8:Function; _arg2 = (_arg2 + " hexColors bezier bezierThrough orientToBezier quaternions onCompleteAll onCompleteAllParams yoyo loop onCompleteListener onUpdateListener onStartListener "); if (((((!(_arg1)) && (!((this.delay == 0))))) && (TweenLite.overwriteManager.enabled))){ TweenLite.overwriteManager.manageOverwrites(this, _all[this.target]); }; _local8 = bezierProxy; if (this.vars.orientToBezier == true){ this.vars.orientToBezier = [["x", "y", "rotation", 0]]; _local8 = bezierProxy2; } else { if ((this.vars.orientToBezier is Array)){ _local8 = bezierProxy2; }; }; if (((!((this.vars.bezier == undefined))) && ((this.vars.bezier is Array)))){ _local6 = {}; _local7 = this.vars.bezier; _local4 = 0; while (_local4 < _local7.length) { for (_local3 in _local7[_local4]) { if (_local6[_local3] == undefined){ _local6[_local3] = [this.target[_local3]]; }; if (typeof(_local7[_local4][_local3]) == "number"){ _local6[_local3].push(_local7[_local4][_local3]); } else { _local6[_local3].push((this.target[_local3] + Number(_local7[_local4][_local3]))); }; }; _local4++; }; for (_local3 in _local6) { if (typeof(this.vars[_local3]) == "number"){ _local6[_local3].push(this.vars[_local3]); } else { _local6[_local3].push((this.target[_local3] + Number(this.vars[_local3]))); }; delete this.vars[_local3]; }; addSubTween("bezier", _local8, {t:0}, {t:1}, {props:parseBeziers(_local6, false), target:this.target, orientToBezier:this.vars.orientToBezier}); }; if (((!((this.vars.bezierThrough == undefined))) && ((this.vars.bezierThrough is Array)))){ _local6 = {}; _local7 = this.vars.bezierThrough; _local4 = 0; while (_local4 < _local7.length) { for (_local3 in _local7[_local4]) { if (_local6[_local3] == undefined){ _local6[_local3] = [this.target[_local3]]; }; if (typeof(_local7[_local4][_local3]) == "number"){ _local6[_local3].push(_local7[_local4][_local3]); } else { _local6[_local3].push((this.target[_local3] + Number(_local7[_local4][_local3]))); }; }; _local4++; }; for (_local3 in _local6) { if (typeof(this.vars[_local3]) == "number"){ _local6[_local3].push(this.vars[_local3]); } else { _local6[_local3].push((this.target[_local3] + Number(this.vars[_local3]))); }; delete this.vars[_local3]; }; addSubTween("bezierThrough", _local8, {t:0}, {t:1}, {props:parseBeziers(_local6, true), target:this.target, orientToBezier:this.vars.orientToBezier}); }; if (((!((this.vars.hexColors == undefined))) && ((typeof(this.vars.hexColors) == "object")))){ for (_local3 in this.vars.hexColors) { addSubTween("hexColors", hexColorsProxy, {r:(this.target[_local3] >> 16), g:((this.target[_local3] >> 8) & 0xFF), b:(this.target[_local3] & 0xFF)}, {r:(this.vars.hexColors[_local3] >> 16), g:((this.vars.hexColors[_local3] >> 8) & 0xFF), b:(this.vars.hexColors[_local3] & 0xFF)}, {prop:_local3, target:this.target}); }; }; super.initTweenVals(true, _arg2); } protected function onStartDispatcher(... _args):void{ if (_callbacks.onStart != null){ _callbacks.onStart.apply(null, this.vars.onStartParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.START)); } public function setDestination(_arg1:String, _arg2, _arg3:Boolean=true):void{ var _local4:Number; var _local5:Object; var _local6:int; var _local7:Object; var _local8:Array; var _local9:Array; _local4 = this.progress; if (((!((this.vars[_arg1] == undefined))) && (_initted))){ if (((!(_arg3)) && (!((_local4 == 0))))){ _local6 = (this.tweens.length - 1); while (_local6 > -1) { if (this.tweens[_local6].name == _arg1){ this.tweens[_local6].o[this.tweens[_local6].p] = this.tweens[_local6].s; }; _local6--; }; }; _local5 = {}; _local5[_arg1] = 1; killVars(_local5); }; this.vars[_arg1] = _arg2; if (_initted){ _local7 = this.vars; _local8 = this.tweens; _local9 = _subTweens; this.vars = {}; this.tweens = []; _subTweens = []; this.vars[_arg1] = _arg2; initTweenVals(); if (((_arg3) && (!((_local4 == 0))))){ this.vars.ease = _local7.ease; adjustStartValues(); }; this.vars = _local7; this.tweens = _local8.concat(this.tweens); _subTweens = _local9.concat(_subTweens); }; } public function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{ if (_dispatcher == null){ initDispatcher(); }; _dispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5); } public function restart():void{ this.progress = 0; resume(); } protected function initDispatcher():void{ var _local1:Object; var _local2:String; if (_dispatcher == null){ _dispatcher = new EventDispatcher(this); _callbacks = {onStart:this.vars.onStart, onUpdate:this.vars.onUpdate, onComplete:this.vars.onComplete}; _local1 = {}; for (_local2 in this.vars) { _local1[_local2] = this.vars[_local2]; }; this.vars = _local1; this.vars.onStart = onStartDispatcher; this.vars.onUpdate = onUpdateDispatcher; this.vars.onComplete = onCompleteDispatcher; if ((this.vars.onStartListener is Function)){ _dispatcher.addEventListener(TweenEvent.START, this.vars.onStartListener, false, 0, true); }; if ((this.vars.onUpdateListener is Function)){ _dispatcher.addEventListener(TweenEvent.UPDATE, this.vars.onUpdateListener, false, 0, true); }; if ((this.vars.onCompleteListener is Function)){ _dispatcher.addEventListener(TweenEvent.COMPLETE, this.vars.onCompleteListener, false, 0, true); }; }; } public function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{ if (_dispatcher != null){ _dispatcher.removeEventListener(_arg1, _arg2, _arg3); }; } public function killProperties(_arg1:Array):void{ var _local2:Object; var _local3:int; _local2 = {}; _local3 = (_arg1.length - 1); while (_local3 > -1) { if (this.vars[_arg1[_local3]] != null){ _local2[_arg1[_local3]] = 1; }; _local3--; }; killVars(_local2); } public function set progress(_arg1:Number):void{ var _local2:Number; var _local3:Boolean; var _local4:*; _local2 = (_curTime - ((this.duration * _arg1) * 1000)); this.initTime = (_local2 - (this.delay * 1000)); this.startTime = _local2; _local3 = this.active; render(_curTime); if (_pauseTime != -1){ this.startTime = 99999999999; }; _local4 = this.vars.visible; if (this.vars.isTV == true){ _local4 = this.vars.exposedProps.visible; }; if (((((!((_local4 == null))) && (_isDisplayObject))) && ((_arg1 < 1)))){ this.target.visible = Boolean(_local4); }; } public function reverse(_arg1:Boolean=true):void{ this.vars.ease = ((this.vars.ease)==_originalEase) ? reverseEase : _originalEase; if (((_arg1) && ((_curTime > (this.initTime + (this.delay * 1000)))))){ this.initTime = ((_curTime - ((((1 - this.progress) * this.duration) * 1000) / _timeScale)) - (this.delay * 1000)); if (_pauseTime == -1){ this.startTime = (this.initTime + (this.delay * 1000)); }; }; resume(); } public function set paused(_arg1:Boolean):void{ if (_arg1){ this.pause(); } else { this.resume(); }; } protected function onUpdateDispatcher(... _args):void{ if (_callbacks.onUpdate != null){ _callbacks.onUpdate.apply(null, this.vars.onUpdateParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.UPDATE)); } public function hasEventListener(_arg1:String):Boolean{ if (_dispatcher == null){ return (false); }; return (_dispatcher.hasEventListener(_arg1)); } public function pause():void{ if (_pauseTime == -1){ _pauseTime = _curTime; this.startTime = 99999999999; _active = false; }; } public function reverseEase(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (_originalEase((_arg4 - _arg1), _arg2, _arg3, _arg4)); } protected function onCompleteDispatcher(... _args):void{ if (_callbacks.onComplete != null){ _callbacks.onComplete.apply(null, this.vars.onCompleteParams); }; _dispatcher.dispatchEvent(new TweenEvent(TweenEvent.COMPLETE)); } public static function sequence(_arg1:Object, _arg2:Array):Array{ var _local3:uint; _local3 = 0; while (_local3 < _arg2.length) { _arg2[_local3].target = _arg1; _local3++; }; return (multiSequence(_arg2)); } public static function hexColorsProxy(_arg1:Object):void{ _arg1.info.target[_arg1.info.prop] = uint((((_arg1.target.r << 16) | (_arg1.target.g << 8)) | _arg1.target.b)); } public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{ var _local3:int; var _local4:Array; var _local5:Object; var _local6:String; var _local7:Object; _local7 = {}; if (_arg2){ for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 2){ _local5[_local5.length] = {s:_local4[0], cp:(_local4[1] - ((_local4[2] - _local4[0]) / 4)), e:_local4[1]}; _local3 = 1; while (_local3 < (_local4.length - 1)) { _local5[_local5.length] = {s:_local4[_local3], cp:(_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)].cp)), e:_local4[(_local3 + 1)]}; _local3++; }; } else { _local5[_local5.length] = {s:_local4[0], cp:((_local4[0] + _local4[1]) / 2), e:_local4[1]}; }; }; } else { for (_local6 in _arg1) { _local4 = _arg1[_local6]; _local5 = []; _local7[_local6] = _local5; if (_local4.length > 3){ _local5[_local5.length] = {s:_local4[0], cp:_local4[1], e:((_local4[1] + _local4[2]) / 2)}; _local3 = 2; while (_local3 < (_local4.length - 2)) { _local5.push({s:_local5[(_local3 - 2)].e, cp:_local4[_local3], e:((_local4[_local3] + _local4[(_local3 + 1)]) / 2)}); _local3++; }; _local5[_local5.length] = {s:_local5[(_local5.length - 1)].e, cp:_local4[(_local4.length - 2)], e:_local4[(_local4.length - 1)]}; } else { if (_local4.length == 3){ _local5[_local5.length] = {s:_local4[0], cp:_local4[1], e:_local4[2]}; } else { if (_local4.length == 2){ _local5[_local5.length] = {s:_local4[0], cp:((_local4[0] + _local4[1]) / 2), e:_local4[1]}; }; }; }; }; }; return (_local7); } public static function bezierProxy2(_arg1:Object):void{ var _local2:Object; var _local3:Object; var _local4:Array; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Array; var _local9:Number; var _local10:uint; bezierProxy(_arg1); _local2 = {}; _local3 = _arg1.info.target; _arg1.info.target = _local2; _arg1.target.t = (_arg1.target.t + 0.01); bezierProxy(_arg1); _local4 = _arg1.info.orientToBezier; _local10 = 0; while (_local10 < _local4.length) { _local8 = _local4[_local10]; _local9 = ((_local8[3]) || (0)); _local6 = (_local2[_local8[0]] - _local3[_local8[0]]); _local7 = (_local2[_local8[1]] - _local3[_local8[1]]); _local3[_local8[2]] = ((Math.atan2(_local7, _local6) * _RAD2DEG) + _local9); _local10++; }; _arg1.info.target = _local3; _arg1.target.t = (_arg1.target.t - 0.01); } public static function pauseAll(_arg1:Boolean=true, _arg2:Boolean=false):void{ changePause(true, _arg1, _arg2); } public static function getTweensOf(_arg1:Object):Array{ var _local2:Dictionary; var _local3:Array; var _local4:Object; _local2 = _all[_arg1]; _local3 = []; if (_local2 != null){ for (_local4 in _local2) { if (_local2[_local4].tweens != undefined){ _local3[_local3.length] = _local2[_local4]; }; }; }; return (_local3); } public static function multiSequence(_arg1:Array):Array{ var _local2:Dictionary; var _local3:Array; var _local4:int; var _local5:Number; var _local6:Object; var _local7:Object; var _local8:Number; var _local9:Number; var _local10:uint; var _local11:Object; var _local12:String; _local2 = new Dictionary(); _local3 = []; _local4 = TweenLite.overwriteManager.mode; _local5 = 0; _local10 = 0; while (_local10 < _arg1.length) { _local6 = _arg1[_local10]; _local9 = ((_local6.time) || (0)); _local11 = {}; for (_local12 in _local6) { _local11[_local12] = _local6[_local12]; }; delete _local11.time; _local8 = ((_local11.delay) || (0)); _local11.delay = (_local5 + _local8); _local7 = _local11.target; delete _local11.target; if (_local4 == 1){ if (_local2[_local7] == undefined){ _local2[_local7] = _local11; } else { _local11.overwrite = 2; }; }; _local3[_local3.length] = new TweenMax(_local7, _local9, _local11); _local5 = (_local5 + (_local9 + _local8)); _local10++; }; return (_local3); } public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null):TweenMax{ return (new TweenMax(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, overwrite:0})); } public static function isTweening(_arg1:Object):Boolean{ var _local2:Array; var _local3:int; _local2 = getTweensOf(_arg1); _local3 = (_local2.length - 1); while (_local3 > -1) { if (_local2[_local3].active){ return (true); }; _local3--; }; return (false); } public static function killAll(_arg1:Boolean=false, _arg2:Boolean=true, _arg3:Boolean=true):void{ var _local4:Array; var _local5:int; _local4 = getAllTweens(); _local5 = (_local4.length - 1); while (_local5 > -1) { if (((((_local4[_local5].target is Function) == _arg3)) || (!(((_local4[_local5].target is Function) == _arg2))))){ if (_arg1){ _local4[_local5].complete(); } else { TweenLite.removeTween(_local4[_local5]); }; }; _local5--; }; } public static function changePause(_arg1:Boolean, _arg2:Boolean=true, _arg3:Boolean=false):void{ var _local4:Array; var _local5:int; _local4 = getAllTweens(); _local5 = (_local4.length - 1); while (_local5 > -1) { if ((((_local4[_local5] is TweenMax)) && (((((_local4[_local5].target is Function) == _arg3)) || (!(((_local4[_local5].target is Function) == _arg2))))))){ _local4[_local5].paused = _arg1; }; _local5--; }; } public static function bezierProxy(_arg1:Object):void{ var _local2:Number; var _local3:Object; var _local4:Object; var _local5:int; var _local6:String; var _local7:Object; var _local8:Number; var _local9:uint; _local2 = _arg1.target.t; _local3 = _arg1.info.props; _local4 = _arg1.info.target; if (_local2 == 1){ for (_local6 in _local3) { _local5 = (_local3[_local6].length - 1); _local4[_local6] = _local3[_local6][_local5].e; }; } else { for (_local6 in _local3) { _local9 = _local3[_local6].length; if (_local2 < 0){ _local5 = 0; } else { if (_local2 >= 1){ _local5 = (_local9 - 1); } else { _local5 = int((_local9 * _local2)); }; }; _local8 = ((_local2 - (_local5 * (1 / _local9))) * _local9); _local7 = _local3[_local6][_local5]; _local4[_local6] = (_local7.s + (_local8 * (((2 * (1 - _local8)) * (_local7.cp - _local7.s)) + (_local8 * (_local7.e - _local7.s))))); }; }; } public static function callbackProxy(_arg1:Array, _arg2:Array=null):void{ var _local3:uint; _local3 = 0; while (_local3 < _arg1.length) { if (_arg1[_local3] != undefined){ _arg1[_local3].apply(null, _arg2[_local3]); }; _local3++; }; } public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object):Array{ _arg3.runBackwards = true; return (allTo(_arg1, _arg2, _arg3)); } public static function killAllDelayedCalls(_arg1:Boolean=false):void{ killAll(_arg1, false, true); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ _arg3.runBackwards = true; return (new TweenMax(_arg1, _arg2, _arg3)); } public static function killAllTweens(_arg1:Boolean=false):void{ killAll(_arg1, true, false); } public static function getAllTweens():Array{ var _local1:Dictionary; var _local2:Array; var _local3:Object; var _local4:Object; _local1 = _all; _local2 = []; for (_local3 in _local1) { for (_local4 in _local1[_local3]) { if (_local1[_local3][_local4] != undefined){ _local2[_local2.length] = _local1[_local3][_local4]; }; }; }; return (_local2); } public static function resumeAll(_arg1:Boolean=true, _arg2:Boolean=false):void{ changePause(false, _arg1, _arg2); } public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{ return (new TweenMax(_arg1, _arg2, _arg3)); } public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object):Array{ var _local4:int; var _local5:Object; var _local6:String; var _local7:Number; var _local8:Object; var _local9:Array; var _local10:Number; if (_arg1.length == 0){ return ([]); }; _local9 = []; _local10 = ((_arg3.delayIncrement) || (0)); delete _arg3.delayIncrement; if (_arg3.onCompleteAll == undefined){ _local8 = _arg3; } else { _local8 = {}; for (_local6 in _arg3) { _local8[_local6] = _arg3[_local6]; }; _local8.onCompleteParams = [[_arg3.onComplete, _arg3.onCompleteAll], [_arg3.onCompleteParams, _arg3.onCompleteAllParams]]; _local8.onComplete = TweenMax.callbackProxy; delete _arg3.onCompleteAll; }; delete _arg3.onCompleteAllParams; if (_local10 == 0){ _local4 = 0; while (_local4 < (_arg1.length - 1)) { _local5 = {}; for (_local6 in _arg3) { _local5[_local6] = _arg3[_local6]; }; _local9[_local9.length] = new TweenMax(_arg1[_local4], _arg2, _local5); _local4++; }; } else { _local7 = ((_arg3.delay) || (0)); _local4 = 0; while (_local4 < (_arg1.length - 1)) { _local5 = {}; for (_local6 in _arg3) { _local5[_local6] = _arg3[_local6]; }; _local5.delay = (_local7 + (_local4 * _local10)); _local9[_local9.length] = new TweenMax(_arg1[_local4], _arg2, _local5); _local4++; }; _local8.delay = (_local7 + ((_arg1.length - 1) * _local10)); }; _local9[_local9.length] = new TweenMax(_arg1[(_arg1.length - 1)], _arg2, _local8); if ((_arg3.onCompleteAllListener is Function)){ _local9[(_local9.length - 1)].addEventListener(TweenEvent.COMPLETE, _arg3.onCompleteAllListener); }; return (_local9); } } }//package gs
Section 30
//audience (audience) package { import flash.display.*; public dynamic class audience extends MovieClip { public function audience(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 31
//audienceMask (audienceMask) package { import flash.display.*; public dynamic class audienceMask extends MovieClip { } }//package
Section 32
//bonus1 (bonus1) package { import flash.display.*; public dynamic class bonus1 extends MovieClip { } }//package
Section 33
//bonus2 (bonus2) package { import flash.display.*; import flash.text.*; public dynamic class bonus2 extends MovieClip { public var bonusName:TextField; } }//package
Section 34
//bonus3 (bonus3) package { import flash.display.*; public dynamic class bonus3 extends MovieClip { } }//package
Section 35
//bottomLinks (bottomLinks) package { import flash.display.*; public dynamic class bottomLinks extends MovieClip { public var visitBoxWish_btn:SimpleButton; public var koko_btn:SimpleButton; } }//package
Section 36
//boxWishIntro (boxWishIntro) package { import flash.display.*; public dynamic class boxWishIntro extends MovieClip { public var visitBoxWish_btn:SimpleButton; } }//package
Section 37
//cinema (cinema) package { import flash.display.*; public dynamic class cinema extends MovieClip { } }//package
Section 38
//darkFade (darkFade) package { import flash.display.*; public dynamic class darkFade extends MovieClip { } }//package
Section 39
//duplicateLevel (duplicateLevel) package { import flash.display.*; import flash.text.*; public dynamic class duplicateLevel extends MovieClip { public var productText1:TextField; public var hard_btn:SimpleButton; public var visitBoxWish_btn:SimpleButton; public var difficultyText:TextField; public var medium_btn:SimpleButton; public var easy_btn:SimpleButton; public var productText:TextField; public var productText2:TextField; } }//package
Section 40
//flick_snd (flick_snd) package { import flash.media.*; public dynamic class flick_snd extends Sound { } }//package
Section 41
//GameEngine (GameEngine) package { import gs.*; import flash.events.*; import flash.utils.*; import flash.net.*; import console.trackers.*; import flash.display.*; import fl.transitions.easing.*; import console.math.*; import gs.easing.*; import console.loaders.*; import fl.transitions.*; import console.parsers.*; import flash.media.*; import flash.text.*; import flash.system.*; import flash.ui.*; public class GameEngine extends MovieClip { private const _powerOffset = 5; private const _minMousePower:uint = 50; private const _startX:uint = 204; private const _startY:uint = 570; private const _projectionHeightOfset = 10; private const _maxMousePower:uint = 360; private const _strMailURL = "http://boxwish.viral-game.co.uk/mail.php"; private const _strURL = "http://boxwish.viral-game.co.uk/data.php"; private var _retries;// = 3 private var _mainMenu; private var _boxWishLogo; private var _xMouse:Number; private var _selectDifficulty; private var _pythag; private var _muteButton; private var _targetAim:uint;// = 1 private var _row11:Array; private var _row12:Array; private var _row13:Array; private var _row14:Array; private var _row15:Array; private var _row16:Array; private var _autoAmount;// = 10 private var _productArray:Array; private var _row10:Array; private var _productURLS:Array; private var _sendData; private var _popcornScaleDec;// = 0.025 private var _audienceArray; private var _yMouse:Number; private var _startTime; private var _previousPoints; private var _musicIntro; private var _token; private var _mousePower:Number; private var _levelOver:Boolean;// = false private var _targetFill_mc; private var _musicChannel:SoundChannel; private var _hitSFX; private var _popcornScale;// = 1 private var _submit; private var _gameOver:Boolean;// = false private var _difficulty:String;// = "medium" private var _levelText; private var _tempArray; private var _target_mc; private var _screen; private var _blackFade; private var _timeDiff:Number; private var _flickSFX; private var _autoFire:Boolean;// = false private var _homingPopcorn:Boolean;// = false private var _points:uint;// = 0 private var _popcornCurveX:Number; private var _popcornCurveY:Number; private var _popcornEndX:Number; private var _popcornEndY:Number; private var _musicStinger; private var _level1; private var _level4; private var _level5; private var _level7; private var _level8; private var _level9; private var _level3; private var _sfxChannel:SoundChannel; private var _level2; private var _level6; private var _row0:Array; private var _row1:Array; private var _row2:Array; private var _row3:Array; private var _targetCollected:uint;// = 0 private var _row5:Array; private var _row6:Array; private var _row7:Array; private var _row9:Array; private var _row4:Array; private var _row8:Array; private var _fullVol:SoundTransform; public var request:URLRequest; private var _midVol:SoundTransform; public var percentage:TextField; private var _bottomLinks; private var _mousePowerStart:Number; private var _travelTime;// = 0 private var _projectionHeight:Number;// = 0 private var _muteVol:SoundTransform; private var _background; private var _allowDifficultyClick:Boolean;// = false private var _mute;// = 1 private var _levelFailed:Boolean;// = false private var _lambchop; private var _homingAmount:int;// = 0 private var _rowMaskProperties:Array; private var _secsAllowed:uint;// = 60 private var _showProjection:Boolean;// = false private var _travelTimeInc;// = 0.05 private var _mousePowerEnd:Number; private var _level10; private var _bassChannel:SoundChannel; private var _currentLevel:uint;// = 0 private var _xmlPass:ParseXML; private var _productURL:uint; private var _allowFire:Boolean;// = false private var _laughSFX; private var _levelAudience:uint;// = 30 private var _autoFireTimer:Timer; private var _musicTrack:String;// = "intro" private var _multiPopcorn:Boolean;// = false private var _musicVolume;// = 1 private var _musicMain; public function GameEngine():void{ _projectionHeight = 0; _showProjection = false; _travelTimeInc = 0.05; _travelTime = 0; _popcornScale = 1; _popcornScaleDec = 0.025; _pythag = new Pythag(); _target_mc = new target(); _targetFill_mc = new targetFill(); _sendData = new SendReceiveData(); _xmlPass = new ParseXML(); _lambchop = new lambchop(); _currentLevel = 0; _difficulty = "medium"; _targetAim = 1; _targetCollected = 0; _levelAudience = 30; _secsAllowed = 60; _points = 0; _previousPoints = _points; _gameOver = false; _levelOver = false; _levelFailed = false; _allowFire = false; _levelText = new levelText(); _selectDifficulty = new duplicateLevel(); _boxWishLogo = new boxWishIntro(); _allowDifficultyClick = false; _blackFade = new darkFade(); _screen = new movieScreen(); _submit = new submitScore(); _mainMenu = new mainMenu(); _background = new cinema(); _bottomLinks = new bottomLinks(); _startTime = getTimer(); _retries = 3; _homingPopcorn = false; _homingAmount = 0; _autoAmount = 10; _autoFire = false; _multiPopcorn = false; _rowMaskProperties = new Array({x:217, y:584, w:1732, h:459}, {x:217, y:523, w:1203, h:319}, {x:220, y:484, w:856, h:227}, {x:220, y:452, w:630, h:167}, {x:220, y:426, w:494, h:131}, {x:220, y:404, w:449, h:119}, {x:220, y:385, w:415, h:110}, {x:220, y:366, w:377, h:100}, {x:220, y:349, w:347, h:92}, {x:220, y:334, w:324, h:86}, {x:220, y:319, w:302, h:80}, {x:220, y:307, w:283, h:75}, {x:220, y:295, w:264, h:70}, {x:220, y:282, w:253, h:67}, {x:220, y:270, w:234, h:62}, {x:220, y:260, w:226, h:60}); _row0 = new Array({x:-151, y:650}, {x:8, y:646}, {x:146, y:653}, {x:299, y:630}, {x:445, y:649}, {x:576, y:632}); _row1 = new Array({x:-33, y:542}, {x:72, y:545}, {x:181, y:544}, {x:268, y:542}, {x:354, y:544}, {x:467, y:533}); _row2 = new Array({x:-40, y:489}, {x:38, y:491}, {x:111, y:493}, {x:183, y:498}, {x:0xFF, y:496}, {x:328, y:497}, {x:404, y:493}, {x:471, y:483}); _row3 = new Array({x:-19, y:450}, {x:39, y:454}, {x:91, y:460}, {x:142, y:462}, {x:195, y:463}, {x:245, y:463}, {x:297, y:462}, {x:350, y:459}, {x:400, y:452}, {x:458, y:445}); _row4 = new Array({x:32, y:427}, {x:76, y:430}, {x:118, y:434}, {x:159, y:435}, {x:200, y:437}, {x:241, y:437}, {x:281, y:436}, {x:324, y:432}, {x:365, y:430}, {x:408, y:424}); _row5 = new Array({x:53, y:403}, {x:91, y:407}, {x:126, y:409}, {x:166, y:412}, {x:204, y:413}, {x:238, y:413}, {x:273, y:412}, {x:311, y:409}, {x:348, y:406}, {x:387, y:401}); _row6 = new Array({x:62, y:381}, {x:99, y:386}, {x:133, y:388}, {x:167, y:391}, {x:204, y:392}, {x:239, y:391}, {x:272, y:391}, {x:306, y:388}, {x:341, y:385}, {x:377, y:382}); _row7 = new Array({x:81, y:365}, {x:110, y:369}, {x:140, y:370}, {x:175, y:373}, {x:204, y:373}, {x:236, y:374}, {x:267, y:371}, {x:295, y:371}, {x:330, y:366}, {x:359, y:364}); _row8 = new Array({x:90, y:348}, {x:119, y:350}, {x:149, y:352}, {x:177, y:354}, {x:208, y:355}, {x:234, y:355}, {x:262, y:354}, {x:294, y:353}, {x:319, y:348}, {x:352, y:346}); _row9 = new Array({x:97, y:332}, {x:129, y:334}, {x:154, y:338}, {x:181, y:340}, {x:207, y:340}, {x:234, y:340}, {x:260, y:338}, {x:288, y:338}, {x:319, y:335}, {x:342, y:331}); _row10 = new Array({x:106, y:318}, {x:131, y:321}, {x:157, y:324}, {x:182, y:324}, {x:206, y:325}, {x:233, y:325}, {x:0x0101, y:324}, {x:283, y:322}, {x:307, y:319}, {x:334, y:318}); _row11 = new Array({x:113, y:305}, {x:138, y:306}, {x:161, y:309}, {x:183, y:311}, {x:208, y:311}, {x:231, y:311}, {x:254, y:311}, {x:278, y:310}, {x:301, y:307}, {x:325, y:304}); _row12 = new Array({x:120, y:293}, {x:144, y:295}, {x:165, y:298}, {x:186, y:298}, {x:209, y:299}, {x:230, y:299}, {x:253, y:298}, {x:276, y:298}, {x:299, y:296}, {x:320, y:293}); _row13 = new Array({x:127, y:280}, {x:146, y:283}, {x:168, y:285}, {x:189, y:286}, {x:210, y:288}, {x:230, y:287}, {x:252, y:286}, {x:273, y:284}, {x:294, y:284}, {x:315, y:281}); _row14 = new Array({x:133, y:269}, {x:152, y:271}, {x:170, y:274}, {x:190, y:275}, {x:211, y:275}, {x:229, y:275}, {x:250, y:275}, {x:270, y:274}, {x:290, y:271}, {x:309, y:270}); _row15 = new Array({x:133, y:269}, {x:152, y:271}, {x:170, y:274}, {x:190, y:275}, {x:211, y:275}, {x:229, y:275}, {x:250, y:275}, {x:270, y:274}, {x:290, y:271}, {x:309, y:270}); _row16 = new Array({x:136, y:259}, {x:155, y:260}, {x:173, y:262}, {x:192, y:263}, {x:210, y:263}, {x:229, y:263}, {x:249, y:263}, {x:267, y:262}, {x:286, y:260}, {x:304, y:258}); _productArray = new Array("WALL-E Rubiks Cube ", "Sex and the City Sandals", "Casino Royale Sunglasses ", "The Dark Knight Batmobile Toy", "Sex and the City Love Letters ", "Star Wars Stormtrooper Helmet", "WALL-E Night Vision Goggles", "Casino Royale Omega Watch", "Harry Potter Pendant", "Forgetting Sarah Marshall Keyboard", "LEGO Millenium Falcon", "Casino Royale Aston Martin", "RocknRolla White Watch", "Star Wars Canvas Print", "Iron Man Telescope", "Juno Hamburger Phone", "Pulp Fiction Wallet", "Sex and the City Crystal Handbag", "Get Smart Swiss Army Knife", "The Dark Knight Batman Costume", "Back to the Future Hover Board", "Wizard of Oz Dress", "I-Robot Black Converse ", "The Dark Knight Speakers", "Game of Death Trainers", "The Dark Knight Joker Costume", "Iron Man Audi R8", "Borat's Green Mankini", "Top Gun Ray-Ban Aviators", "The Dark Knight Biker Jacket"); _productURLS = new Array(827, 136, 1234, 1077, 1246, 1078, 1079, 788, 1122, 965, 824, 1124, 1482, 405, 988, 812, 1180, 796, 895, 112, 1071, 1029, 1390, 1057, 931, 742, 811, 483, 680, 1123); _level1 = {targetAim:1, levelAudience:5, secsAllowed:60, bonusItems:0}; _level2 = {targetAim:3, levelAudience:10, secsAllowed:60, bonusItems:1}; _level3 = {targetAim:6, levelAudience:15, secsAllowed:60, bonusItems:1}; _level4 = {targetAim:8, levelAudience:20, secsAllowed:60, bonusItems:1}; _level5 = {targetAim:10, levelAudience:25, secsAllowed:65, bonusItems:2}; _level6 = {targetAim:12, levelAudience:30, secsAllowed:70, bonusItems:2}; _level7 = {targetAim:14, levelAudience:32, secsAllowed:75, bonusItems:2}; _level8 = {targetAim:16, levelAudience:34, secsAllowed:80, bonusItems:2}; _level9 = {targetAim:18, levelAudience:36, secsAllowed:85, bonusItems:3}; _level10 = {targetAim:20, levelAudience:40, secsAllowed:90, bonusItems:3}; _musicMain = new musicMain_snd(); _musicIntro = new musicIntro_snd(); _musicStinger = new musicStinger_snd(); _flickSFX = new flick_snd(); _laughSFX = new laugh_snd(); _hitSFX = new hit_snd(); _muteVol = new SoundTransform(0, 0); _fullVol = new SoundTransform(1, 0); _midVol = new SoundTransform(0.5, 0); _mute = 1; _muteButton = new mute_btn(); _musicTrack = "intro"; _musicVolume = 1; _tempArray = new Array(); _audienceArray = new Array(); super(); addFrameScript(0, frame1, 1, frame2, 2, frame3, 20, frame21); stage.addEventListener(MouseEvent.MOUSE_DOWN, checkMouseDown); } public function addBonus():void{ TweenMax.to(_screen.time_mc, 0.7, {delay:1, alpha:0, x:289, y:3.5, ease:Sine.easeInOut, onComplete:addBonusContinue}); } public function resetCharArray(_arg1):void{ _audienceArray.splice(0, _audienceArray.length); } public function runLevelStart():void{ if (_currentLevel == 1){ addEventListener(Event.ENTER_FRAME, fadeMusic); _musicTrack = "main"; }; Mouse.hide(); _target_mc.visible = true; _targetFill_mc.visible = true; _levelText.titleText.text = ("LEVEL " + _currentLevel); _levelText.statusText.text = "READY!"; _levelText.targetText.text = (("CLEAR " + _targetAim) + " TARGETS"); _levelText.alpha = 1; TweenMax.to(_selectDifficulty, 1, {alpha:0, onComplete:hideRunLevelStart}); } public function runLevelOver():void{ var _local1:*; var _local2:*; var _local3:*; Mouse.show(); _levelText.visible = true; _local1 = _timeDiff.toFixed(2).toString(); _allowFire = false; _levelText.titleText.text = ("LEVEL " + _currentLevel); _levelText.statusText.text = "CLEAR!"; _levelText.targetText.text = (((_targetCollected + " TARGETS CLEARED WITH ") + _local1) + " SECONDS LEFT"); TweenMax.to(_levelText, 1, {alpha:1, ease:Bounce.easeOut, onComplete:addBonus}); TweenMax.to(_blackFade, 1, {alpha:1}); _local2 = 0; while (_local2 < _audienceArray.length) { _local3 = _audienceArray[_local2].char; TweenMax.to(_local3, 1, {alpha:0, tint:0xFFFFFF, ease:Bounce.easeOut, onComplete:fadeAudience, onCompleteParams:[_local3]}); _local2++; }; resetCharArray(_local3); } public function beginGame():void{ var _local1:*; var _local2:*; _boxWishLogo.alpha = 1; _boxWishLogo.visible = true; _retries = 3; _points = 0; _previousPoints = _points; _currentLevel = 0; _gameOver = false; _levelOver = false; _levelFailed = false; _allowFire = false; stage.addEventListener(MouseEvent.MOUSE_MOVE, trackMouse); stage.addEventListener(MouseEvent.MOUSE_DOWN, startPowerBar); stage.addEventListener(MouseEvent.MOUSE_UP, endPowerBar); addChild(_background); _local1 = new audienceMask(); _local2 = _rowMaskProperties[0]; _local1.x = _local2.x; _local1.y = _local2.y; _local1.width = _local2.w; _local1.height = _local2.h; _blackFade.alpha = 0; addChild(_blackFade); _bottomLinks.x = 12; _bottomLinks.y = 565; addChild(_bottomLinks); _lambchop.x = 100; _lambchop.y = 470; _lambchop.mask = _local1; addChild(_lambchop); _screen.x = 40; _screen.y = 14; addChild(_screen); _boxWishLogo.x = 2; _boxWishLogo.y = 31; _screen.addChild(_boxWishLogo); _levelText.x = 2; _levelText.y = 31; _levelText.alpha = 0; _levelText.visible = false; _screen.addChild(_levelText); _selectDifficulty.x = 2; _selectDifficulty.y = 31; _selectDifficulty.alpha = 0; _selectDifficulty.visible = false; _screen.addChild(_selectDifficulty); _submit.x = 2; _submit.y = 31; _submit.alpha = 0; _submit.buttonText1.text = "MAIN MENU"; _submit.buttonText1.mouseEnabled = false; _submit.buttonText2.text = "HIGH SCORES"; _submit.buttonText2.mouseEnabled = false; _submit.nameText.addEventListener(MouseEvent.CLICK, changeNickName); _submit.visible = false; _screen.addChild(_submit); _targetFill_mc.mouseEnabled = false; _targetFill_mc.scaleX = (_targetFill_mc.scaleY = 0); _targetFill_mc.visible = false; addChild(_targetFill_mc); _target_mc.mouseEnabled = false; _target_mc.mouseChildren = false; _target_mc.scaleX = (_target_mc.scaleY = 0.3); _target_mc.visible = false; addChild(_target_mc); showDifficultySelect(); setChildIndex(_mainMenu, (numChildren - 1)); TweenMax.to(_mainMenu, 1, {alpha:0, onComplete:hideMainMenu2}); TweenMax.to(_blackFade, 1, {alpha:1}); removeChild(_muteButton); addChild(_muteButton); } public function showSendToFriend():void{ hideMainMenuAnimation(); TweenMax.to(_mainMenu.sendToFriend_mc, 1, {delay:0.5, x:31, ease:Back.easeOut}); } public function getToken(_arg1:Event):void{ _token = _arg1.target._token; } public function startLevel():void{ var _local1:*; var _local2:*; var _local3:*; _homingPopcorn = false; _autoFire = false; _multiPopcorn = false; _levelText.visible = false; _selectDifficulty.visible = false; _submit.visible = false; _audienceArray = null; _audienceArray = new Array(); _local1 = 1; while (_local1 < _levelAudience) { _local2 = this[("_level" + _currentLevel)]; _local3 = _local2.bonusItems; if (_local1 >= (_levelAudience - _local3)){ popupAudience(true); } else { popupAudience(false); }; _local1++; }; addAudience(); removeChild(_lambchop); addChild(_lambchop); removeChild(_target_mc); removeChild(_targetFill_mc); addChild(_targetFill_mc); addChild(_target_mc); TweenMax.to(_blackFade, 1, {alpha:0.7}); _allowFire = true; setTime(); } public function setProjection(_arg1, _arg2, _arg3, _arg4, _arg5){ var _local6:*; var _local7:*; var _local8:*; _local6 = _pythag.findAngle(_arg3, _arg4, _arg1, _arg2); _local7 = _pythag.findNewXY(_arg1, _arg2, _local6, _arg5); _popcornEndX = _local7[0]; _popcornEndY = _local7[1]; _local8 = _pythag.findNewXY(_arg1, _arg2, _local6, (_arg5 / 2)); _popcornCurveX = _local8[0]; _popcornCurveY = (_local8[1] - _projectionHeight); } public function beginAutoFire():void{ _autoFire = true; _autoAmount = 30; _autoFireTimer = new Timer(100, _autoAmount); _autoFireTimer.addEventListener(TimerEvent.TIMER, endPowerBar); _autoFireTimer.start(); } public function removePopcorn(_arg1):void{ audienceCollisionDetection(_arg1.x, _arg1.y); removeChild(_arg1); } public function removePointsDisplay(_arg1):void{ removeChild(_arg1); } function frame1(){ Security.loadPolicyFile("http://www.viral-game.co.uk/crossdomain.xml"); Security.loadPolicyFile("http://boxwish.viral-game.co.uk/crossdomain.xml"); Security.allowDomain("*"); MochiBot.track(this, "c8d649b9"); request = new URLRequest("http://www.viralchart.com/tracker.php?media=849&f=F"); request.method = URLRequestMethod.GET; sendToURL(request); this.loaderInfo.addEventListener(Event.OPEN, showPreloader); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, preloader); this.loaderInfo.addEventListener(Event.COMPLETE, showLoadResult); stop(); } public function changeNickName(_arg1:MouseEvent){ _submit.nameText.text = ""; } function frame3(){ _musicTrack = "intro"; playMusic(); showMainMenu(); stop(); } function frame21(){ stop(); } function frame2(){ init(); stop(); } public function preloader(_arg1:ProgressEvent):void{ var _local2:*; var _local3:*; var _local4:int; _local2 = stage.loaderInfo.bytesTotal; _local3 = stage.loaderInfo.bytesLoaded; _local4 = (_local3 * (100 / _local2)); percentage.text = (_local4 + "%"); } public function audienceCollisionDetection(_arg1, _arg2):void{ var _local3:Boolean; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; _local3 = false; _local4 = 0; while (_local4 < _audienceArray.length) { _local5 = _audienceArray[_local4].char; _local6 = ((_local5.width / 4) * 2); _local7 = _local5.height; _local8 = (_local5.height / 3); if ((((((_arg1 < (_local5.x + _local6))) && ((_arg1 > (_local5.x - _local6))))) && (!(_local3)))){ if ((((((_arg2 < (_local5.topY - _local8))) && ((_arg2 > (_local5.topY - _local7))))) && (_local5.shown))){ _sfxChannel = _hitSFX.play(0, 1); _local3 = true; _local9 = 0; switch (_difficulty){ case "easy": _local9 = (_local9 + 250); break; case "medium": _local9 = (_local9 + 500); break; case "hard": _local9 = (_local9 + 750); break; }; _points = (_points + _local9); _screen.score.text = _points; _local10 = new plusPoints(); _local10.x = _local5.x; _local10.y = _local5.y; _local10.points.text = ("+" + _local9); _local11 = (_local5.y - (_local5.height * 2)); TweenMax.to(_local10, 2, {alpha:0, y:_local11, onComplete:removePointsDisplay, onCompleteParams:[_local10]}); addChild(_local10); changeCharArray(_local5); TweenMax.to(_local5, 1, {alpha:0, tint:0xFFFFFF, ease:Bounce.easeOut, onComplete:fadeAudience, onCompleteParams:[_local5]}); if (_local5.bonus){ _lambchop.gotoAndPlay(20); _sfxChannel = _laughSFX.play(0, 1); _targetCollected++; selectRandomBonus(); } else { _targetCollected++; }; _screen.targets.text = (_targetAim - _targetCollected); if (_targetCollected >= _targetAim){ removeEventListener(Event.ENTER_FRAME, countDownTime); _allowFire = false; _levelOver = true; runLevelOver(); }; }; }; _local4++; }; } function xml_display(_arg1:Event):void{ var _local2:XML; var _local3:*; var _local4:*; var _local5:Object; _local2 = _xmlPass._xmlDoc; _local3 = 1; while (_local3 <= _local2.daily_scores.entry.length()) { _local4 = _local2.daily_scores.entry[(_local3 - 1)]; _local5 = new Object(); _local5.pos = _local3; _local5.playerName = _local4.attributes()[0]; _local5.playerScore = _local4.attributes()[1]; _mainMenu.highscores_mc[("name" + _local3)].text = _local5.playerName.toLowerCase(); _mainMenu.highscores_mc[("points" + _local3)].text = _local5.playerScore; _local3++; }; } public function fadeAudience(_arg1):void{ removeChild(_arg1); } public function runFailLevel():void{ var _local1:*; var _local2:*; Mouse.show(); _target_mc.visible = false; _targetFill_mc.visible = false; _levelText.visible = true; _allowFire = false; _levelText.titleText.text = ("LEVEL " + _currentLevel); _levelText.statusText.text = "TIMES UP!"; _levelText.targetText.text = (("YOU HAVE " + _retries) + " RETRIES LEFT"); TweenMax.to(_levelText, 1, {alpha:1, onComplete:showDifficultySelect}); TweenMax.to(_blackFade, 1, {alpha:1}); _local1 = 0; while (_local1 < _audienceArray.length) { _local2 = _audienceArray[_local1].char; TweenMax.to(_local2, 1, {alpha:0, tint:0xFFFFFF, ease:Bounce.easeOut, onComplete:fadeAudience, onCompleteParams:[_local2]}); _local1++; }; _points = _previousPoints; resetCharArray(_local2); } public function countDownTime(_arg1:Event):void{ var _local2:*; var _local3:*; var _local4:*; var _local5:*; _local2 = getTimer(); _local3 = ((_local2 - _startTime) / 10); _timeDiff = (((_secsAllowed * 100) - _local3) / 100); if (_timeDiff < 0){ _retries--; _allowFire = false; _screen.time_mc.time.text = "0.00"; _levelFailed = true; if (_retries == -1){ runFailGame(); } else { runFailLevel(); }; removeEventListener(Event.ENTER_FRAME, countDownTime); } else { _local4 = _timeDiff.toFixed(2); _local5 = _local4.toString(); _screen.time_mc.time.text = _local5; }; } public function animateMainMenu():void{ var _local1:*; gotoAndStop(20); TweenMax.to(_blackFade, 0, {alpha:1}); TweenMax.to(_mainMenu.logo_mc, 1, {alpha:1, ease:Back.easeOut}); TweenMax.to(_mainMenu.playGame_btn, 1, {x:20, ease:Back.easeOut}); TweenMax.to(_mainMenu.howToPlay_btn, 1, {delay:0.2, x:20, ease:Back.easeOut}); TweenMax.to(_mainMenu.highScores_btn, 1, {delay:0.4, x:20, ease:Back.easeOut}); TweenMax.to(_mainMenu.sendToAFriend_btn, 1, {delay:0.6, x:20, ease:Back.easeOut}); TweenMax.to(_mainMenu.visitBoxWish_btn, 1, {delay:0.8, x:20, ease:Back.easeOut}); _local1 = 0; while (_local1 < (numChildren - 2)) { removeChildAt(_local1); _local1++; }; } public function fadeIn(_arg1:Event){ var _local2:SoundTransform; _musicVolume = (_musicVolume + 0.025); _local2 = _musicChannel.soundTransform; if (_musicVolume >= 1){ _musicVolume = 1; removeEventListener(Event.ENTER_FRAME, fadeIn); }; _local2.volume = _musicVolume; _musicChannel.soundTransform = _local2; } public function showMainMenu():void{ Mouse.show(); resetMainMenuButtonPositions(); addChild(_mainMenu); _mainMenu.alpha = 0; addChild(_muteButton); TweenMax.to(_mainMenu, 2, {alpha:1, onComplete:animateMainMenu}); } public function moveCharacter1(_arg1):void{ var _local2:*; _local2 = (Math.random() * 1); TweenMax.to(_arg1, 0.4, {delay:_local2, y:_arg1.topY}); _arg1.shown = true; } public function init(){ _target_mc = new target(); _targetFill_mc = new targetFill(); _lambchop = new lambchop(); _levelText = new levelText(); _selectDifficulty = new duplicateLevel(); _boxWishLogo = new boxWishIntro(); _blackFade = new darkFade(); _screen = new movieScreen(); _submit = new submitScore(); _mainMenu = new mainMenu(); _background = new cinema(); _bottomLinks = new bottomLinks(); _musicMain = new musicMain_snd(); _musicIntro = new musicIntro_snd(); _musicStinger = new musicStinger_snd(); _flickSFX = new flick_snd(); _laughSFX = new laugh_snd(); _hitSFX = new hit_snd(); _muteButton = new mute_btn(); _muteButton.x = 430; _muteButton.y = 14; _muteButton.buttonMode = true; _muteButton.name = "mute_btn"; _muteButton.addEventListener(MouseEvent.MOUSE_DOWN, muteSound); generateToken(); } public function mediumDifficulty(_arg1:Event):void{ if ((((((Math.random() > 0.998)) && (_arg1.target.shown))) || ((((Math.random() > 0.99)) && (!(_arg1.target.shown)))))){ moveCharacter(_arg1.target); }; } public function fadeMusic(_arg1:Event){ var _local2:SoundTransform; _musicVolume = (_musicVolume - 0.025); _local2 = _musicChannel.soundTransform; if (_musicVolume <= 0.15){ _musicChannel.stop(); _musicVolume = 0; removeEventListener(Event.ENTER_FRAME, fadeMusic); playMusic(); }; _local2.volume = _musicVolume; _musicChannel.soundTransform = _local2; } public function showHighScores1():void{ Mouse.show(); resetMainMenuButtonPositions(); addChild(_mainMenu); _mainMenu.alpha = 0; removeChild(_muteButton); addChild(_muteButton); TweenMax.to(_mainMenu, 2, {alpha:1, onComplete:showHighScores}); } public function resetMainMenuButtonPositions():void{ _mainMenu.logo_mc.alpha = 0; _mainMenu.logo_mc.x = -4.5; _mainMenu.logo_mc.y = 70; _mainMenu.playGame_btn.x = -300; _mainMenu.howToPlay_btn.x = -300; _mainMenu.highScores_btn.x = -300; _mainMenu.sendToAFriend_btn.x = -300; _mainMenu.visitBoxWish_btn.x = -300; } public function drawProjectionLine(){ var _local1:Shape; if (_mousePower < _maxMousePower){ _travelTime = (_travelTime + _travelTimeInc); if (_popcornScale > 0){ _popcornScale = (_popcornScale - _popcornScaleDec); }; setProjection(_startX, _startY, _xMouse, _yMouse, _mousePower); if (_showProjection){ _local1 = new Shape(); _local1.graphics.lineStyle(1, 0xFFFFFF); _local1.graphics.moveTo(_startX, _startY); _local1.graphics.curveTo(_popcornCurveX, _popcornCurveY, _popcornEndX, _popcornEndY); if (numChildren > 3){ removeChildAt((numChildren - 1)); }; addChild(_local1); showDifficultySelect(); }; }; } public function controlPowerBar(_arg1:Event):void{ _xMouse = stage.mouseX; _yMouse = stage.mouseY; _mousePowerEnd = getTimer(); _projectionHeight = (_projectionHeight + _projectionHeightOfset); if (_mousePower < _maxMousePower){ _mousePower = ((_mousePowerEnd - _mousePowerStart) / _powerOffset); } else { _mousePower = _maxMousePower; }; _target_mc.power.text = (Math.ceil((Math.round(_mousePower) / 3.6)) + "%"); _targetFill_mc.scaleX = (_targetFill_mc.scaleY = ((_mousePower / _maxMousePower) * 1.5)); drawProjectionLine(); } public function hideMainMenu2():void{ removeChild(_mainMenu); } function xml_progress(_arg1:Event):void{ } function xml_failed(_arg1:Event):void{ } public function showSubmit():void{ _submit.visible = true; TweenMax.to(_submit, 1, {delay:3, alpha:1}); TweenMax.to(_blackFade, 1, {alpha:1}); } public function generateToken(){ var _local1:*; _local1 = new ParseTOKEN(_strURL); _local1.addEventListener(ParseTOKEN.TOKEN_GENERATED, getToken); } public function hideHowToPlay():void{ TweenMax.to(_mainMenu.howToPlay_mc, 1, {x:462, onComplete:animateMainMenu}); } public function showDifficultySelect():void{ TweenMax.to(_blackFade, 1, {alpha:1}); if (!_levelFailed){ _currentLevel++; }; if (_currentLevel != 11){ _selectDifficulty.visible = true; _allowDifficultyClick = true; _selectDifficulty.productText.mouseEnabled = false; _selectDifficulty.productText1.mouseEnabled = false; _selectDifficulty.productText2.mouseEnabled = false; _selectDifficulty.productText.text = _productArray[((_currentLevel - 1) * 3)]; _selectDifficulty.productText1.text = _productArray[(((_currentLevel - 1) * 3) + 1)]; _selectDifficulty.productText2.text = _productArray[(((_currentLevel - 1) * 3) + 2)]; _selectDifficulty.difficultyText.text = (("LEVEL " + _currentLevel) + " - SELECT DIFFICULTY"); TweenMax.to(_selectDifficulty, 1, {delay:3, alpha:1}); } else { runCompleteGame(); }; } public function addAudience():void{ var _local1:*; _audienceArray.sortOn(["row"]); _local1 = (_audienceArray.length - 1); while (_local1 > -1) { _audienceArray[_local1].char.i = _local1; addChild(_audienceArray[_local1].char); moveCharacter1(_audienceArray[_local1].char); _local1--; }; } public function showPreloader(_arg1:Event){ } public function hideRunLevelStart():void{ TweenMax.to(_levelText, 1, {delay:3, alpha:0, onComplete:startLevel}); } public function trackMouse(_arg1:Event):void{ _target_mc.x = (_targetFill_mc.x = stage.mouseX); _target_mc.y = (_targetFill_mc.y = stage.mouseY); } public function showHowToPlay():void{ hideMainMenuAnimation(); TweenMax.to(_mainMenu.howToPlay_mc, 1, {delay:0.5, x:31, ease:Back.easeOut}); } public function setTime():void{ _startTime = getTimer(); removeEventListener(Event.ENTER_FRAME, countDownTime); addEventListener(Event.ENTER_FRAME, countDownTime); } public function moveCharacter(_arg1):void{ if (_arg1.shown){ TweenMax.to(_arg1, 0.6, {y:_arg1.bottomY}); _arg1.shown = false; } else { TweenMax.to(_arg1, 0.6, {y:_arg1.topY}); _arg1.shown = true; }; } public function firePopcorn():void{ var _local1:*; _sfxChannel = _flickSFX.play(0, 1); _local1 = new popcorn(); _local1.x = _startX; _local1.y = _startY; addChild(_local1); TweenMax.to(_local1, _travelTime, {x:_popcornEndX, y:_popcornEndY, bezier:[{x:_popcornCurveX, y:_popcornCurveY}], orientToBezier:true, scaleX:_popcornScale, scaleY:_popcornScale, ease:Sine.easeOut, onComplete:removePopcorn, onCompleteParams:[_local1]}); removeChild(_lambchop); addChild(_lambchop); } public function setHomingPopcornAttributes():void{ var _local1:*; _popcornEndX = stage.mouseX; _popcornEndY = stage.mouseY; _travelTime = 0.7; _popcornScale = 0.3; _projectionHeight = 160; _local1 = _pythag.findHypotenuseLength((stage.mouseX - _startX), (_startY - stage.mouseY)); setProjection(_startX, _startY, stage.mouseX, stage.mouseY, _local1); } public function selectRandomBonus():void{ var _local1:*; var _local2:*; var _local3:*; _local1 = Math.ceil((Math.random() * 3)); _local2 = new bonus1(); _local2.x = 535; _local2.y = 248; TweenMax.to(_local2, 0.25, {x:224, ease:Back.easeOut}); TweenMax.to(_local2, 0.25, {delay:1, x:-100, ease:Back.easeOut}); addChild(_local2); _local3 = new bonus2(); _local3.x = -250; _local3.y = 314; TweenMax.to(_local3, 0.25, {x:224, ease:Back.easeOut}); addChild(_local3); switch (_local1){ case 1: _homingPopcorn = true; _homingAmount = 3; _local3.bonusName.text = "HOMING POPCORN X3"; TweenMax.to(_local3, 0.25, {delay:1, x:710, ease:Back.easeOut}); break; case 2: _multiPopcorn = true; _local3.bonusName.text = "POPCORN SPRAY"; TweenMax.to(_local3, 0.25, {delay:1, x:710, ease:Back.easeOut}); break; case 3: _local3.bonusName.text = "RAPID FLICK"; TweenMax.to(_local3, 0.25, {delay:1, x:710, onComplete:beginAutoFire, ease:Back.easeOut}); break; }; } public function muteSound(_arg1:MouseEvent){ switch (_mute){ case 1: _muteButton.gotoAndStop(20); _mute = 0; break; case 0: _muteButton.gotoAndPlay(1); _mute = 1; break; }; SoundMixer.soundTransform = new SoundTransform(_mute); } public function hideMainMenuAnimation():void{ TweenMax.to(_mainMenu.logo_mc, 0.5, {alpha:0, ease:Sine.easeOut}); TweenMax.to(_mainMenu.playGame_btn, 0.5, {delay:0.1, x:-300, ease:Sine.easeOut}); TweenMax.to(_mainMenu.howToPlay_btn, 0.5, {delay:0.2, x:-300, ease:Sine.easeOut}); TweenMax.to(_mainMenu.highScores_btn, 0.5, {delay:0.3, x:-300, ease:Sine.easeOut}); TweenMax.to(_mainMenu.sendToAFriend_btn, 0.5, {delay:0.4, x:-300, ease:Sine.easeOut}); TweenMax.to(_mainMenu.visitBoxWish_btn, 0.5, {delay:0.5, x:-300, ease:Sine.easeOut}); } public function checkMouseDown(_arg1:MouseEvent):void{ var _local2:URLVariables; var _local3:*; var _local4:*; var _local5:*; _local2 = new URLVariables(); switch (_arg1.target.name){ case "easy_btn": if (_allowDifficultyClick){ _allowDifficultyClick = false; _difficulty = "easy"; setupLevel(); }; break; case "medium_btn": if (_allowDifficultyClick){ _allowDifficultyClick = false; _difficulty = "medium"; setupLevel(); }; break; case "hard_btn": if (_allowDifficultyClick){ _allowDifficultyClick = false; _difficulty = "hard"; setupLevel(); }; break; case "playGame_btn": beginGame(); break; case "viewItem_btn": trace("VIEW ITEM"); navigateToURL(new URLRequest(("http://boxwish.com/spots/view/" + _productURL)), "_blank"); break; case "koko_btn": navigateToURL(new URLRequest("http://www.kokodigital.co.uk"), "_blank"); break; case "visitBoxWish_btn": navigateToURL(new URLRequest("http://www.boxwish.com"), "_blank"); break; case "sendToAFriend_btn": showSendToFriend(); break; case "howToPlay_btn": showHowToPlay(); break; case "backToMainMenu_btn": hideHowToPlay(); hideSendToFriend(); hideHighScores(); break; case "highScores_btn": showHighScores(); break; case "mainMenu1_btn": showMainMenu(); break; case "sendEmail_btn": _local3 = 1; while (_local3 < 6) { _local4 = _mainMenu.sendToFriend_mc[("fe" + _local3)].text; _local5 = _mainMenu.sendToFriend_mc.ye1.text; if (((!((_local5 == ""))) && (!((_local4 == ""))))){ _local2.player_email = _local5; _local2.friend_email = _local4; _sendData.sendData(_strMailURL, _local2); _mainMenu.sendToFriend_mc[("fe" + _local3)].text = ""; _mainMenu.sendToFriend_mc.play(); }; _local3++; }; break; case "submit_btn": if (_submit.nameText.text != ""){ _local2.token = _token; _local2.action = "scores_submit"; _local2.player_name = _submit.nameText.text; _local2.player_score = _points; _sendData.sendData(_strURL, _local2); showHighScores1(); }; }; } public function addBonusContinue():void{ switch (_difficulty){ case "easy": _points = (_points + Math.ceil((_timeDiff * 33))); break; case "medium": _points = (_points + Math.ceil((_timeDiff * 66))); break; case "hard": _points = (_points + Math.ceil((_timeDiff * 100))); break; }; _previousPoints = _points; _screen.score.text = _points; _screen.time_mc.time.text = "0.00"; TweenMax.to(_screen.time_mc, 0.7, {alpha:1, x:172, y:3.5, ease:Sine.easeInOut, onComplete:showDifficultySelect}); } public function endPowerBar(_arg1):void{ var _local2:*; if ((((_target_mc.scaleX > 0.5)) || (_allowFire))){ _xMouse = stage.mouseX; _yMouse = stage.mouseY; _target_mc.tweenScaleX = new Tween(_target_mc, "scaleX", Back.easeInOut, 1.5, 0.3, 0.5, true); _target_mc.tweenScaleY = new Tween(_target_mc, "scaleY", Back.easeInOut, 1.5, 0.3, 0.5, true); _targetFill_mc.tweenScaleX = new Tween(_targetFill_mc, "scaleX", Back.easeInOut, _targetFill_mc.scaleX, 0, (_targetFill_mc.scaleX / 2), true); _targetFill_mc.tweenScaleY = new Tween(_targetFill_mc, "scaleY", Back.easeInOut, _targetFill_mc.scaleY, 0, (_targetFill_mc.scaleY / 2), true); _target_mc.power.text = ""; }; stage.removeEventListener(Event.ENTER_FRAME, controlPowerBar); if (_allowFire){ if (_homingPopcorn){ _homingAmount--; if (_homingAmount == 0){ _homingPopcorn = false; }; setHomingPopcornAttributes(); }; if (_autoFire){ _autoAmount--; setHomingPopcornAttributes(); if (_autoAmount == 0){ _autoFire = false; _autoFireTimer.removeEventListener(TimerEvent.TIMER, endPowerBar); }; }; firePopcorn(); if (_mousePower < 30){ _local2 = new bonus3(); _local2.x = -250; _local2.y = 314; TweenMax.to(_local2, 0.25, {x:224, ease:Back.easeOut}); TweenMax.to(_local2, 0.25, {delay:2, x:600, ease:Back.easeOut}); addChild(_local2); }; if (_multiPopcorn){ _multiPopcorn = false; setProjection(_startX, _startY, (stage.mouseX - 80), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX - 60), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX - 40), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX - 30), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX - 20), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX - 10), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX + 10), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX + 20), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX + 30), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX + 40), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX + 60), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); setProjection(_startX, _startY, (stage.mouseX + 80), stage.mouseY, (_mousePower + (Math.round((Math.random() * 160)) - 80))); firePopcorn(); }; }; } public function popupAudience(_arg1):void{ var _local2:*; var _local3:*; var _local4:uint; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:Boolean; var _local10:Boolean; var _local11:*; _local2 = new audience(); _local3 = new audienceMask(); switch (_difficulty){ case "easy": _local4 = Math.ceil((Math.random() * 7)); break; case "medium": _local4 = (Math.ceil((Math.random() * 7)) + 3); break; case "hard": _local4 = (Math.ceil((Math.random() * 7)) + 7); break; }; _local5 = _rowMaskProperties[_local4]; _local6 = this[("_row" + _local4)]; _local7 = (Math.floor((Math.random() * (_local6.length - 2))) + 1); _local8 = _local6[_local7]; _local9 = true; if (_audienceArray.length > 0){ _local9 = false; }; _local10 = false; while (!(_local9)) { _local11 = 0; while (_local11 < _audienceArray.length) { if ((((_audienceArray[_local11].row == _local4)) && ((_audienceArray[_local11].seat == _local7)))){ _local10 = true; }; _local11++; }; if (_local10){ switch (_difficulty){ case "easy": _local4 = Math.ceil((Math.random() * 7)); break; case "medium": _local4 = (Math.ceil((Math.random() * 7)) + 3); break; case "hard": _local4 = (Math.ceil((Math.random() * 7)) + 7); break; }; _local5 = _rowMaskProperties[_local4]; _local6 = this[("_row" + _local4)]; _local7 = (Math.floor((Math.random() * (_local6.length - 2))) + 1); _local8 = _local6[_local7]; _local10 = false; } else { _local9 = true; }; }; _local3.x = _local5.x; _local3.y = _local5.y; _local3.width = _local5.w; _local3.height = _local5.h; _local2.x = _local8.x; _local2.y = _local8.y; _local2.shown = false; _local2.scaleX = (_local2.scaleY = (_local5.w / _rowMaskProperties[0].w)); _local2.topY = _local2.y; _local2.bottomY = (_local2.y + _local2.height); _local2.y = _local2.bottomY; if (_arg1){ _local2.bonus = true; _local2.gotoAndStop(45); } else { _local2.bonus = false; _local2.gotoAndStop(Math.ceil((Math.random() * 30))); }; _local2.mask = _local3; _audienceArray.push({char:_local2, row:_local4, seat:_local7}); switch (_difficulty){ case "medium": _local2.addEventListener(Event.ENTER_FRAME, mediumDifficulty); break; case "hard": _local2.addEventListener(Event.ENTER_FRAME, hardDifficulty); break; }; } public function changeCharArray(_arg1):void{ var _local2:*; var _local3:*; _local2 = 0; while (_local2 < _audienceArray.length) { if (_arg1 == _audienceArray[_local2].char){ _local3 = _audienceArray.splice(_local2, 1); }; _local2++; }; } public function setTimeLeft():void{ } public function runCompleteGame():void{ var _local1:*; var _local2:*; addEventListener(Event.ENTER_FRAME, fadeMusic); _musicTrack = "intro"; Mouse.show(); _target_mc.visible = false; _targetFill_mc.visible = false; _levelText.visible = true; _allowFire = false; _levelText.titleText.text = "WELL DONE"; _levelText.statusText.text = "GAME COMPLETED"; _levelText.targetText.text = "YOU CAN NOW SUBMIT YOUR SCORE"; TweenMax.to(_levelText, 1, {alpha:1, onComplete:showSubmit}); TweenMax.to(_blackFade, 1, {alpha:1}); _local1 = 0; while (_local1 < _audienceArray.length) { _local2 = _audienceArray[_local1].char; TweenMax.to(_local2, 1, {alpha:0, tint:0xFFFFFF, ease:Bounce.easeOut, onComplete:fadeAudience, onCompleteParams:[_local2]}); _local1++; }; resetCharArray(_local2); } public function hideSendToFriend():void{ TweenMax.to(_mainMenu.sendToFriend_mc, 1, {x:462, onComplete:animateMainMenu}); } public function hardDifficulty(_arg1:Event):void{ if ((((((Math.random() > 0.998)) && (_arg1.target.shown))) || ((((Math.random() > 0.99)) && (!(_arg1.target.shown)))))){ moveCharacter(_arg1.target); }; } public function playSting(){ } public function setupLevel():void{ var _local1:*; Mouse.hide(); resetPoints(); _boxWishLogo.alpha = 0; _boxWishLogo.visible = false; _local1 = this[("_level" + _currentLevel)]; _targetAim = _local1.targetAim; _screen.targets.text = _targetAim; _targetCollected = 0; _levelAudience = _local1.levelAudience; _secsAllowed = _local1.secsAllowed; _screen.time_mc.time.text = (_secsAllowed + ".00"); _gameOver = false; _levelOver = false; _levelFailed = false; switch (_difficulty){ case "easy": _productURL = _productURLS[((_currentLevel - 1) * 3)]; _screen.product_mc.gotoAndStop((((_currentLevel - 1) * 3) + 1)); break; case "medium": _productURL = _productURLS[(((_currentLevel - 1) * 3) + 1)]; _screen.product_mc.gotoAndStop((((_currentLevel - 1) * 3) + 2)); break; case "hard": _productURL = _productURLS[(((_currentLevel - 1) * 3) + 2)]; _screen.product_mc.gotoAndStop((((_currentLevel - 1) * 3) + 3)); break; }; runLevelStart(); } public function resetPoints(){ _screen.level.text = (_currentLevel + " / 10"); _screen.score.text = _points; } public function hideHighScores():void{ TweenMax.to(_mainMenu.highscores_mc, 1, {x:462, onComplete:animateMainMenu}); } public function showHighScores():void{ _xmlPass.addEventListener(ParseXML.XML_LOADED, xml_display); _xmlPass.addEventListener(ParseXML.XML_FAILED, xml_failed); _xmlPass.addEventListener(ParseXML.XML_PROGRESS, xml_progress); _xmlPass.parseURL("http://boxwish.viral-game.co.uk/data.php?action=scores_daily_xml", true); hideMainMenuAnimation(); TweenMax.to(_mainMenu.highscores_mc, 1, {delay:0.5, x:31, ease:Back.easeOut}); } public function startPowerBar(_arg1:MouseEvent):void{ if (_allowFire){ _lambchop.play(); _xMouse = stage.mouseX; _yMouse = stage.mouseY; if (((!(_autoFire)) && (!(_homingPopcorn)))){ _targetFill_mc.scaleX = (_targetFill_mc.scaleY = 0); _target_mc.tweenScaleX = new Tween(_target_mc, "scaleX", Back.easeInOut, 0.5, 1.5, 0.5, true); _target_mc.tweenScaleY = new Tween(_target_mc, "scaleY", Back.easeInOut, 0.5, 1.5, 0.5, true); _projectionHeight = 0; _travelTime = 0; _popcornScale = 1; _mousePower = 0; _mousePowerStart = getTimer(); stage.addEventListener(Event.ENTER_FRAME, controlPowerBar); }; }; } public function playMusic(){ switch (_musicTrack){ case "main": _musicChannel = _musicMain.play(0, 99999); break; case "intro": _musicChannel = _musicIntro.play(0, 999999); break; }; addEventListener(Event.ENTER_FRAME, fadeIn); } public function endGame():void{ removeEventListener(MouseEvent.MOUSE_DOWN, startPowerBar); removeEventListener(MouseEvent.MOUSE_UP, endPowerBar); } public function showLoadResult(_arg1:Event){ gotoAndPlay(2); } public function runFailGame():void{ var _local1:*; var _local2:*; addEventListener(Event.ENTER_FRAME, fadeMusic); _musicTrack = "intro"; Mouse.show(); _target_mc.visible = false; _targetFill_mc.visible = false; _levelText.visible = true; _allowFire = false; _levelText.titleText.text = "GAME OVER"; _levelText.statusText.text = "YOU RAN OUT OF RETRIES"; _levelText.targetText.text = "YOU CAN NOW SUBMIT YOUR SCORE"; TweenMax.to(_levelText, 1, {alpha:1, onComplete:showSubmit}); TweenMax.to(_blackFade, 1, {alpha:1}); _local1 = 0; while (_local1 < _audienceArray.length) { _local2 = _audienceArray[_local1].char; TweenMax.to(_local2, 1, {alpha:0, tint:0xFFFFFF, ease:Bounce.easeOut, onComplete:fadeAudience, onCompleteParams:[_local2]}); _local1++; }; resetCharArray(_local2); } } }//package
Section 42
//hit_snd (hit_snd) package { import flash.media.*; public dynamic class hit_snd extends Sound { } }//package
Section 43
//lambchop (lambchop) package { import flash.display.*; public dynamic class lambchop extends MovieClip { public function lambchop(){ addFrameScript(0, frame1, 16, frame17); } function frame1(){ stop(); } function frame17(){ gotoAndStop(1); } } }//package
Section 44
//laugh_snd (laugh_snd) package { import flash.media.*; public dynamic class laugh_snd extends Sound { } }//package
Section 45
//levelText (levelText) package { import flash.display.*; import flash.text.*; public dynamic class levelText extends MovieClip { public var statusText:TextField; public var targetText:TextField; public var titleText:TextField; } }//package
Section 46
//mainMenu (mainMenu) package { import flash.display.*; public dynamic class mainMenu extends MovieClip { public var playGame_btn:SimpleButton; public var howToPlay_btn:SimpleButton; public var highscores_mc:MovieClip; public var howToPlay_mc:MovieClip; public var sendToFriend_mc:MovieClip; public var visitBoxWish_btn:SimpleButton; public var sendToAFriend_btn:SimpleButton; public var highScores_btn:SimpleButton; public var logo_mc:MovieClip; } }//package
Section 47
//movieScreen (movieScreen) package { import flash.display.*; import flash.text.*; public dynamic class movieScreen extends MovieClip { public var viewItem_btn:SimpleButton; public var targets:TextField; public var time_mc:MovieClip; public var level:TextField; public var score:TextField; public var product_mc:MovieClip; } }//package
Section 48
//musicIntro_snd (musicIntro_snd) package { import flash.media.*; public dynamic class musicIntro_snd extends Sound { } }//package
Section 49
//musicMain_snd (musicMain_snd) package { import flash.media.*; public dynamic class musicMain_snd extends Sound { } }//package
Section 50
//musicStinger_snd (musicStinger_snd) package { import flash.media.*; public dynamic class musicStinger_snd extends Sound { } }//package
Section 51
//mute_btn (mute_btn) package { import flash.display.*; public dynamic class mute_btn extends MovieClip { public function mute_btn(){ addFrameScript(16, frame17, 19, frame20); } function frame17(){ gotoAndPlay(1); } function frame20(){ stop(); } } }//package
Section 52
//plusPoints (plusPoints) package { import flash.display.*; import flash.text.*; public dynamic class plusPoints extends MovieClip { public var points:TextField; } }//package
Section 53
//popcorn (popcorn) package { import flash.display.*; public dynamic class popcorn extends MovieClip { } }//package
Section 54
//submitScore (submitScore) package { import flash.display.*; import flash.text.*; public dynamic class submitScore extends MovieClip { public var nameText:TextField; public var visitBoxWish_btn:SimpleButton; public var buttonText1:TextField; public var buttonText2:TextField; public var mainMenu1_btn:SimpleButton; public var submit_btn:SimpleButton; } }//package
Section 55
//target (target) package { import flash.display.*; import flash.text.*; public dynamic class target extends MovieClip { public var power:TextField; } }//package
Section 56
//targetFill (targetFill) package { import flash.display.*; public dynamic class targetFill extends MovieClip { } }//package

Library Items

Symbol 1 GraphicUsed by:18 19
Symbol 2 GraphicUsed by:18 19
Symbol 3 GraphicUsed by:19
Symbol 4 GraphicUsed by:19
Symbol 5 GraphicUsed by:19
Symbol 6 GraphicUsed by:19
Symbol 7 GraphicUsed by:19
Symbol 8 GraphicUsed by:19
Symbol 9 GraphicUsed by:19
Symbol 10 GraphicUsed by:19
Symbol 11 GraphicUsed by:19
Symbol 12 GraphicUsed by:19
Symbol 13 GraphicUsed by:19
Symbol 14 GraphicUsed by:19
Symbol 15 GraphicUsed by:19
Symbol 16 GraphicUsed by:18 19
Symbol 17 GraphicUsed by:18 19
Symbol 18 MovieClipUses:1 16 2 17Used by:19
Symbol 19 MovieClip {lambchop}Uses:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Symbol 20 GraphicUsed by:Timeline
Symbol 21 FontUsed by:22 23 33 35 134 135 137 138 140 141 143 144 146 147 154 156 157 159 160 163 164 166 167 168 169 170 171 173 175 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 210 253 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 291 294 295 299 301 302 314 316 321 325 346 351 354 357 360 363 366 369 372 375 378 381 384 387 390 393 396 399 402 405 408 411 414 417 420 423 426 429 432 435 437 438 439 440 441 442 444 445 455 464
Symbol 22 EditableTextUses:21Used by:Timeline
Symbol 23 TextUses:21Used by:Timeline
Symbol 24 BitmapUsed by:25 26
Symbol 25 GraphicUses:24Used by:27
Symbol 26 GraphicUses:24Used by:27
Symbol 27 ButtonUses:25 26Used by:32
Symbol 28 BitmapUsed by:29 30
Symbol 29 GraphicUses:28Used by:31
Symbol 30 GraphicUses:28Used by:31
Symbol 31 ButtonUses:29 30Used by:32 290
Symbol 32 MovieClip {bottomLinks}Uses:27 31Used by:472
Symbol 33 TextUses:21Used by:34
Symbol 34 MovieClip {bonus1}Uses:33Used by:472
Symbol 35 EditableTextUses:21Used by:36
Symbol 36 MovieClip {bonus2}Uses:35Used by:472
Symbol 37 GraphicUsed by:290
Symbol 38 GraphicUsed by:133
Symbol 39 GraphicUsed by:133
Symbol 40 GraphicUsed by:133
Symbol 41 GraphicUsed by:133
Symbol 42 GraphicUsed by:133
Symbol 43 GraphicUsed by:133
Symbol 44 GraphicUsed by:133
Symbol 45 GraphicUsed by:133
Symbol 46 GraphicUsed by:133
Symbol 47 GraphicUsed by:133
Symbol 48 GraphicUsed by:133
Symbol 49 GraphicUsed by:133
Symbol 50 GraphicUsed by:133
Symbol 51 GraphicUsed by:133
Symbol 52 GraphicUsed by:133
Symbol 53 GraphicUsed by:133
Symbol 54 GraphicUsed by:133
Symbol 55 GraphicUsed by:133
Symbol 56 GraphicUsed by:133
Symbol 57 GraphicUsed by:133
Symbol 58 GraphicUsed by:133
Symbol 59 GraphicUsed by:133
Symbol 60 GraphicUsed by:133
Symbol 61 GraphicUsed by:133
Symbol 62 GraphicUsed by:133
Symbol 63 GraphicUsed by:133
Symbol 64 GraphicUsed by:133
Symbol 65 GraphicUsed by:133
Symbol 66 GraphicUsed by:133
Symbol 67 GraphicUsed by:133
Symbol 68 GraphicUsed by:133
Symbol 69 GraphicUsed by:133
Symbol 70 GraphicUsed by:133
Symbol 71 GraphicUsed by:133
Symbol 72 GraphicUsed by:133
Symbol 73 GraphicUsed by:133
Symbol 74 GraphicUsed by:133
Symbol 75 GraphicUsed by:133
Symbol 76 GraphicUsed by:133
Symbol 77 GraphicUsed by:133
Symbol 78 GraphicUsed by:133
Symbol 79 GraphicUsed by:133
Symbol 80 GraphicUsed by:133
Symbol 81 GraphicUsed by:133
Symbol 82 GraphicUsed by:133
Symbol 83 GraphicUsed by:133
Symbol 84 GraphicUsed by:133
Symbol 85 GraphicUsed by:133
Symbol 86 GraphicUsed by:133
Symbol 87 GraphicUsed by:133
Symbol 88 GraphicUsed by:133
Symbol 89 GraphicUsed by:133
Symbol 90 GraphicUsed by:133
Symbol 91 GraphicUsed by:133
Symbol 92 GraphicUsed by:133
Symbol 93 GraphicUsed by:133
Symbol 94 GraphicUsed by:133
Symbol 95 GraphicUsed by:133
Symbol 96 GraphicUsed by:133
Symbol 97 GraphicUsed by:133
Symbol 98 GraphicUsed by:133
Symbol 99 GraphicUsed by:133
Symbol 100 GraphicUsed by:133
Symbol 101 GraphicUsed by:133
Symbol 102 GraphicUsed by:133
Symbol 103 GraphicUsed by:133
Symbol 104 GraphicUsed by:133
Symbol 105 GraphicUsed by:133
Symbol 106 GraphicUsed by:133
Symbol 107 GraphicUsed by:133
Symbol 108 GraphicUsed by:133
Symbol 109 GraphicUsed by:133
Symbol 110 GraphicUsed by:133
Symbol 111 GraphicUsed by:133
Symbol 112 GraphicUsed by:133
Symbol 113 GraphicUsed by:133
Symbol 114 GraphicUsed by:133
Symbol 115 GraphicUsed by:133
Symbol 116 GraphicUsed by:133
Symbol 117 GraphicUsed by:133
Symbol 118 GraphicUsed by:133
Symbol 119 GraphicUsed by:133
Symbol 120 GraphicUsed by:133
Symbol 121 GraphicUsed by:133
Symbol 122 GraphicUsed by:133
Symbol 123 GraphicUsed by:133
Symbol 124 GraphicUsed by:133
Symbol 125 GraphicUsed by:133
Symbol 126 GraphicUsed by:133
Symbol 127 GraphicUsed by:133
Symbol 128 GraphicUsed by:133
Symbol 129 GraphicUsed by:133
Symbol 130 GraphicUsed by:133
Symbol 131 GraphicUsed by:133
Symbol 132 GraphicUsed by:133
Symbol 133 MovieClip {boxwish_fla.lamChopMainMenu_8}Uses:38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132Used by:290
Symbol 134 TextUses:21Used by:136
Symbol 135 TextUses:21Used by:136
Symbol 136 ButtonUses:134 135Used by:290
Symbol 137 TextUses:21Used by:139
Symbol 138 TextUses:21Used by:139
Symbol 139 ButtonUses:137 138Used by:290
Symbol 140 TextUses:21Used by:142
Symbol 141 TextUses:21Used by:142
Symbol 142 ButtonUses:140 141Used by:290
Symbol 143 TextUses:21Used by:145
Symbol 144 TextUses:21Used by:145
Symbol 145 ButtonUses:143 144Used by:290
Symbol 146 TextUses:21Used by:148
Symbol 147 TextUses:21Used by:148
Symbol 148 ButtonUses:146 147Used by:290
Symbol 149 BitmapUsed by:150
Symbol 150 GraphicUses:149Used by:151
Symbol 151 MovieClipUses:150Used by:152
Symbol 152 MovieClipUses:151Used by:290
Symbol 153 GraphicUsed by:174 208
Symbol 154 TextUses:21Used by:155
Symbol 155 MovieClipUses:154Used by:174
Symbol 156 TextUses:21Used by:158
Symbol 157 TextUses:21Used by:158
Symbol 158 ButtonUses:156 157Used by:174 208 289
Symbol 159 TextUses:21Used by:162
Symbol 160 TextUses:21Used by:162
Symbol 161 GraphicUsed by:162
Symbol 162 ButtonUses:159 160 161Used by:174
Symbol 163 TextUses:21Used by:174
Symbol 164 TextUses:21Used by:174
Symbol 165 GraphicUsed by:174
Symbol 166 EditableTextUses:21Used by:174
Symbol 167 EditableTextUses:21Used by:174
Symbol 168 EditableTextUses:21Used by:174
Symbol 169 EditableTextUses:21Used by:174
Symbol 170 EditableTextUses:21Used by:174
Symbol 171 EditableTextUses:21Used by:174
Symbol 172 GraphicUsed by:174
Symbol 173 TextUses:21Used by:174
Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16}Uses:153 155 158 162 163 164 165 166 167 168 169 170 171 172 173Used by:290
Symbol 175 TextUses:21Used by:176
Symbol 176 MovieClipUses:175Used by:208
Symbol 177 GraphicUsed by:208
Symbol 178 TextUses:21Used by:208
Symbol 179 EditableTextUses:21Used by:208
Symbol 180 EditableTextUses:21Used by:208
Symbol 181 TextUses:21Used by:208
Symbol 182 EditableTextUses:21Used by:208
Symbol 183 EditableTextUses:21Used by:208
Symbol 184 TextUses:21Used by:208
Symbol 185 EditableTextUses:21Used by:208
Symbol 186 EditableTextUses:21Used by:208
Symbol 187 TextUses:21Used by:208
Symbol 188 EditableTextUses:21Used by:208
Symbol 189 EditableTextUses:21Used by:208
Symbol 190 TextUses:21Used by:208
Symbol 191 EditableTextUses:21Used by:208
Symbol 192 EditableTextUses:21Used by:208
Symbol 193 TextUses:21Used by:208
Symbol 194 EditableTextUses:21Used by:208
Symbol 195 EditableTextUses:21Used by:208
Symbol 196 TextUses:21Used by:208
Symbol 197 EditableTextUses:21Used by:208
Symbol 198 EditableTextUses:21Used by:208
Symbol 199 TextUses:21Used by:208
Symbol 200 EditableTextUses:21Used by:208
Symbol 201 EditableTextUses:21Used by:208
Symbol 202 TextUses:21Used by:208
Symbol 203 EditableTextUses:21Used by:208
Symbol 204 EditableTextUses:21Used by:208
Symbol 205 TextUses:21Used by:208
Symbol 206 EditableTextUses:21Used by:208
Symbol 207 EditableTextUses:21Used by:208
Symbol 208 MovieClip {boxwish_fla.highScoresMC_20}Uses:153 176 158 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207Used by:290
Symbol 209 GraphicUsed by:289
Symbol 210 TextUses:21Used by:211
Symbol 211 MovieClipUses:210Used by:289
Symbol 212 GraphicUsed by:249
Symbol 213 GraphicUsed by:249
Symbol 214 GraphicUsed by:249
Symbol 215 GraphicUsed by:249
Symbol 216 GraphicUsed by:249
Symbol 217 GraphicUsed by:249
Symbol 218 GraphicUsed by:249
Symbol 219 GraphicUsed by:249
Symbol 220 GraphicUsed by:249
Symbol 221 GraphicUsed by:249
Symbol 222 GraphicUsed by:249
Symbol 223 GraphicUsed by:249
Symbol 224 GraphicUsed by:249
Symbol 225 GraphicUsed by:249
Symbol 226 GraphicUsed by:249
Symbol 227 GraphicUsed by:249
Symbol 228 GraphicUsed by:249
Symbol 229 GraphicUsed by:249
Symbol 230 GraphicUsed by:249
Symbol 231 GraphicUsed by:249
Symbol 232 GraphicUsed by:249
Symbol 233 GraphicUsed by:249
Symbol 234 GraphicUsed by:249
Symbol 235 GraphicUsed by:249
Symbol 236 GraphicUsed by:249
Symbol 237 GraphicUsed by:249
Symbol 238 GraphicUsed by:249
Symbol 239 GraphicUsed by:249
Symbol 240 GraphicUsed by:249
Symbol 241 GraphicUsed by:249
Symbol 242 GraphicUsed by:249
Symbol 243 GraphicUsed by:249
Symbol 244 GraphicUsed by:249
Symbol 245 GraphicUsed by:249
Symbol 246 GraphicUsed by:249
Symbol 247 GraphicUsed by:249
Symbol 248 GraphicUsed by:249
Symbol 249 MovieClip {audience}Uses:212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248Used by:289
Symbol 250 FontUsed by:251 284 288 306 310 311 317 322 326 331 332 333 334
Symbol 251 TextUses:250Used by:289
Symbol 252 GraphicUsed by:283
Symbol 253 TextUses:21Used by:283
Symbol 254 GraphicUsed by:255
Symbol 255 MovieClip {targetFill}Uses:254Used by:283
Symbol 256 TextUses:21Used by:283
Symbol 257 TextUses:21Used by:283
Symbol 258 TextUses:21Used by:283
Symbol 259 TextUses:21Used by:283
Symbol 260 TextUses:21Used by:283
Symbol 261 TextUses:21Used by:283
Symbol 262 TextUses:21Used by:283
Symbol 263 TextUses:21Used by:283
Symbol 264 TextUses:21Used by:283
Symbol 265 TextUses:21Used by:283
Symbol 266 TextUses:21Used by:283
Symbol 267 TextUses:21Used by:283
Symbol 268 TextUses:21Used by:283
Symbol 269 TextUses:21Used by:283
Symbol 270 TextUses:21Used by:283
Symbol 271 TextUses:21Used by:283
Symbol 272 TextUses:21Used by:283
Symbol 273 TextUses:21Used by:283
Symbol 274 TextUses:21Used by:283
Symbol 275 TextUses:21Used by:283
Symbol 276 TextUses:21Used by:283
Symbol 277 TextUses:21Used by:283
Symbol 278 TextUses:21Used by:283
Symbol 279 TextUses:21Used by:283
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280Used by:282
Symbol 282 MovieClip {popcorn}Uses:281Used by:283
Symbol 283 MovieClipUses:252 253 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 282Used by:289
Symbol 284 TextUses:250Used by:289
Symbol 285 GraphicUsed by:286
Symbol 286 MovieClipUses:285Used by:289
Symbol 287 FontUsed by:288 306 310 311 331 332 333
Symbol 288 TextUses:250 287Used by:289
Symbol 289 MovieClip {boxwish_fla.howToPlayMenu_22}Uses:209 211 158 249 251 283 284 286 288Used by:290
Symbol 290 MovieClip {mainMenu}Uses:37 133 31 136 139 142 145 148 152 174 208 289Used by:472
Symbol 291 EditableTextUses:21Used by:292
Symbol 292 MovieClip {plusPoints}Uses:291Used by:472
Symbol 293 GraphicUsed by:298 313 335 340
Symbol 294 EditableTextUses:21Used by:298
Symbol 295 EditableTextUses:21Used by:298
Symbol 296 FontUsed by:297 300
Symbol 297 EditableTextUses:296Used by:298
Symbol 298 MovieClip {levelText}Uses:293 294 295 297Used by:472
Symbol 299 TextUses:21Used by:313
Symbol 300 TextUses:296Used by:313
Symbol 301 TextUses:21Used by:304
Symbol 302 TextUses:21Used by:304
Symbol 303 GraphicUsed by:304
Symbol 304 ButtonUses:301 302 303Used by:313
Symbol 305 GraphicUsed by:313
Symbol 306 EditableTextUses:250 287Used by:313
Symbol 307 GraphicUsed by:309
Symbol 308 GraphicUsed by:309
Symbol 309 ButtonUses:307 308Used by:313
Symbol 310 EditableTextUses:250 287Used by:313
Symbol 311 EditableTextUses:250 287Used by:313
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClip {submitScore}Uses:293 299 300 304 305 306 309 310 311 312Used by:472
Symbol 314 EditableTextUses:21Used by:335
Symbol 315 GraphicUsed by:320 324 327
Symbol 316 TextUses:21Used by:320
Symbol 317 TextUses:250Used by:320
Symbol 318 GraphicUsed by:320 324 327
Symbol 319 GraphicUsed by:320
Symbol 320 ButtonUses:315 316 317 318 319Used by:335
Symbol 321 TextUses:21Used by:324
Symbol 322 TextUses:250Used by:324
Symbol 323 GraphicUsed by:324 327
Symbol 324 ButtonUses:315 321 322 318 323Used by:335
Symbol 325 TextUses:21Used by:327
Symbol 326 TextUses:250Used by:327
Symbol 327 ButtonUses:315 325 326 318 323Used by:335
Symbol 328 BitmapUsed by:329
Symbol 329 GraphicUses:328Used by:330
Symbol 330 ButtonUses:329Used by:335
Symbol 331 EditableTextUses:250 287Used by:335
Symbol 332 EditableTextUses:250 287Used by:335
Symbol 333 EditableTextUses:250 287Used by:335
Symbol 334 TextUses:250Used by:335
Symbol 335 MovieClip {duplicateLevel}Uses:293 314 320 324 327 330 331 332 333 334Used by:472
Symbol 336 BitmapUsed by:337 338
Symbol 337 GraphicUses:336Used by:339
Symbol 338 GraphicUses:336Used by:339
Symbol 339 ButtonUses:337 338Used by:340
Symbol 340 MovieClip {boxWishIntro}Uses:293 339Used by:472
Symbol 341 GraphicUsed by:342
Symbol 342 MovieClip {darkFade}Uses:341Used by:472
Symbol 343 GraphicUsed by:451
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:436
Symbol 346 TextUses:21Used by:436
Symbol 347 GraphicUsed by:348
Symbol 348 MovieClipUses:347Used by:436
Symbol 349 BitmapUsed by:350
Symbol 350 GraphicUses:349Used by:436
Symbol 351 TextUses:21Used by:436
Symbol 352 BitmapUsed by:353
Symbol 353 GraphicUses:352Used by:436
Symbol 354 TextUses:21Used by:436
Symbol 355 BitmapUsed by:356
Symbol 356 GraphicUses:355Used by:436
Symbol 357 TextUses:21Used by:436
Symbol 358 BitmapUsed by:359
Symbol 359 GraphicUses:358Used by:436
Symbol 360 TextUses:21Used by:436
Symbol 361 BitmapUsed by:362
Symbol 362 GraphicUses:361Used by:436
Symbol 363 TextUses:21Used by:436
Symbol 364 BitmapUsed by:365
Symbol 365 GraphicUses:364Used by:436
Symbol 366 TextUses:21Used by:436
Symbol 367 BitmapUsed by:368
Symbol 368 GraphicUses:367Used by:436
Symbol 369 TextUses:21Used by:436
Symbol 370 BitmapUsed by:371
Symbol 371 GraphicUses:370Used by:436
Symbol 372 TextUses:21Used by:436
Symbol 373 BitmapUsed by:374
Symbol 374 GraphicUses:373Used by:436
Symbol 375 TextUses:21Used by:436
Symbol 376 BitmapUsed by:377
Symbol 377 GraphicUses:376Used by:436
Symbol 378 TextUses:21Used by:436
Symbol 379 BitmapUsed by:380
Symbol 380 GraphicUses:379Used by:436
Symbol 381 TextUses:21Used by:436
Symbol 382 BitmapUsed by:383
Symbol 383 GraphicUses:382Used by:436
Symbol 384 TextUses:21Used by:436
Symbol 385 BitmapUsed by:386
Symbol 386 GraphicUses:385Used by:436
Symbol 387 TextUses:21Used by:436
Symbol 388 BitmapUsed by:389
Symbol 389 GraphicUses:388Used by:436
Symbol 390 TextUses:21Used by:436
Symbol 391 BitmapUsed by:392
Symbol 392 GraphicUses:391Used by:436
Symbol 393 TextUses:21Used by:436
Symbol 394 BitmapUsed by:395
Symbol 395 GraphicUses:394Used by:436
Symbol 396 TextUses:21Used by:436
Symbol 397 BitmapUsed by:398
Symbol 398 GraphicUses:397Used by:436
Symbol 399 TextUses:21Used by:436
Symbol 400 BitmapUsed by:401
Symbol 401 GraphicUses:400Used by:436
Symbol 402 TextUses:21Used by:436
Symbol 403 BitmapUsed by:404
Symbol 404 GraphicUses:403Used by:436
Symbol 405 TextUses:21Used by:436
Symbol 406 BitmapUsed by:407
Symbol 407 GraphicUses:406Used by:436
Symbol 408 TextUses:21Used by:436
Symbol 409 BitmapUsed by:410
Symbol 410 GraphicUses:409Used by:436
Symbol 411 TextUses:21Used by:436
Symbol 412 BitmapUsed by:413
Symbol 413 GraphicUses:412Used by:436
Symbol 414 TextUses:21Used by:436
Symbol 415 BitmapUsed by:416
Symbol 416 GraphicUses:415Used by:436
Symbol 417 TextUses:21Used by:436
Symbol 418 BitmapUsed by:419
Symbol 419 GraphicUses:418Used by:436
Symbol 420 TextUses:21Used by:436
Symbol 421 BitmapUsed by:422
Symbol 422 GraphicUses:421Used by:436
Symbol 423 TextUses:21Used by:436
Symbol 424 BitmapUsed by:425
Symbol 425 GraphicUses:424Used by:436
Symbol 426 TextUses:21Used by:436
Symbol 427 BitmapUsed by:428
Symbol 428 GraphicUses:427Used by:436
Symbol 429 TextUses:21Used by:436
Symbol 430 BitmapUsed by:431
Symbol 431 GraphicUses:430Used by:436
Symbol 432 TextUses:21Used by:436
Symbol 433 BitmapUsed by:434
Symbol 434 GraphicUses:433Used by:436
Symbol 435 TextUses:21Used by:436
Symbol 436 MovieClip {boxwish_fla.movieSpots_43}Uses:345 346 348 350 351 353 354 356 357 359 360 362 363 365 366 368 369 371 372 374 375 377 378 380 381 383 384 386 387 389 390 392 393 395 396 398 399 401 402 404 405 407 408 410 411 413 414 416 417 419 420 422 423 425 426 428 429 431 432 434 435Used by:451
Symbol 437 EditableTextUses:21Used by:451
Symbol 438 TextUses:21Used by:451
Symbol 439 TextUses:21Used by:451
Symbol 440 EditableTextUses:21Used by:451
Symbol 441 TextUses:21Used by:451
Symbol 442 EditableTextUses:21Used by:443
Symbol 443 MovieClip {boxwish_fla.time_45}Uses:442Used by:451
Symbol 444 TextUses:21Used by:451
Symbol 445 EditableTextUses:21Used by:451
Symbol 446 GraphicUsed by:450
Symbol 447 GraphicUsed by:450
Symbol 448 GraphicUsed by:450
Symbol 449 GraphicUsed by:450
Symbol 450 ButtonUses:446 447 448 449Used by:451
Symbol 451 MovieClip {movieScreen}Uses:343 436 437 438 439 440 441 443 444 445 450Used by:472
Symbol 452 GraphicUsed by:453
Symbol 453 MovieClip {audienceMask}Uses:452Used by:472
Symbol 454 GraphicUsed by:456
Symbol 455 EditableTextUses:21Used by:456
Symbol 456 MovieClip {target}Uses:454 455Used by:472
Symbol 457 GraphicUsed by:458
Symbol 458 MovieClip {cinema}Uses:457Used by:472
Symbol 459 GraphicUsed by:463
Symbol 460 GraphicUsed by:463
Symbol 461 GraphicUsed by:463
Symbol 462 GraphicUsed by:463
Symbol 463 MovieClip {mute_btn}Uses:459 460 461 462Used by:472
Symbol 464 TextUses:21Used by:465
Symbol 465 MovieClip {bonus3}Uses:464Used by:472
Symbol 466 Sound {musicMain_snd}Used by:472
Symbol 467 Sound {musicIntro_snd}Used by:472
Symbol 468 Sound {musicStinger_snd}Used by:472
Symbol 469 Sound {flick_snd}Used by:472
Symbol 470 Sound {hit_snd}Used by:472
Symbol 471 Sound {laugh_snd}Used by:472
Symbol 472 MovieClip {boxwish_fla.spriteHolder_1}Uses:32 34 36 290 292 298 313 335 340 342 451 453 456 458 463 465 466 467 468 469 470 471Used by:Timeline
Symbol 473 GraphicUsed by:Timeline
Symbol 474 GraphicUsed by:490
Symbol 475 GraphicUsed by:482 483
Symbol 476 GraphicUsed by:477
Symbol 477 MovieClipUses:476Used by:482 483
Symbol 478 SoundUsed by:482
Symbol 479 GraphicUsed by:482 483
Symbol 480 GraphicUsed by:481
Symbol 481 MovieClipUses:480Used by:482 483
Symbol 482 MovieClip {boxwish_fla.KokoLeafUp_53}Uses:475 477 478 479 481Used by:490
Symbol 483 MovieClip {boxwish_fla.KokoLeaf_56}Uses:475 477 479 481Used by:490
Symbol 484 GraphicUsed by:490
Symbol 485 FontUsed by:487
Symbol 486 FontUsed by:487
Symbol 487 TextUses:485 486Used by:490
Symbol 488 GraphicUsed by:489
Symbol 489 ButtonUses:488Used by:490
Symbol 490 MovieClip {boxwish_fla.kokoIntro_52}Uses:474 482 483 484 487 489Used by:Timeline

Instance Names

"percentage"Frame 1Symbol 22 EditableText
"koko_btn"Symbol 32 MovieClip {bottomLinks} Frame 1Symbol 27 Button
"visitBoxWish_btn"Symbol 32 MovieClip {bottomLinks} Frame 1Symbol 31 Button
"bonusName"Symbol 36 MovieClip {bonus2} Frame 1Symbol 35 EditableText
"highScores_btn"Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16} Frame 1Symbol 155 MovieClip
"backToMainMenu_btn"Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16} Frame 1Symbol 158 Button
"sendEmail_btn"Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16} Frame 1Symbol 162 Button
"ye1"Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16} Frame 1Symbol 166 EditableText
"fe1"Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16} Frame 1Symbol 167 EditableText
"fe2"Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16} Frame 1Symbol 168 EditableText
"fe3"Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16} Frame 1Symbol 169 EditableText
"fe4"Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16} Frame 1Symbol 170 EditableText
"fe5"Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16} Frame 1Symbol 171 EditableText
"highScores_btn"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 176 MovieClip
"backToMainMenu_btn"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 158 Button
"name1"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 179 EditableText
"points1"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 180 EditableText
"name2"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 182 EditableText
"points2"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 183 EditableText
"name3"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 185 EditableText
"points3"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 186 EditableText
"name4"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 188 EditableText
"points4"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 189 EditableText
"name5"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 191 EditableText
"points5"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 192 EditableText
"name6"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 194 EditableText
"points6"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 195 EditableText
"name7"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 197 EditableText
"points7"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 198 EditableText
"name8"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 200 EditableText
"points8"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 201 EditableText
"name9"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 203 EditableText
"points9"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 204 EditableText
"name10"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 206 EditableText
"points10"Symbol 208 MovieClip {boxwish_fla.highScoresMC_20} Frame 1Symbol 207 EditableText
"highScores_btn"Symbol 289 MovieClip {boxwish_fla.howToPlayMenu_22} Frame 1Symbol 211 MovieClip
"backToMainMenu_btn"Symbol 289 MovieClip {boxwish_fla.howToPlayMenu_22} Frame 1Symbol 158 Button
"visitBoxWish_btn"Symbol 290 MovieClip {mainMenu} Frame 1Symbol 31 Button
"playGame_btn"Symbol 290 MovieClip {mainMenu} Frame 1Symbol 136 Button
"howToPlay_btn"Symbol 290 MovieClip {mainMenu} Frame 1Symbol 139 Button
"highScores_btn"Symbol 290 MovieClip {mainMenu} Frame 1Symbol 142 Button
"visitBoxWish_btn"Symbol 290 MovieClip {mainMenu} Frame 1Symbol 145 Button
"sendToAFriend_btn"Symbol 290 MovieClip {mainMenu} Frame 1Symbol 148 Button
"logo_mc"Symbol 290 MovieClip {mainMenu} Frame 1Symbol 152 MovieClip
"sendToFriend_mc"Symbol 290 MovieClip {mainMenu} Frame 1Symbol 174 MovieClip {boxwish_fla.sendToFriendMC_16}
"highscores_mc"Symbol 290 MovieClip {mainMenu} Frame 1Symbol 208 MovieClip {boxwish_fla.highScoresMC_20}
"howToPlay_mc"Symbol 290 MovieClip {mainMenu} Frame 1Symbol 289 MovieClip {boxwish_fla.howToPlayMenu_22}
"points"Symbol 292 MovieClip {plusPoints} Frame 1Symbol 291 EditableText
"titleText"Symbol 298 MovieClip {levelText} Frame 1Symbol 294 EditableText
"statusText"Symbol 298 MovieClip {levelText} Frame 1Symbol 295 EditableText
"targetText"Symbol 298 MovieClip {levelText} Frame 1Symbol 297 EditableText
"submit_btn"Symbol 313 MovieClip {submitScore} Frame 1Symbol 304 Button
"nameText"Symbol 313 MovieClip {submitScore} Frame 1Symbol 306 EditableText
"mainMenu1_btn"Symbol 313 MovieClip {submitScore} Frame 1Symbol 309 Button
"visitBoxWish_btn"Symbol 313 MovieClip {submitScore} Frame 1Symbol 309 Button
"buttonText1"Symbol 313 MovieClip {submitScore} Frame 1Symbol 310 EditableText
"buttonText2"Symbol 313 MovieClip {submitScore} Frame 1Symbol 311 EditableText
"difficultyText"Symbol 335 MovieClip {duplicateLevel} Frame 1Symbol 314 EditableText
"easy_btn"Symbol 335 MovieClip {duplicateLevel} Frame 1Symbol 320 Button
"medium_btn"Symbol 335 MovieClip {duplicateLevel} Frame 1Symbol 324 Button
"hard_btn"Symbol 335 MovieClip {duplicateLevel} Frame 1Symbol 327 Button
"visitBoxWish_btn"Symbol 335 MovieClip {duplicateLevel} Frame 1Symbol 330 Button
"productText"Symbol 335 MovieClip {duplicateLevel} Frame 1Symbol 331 EditableText
"productText1"Symbol 335 MovieClip {duplicateLevel} Frame 1Symbol 332 EditableText
"productText2"Symbol 335 MovieClip {duplicateLevel} Frame 1Symbol 333 EditableText
"visitBoxWish_btn"Symbol 340 MovieClip {boxWishIntro} Frame 1Symbol 339 Button
"time"Symbol 443 MovieClip {boxwish_fla.time_45} Frame 1Symbol 442 EditableText
"product_mc"Symbol 451 MovieClip {movieScreen} Frame 1Symbol 436 MovieClip {boxwish_fla.movieSpots_43}
"level"Symbol 451 MovieClip {movieScreen} Frame 1Symbol 437 EditableText
"score"Symbol 451 MovieClip {movieScreen} Frame 1Symbol 440 EditableText
"time_mc"Symbol 451 MovieClip {movieScreen} Frame 1Symbol 443 MovieClip {boxwish_fla.time_45}
"targets"Symbol 451 MovieClip {movieScreen} Frame 1Symbol 445 EditableText
"viewItem_btn"Symbol 451 MovieClip {movieScreen} Frame 1Symbol 450 Button
"power"Symbol 456 MovieClip {target} Frame 1Symbol 455 EditableText
"koko_btn"Symbol 490 MovieClip {boxwish_fla.kokoIntro_52} Frame 61Symbol 489 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.

Labels

"eat"Symbol 133 MovieClip {boxwish_fla.lamChopMainMenu_8} Frame 1
"chew"Symbol 133 MovieClip {boxwish_fla.lamChopMainMenu_8} Frame 24
"cry"Symbol 133 MovieClip {boxwish_fla.lamChopMainMenu_8} Frame 35
"laugh"Symbol 133 MovieClip {boxwish_fla.lamChopMainMenu_8} Frame 114
"scare"Symbol 133 MovieClip {boxwish_fla.lamChopMainMenu_8} Frame 151




http://swfchan.com/10/46471/info.shtml
Created: 3/5 -2019 14:57:30 Last modified: 3/5 -2019 14:57:30 Server time: 22/12 -2024 19:51:03