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/27883617?noj=FRM27883617-22DC" width="1" height="1"></div>

magic-towers-solitaire.swf

This is the info page for
Flash #121113

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


Text
© Glowing Eye Games 2008

<p align="right"><font face="Century Schoolbook" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>2010 Glowing Eye Games</b></font></p>

©

<p align="right"><font face="Century Schoolbook" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>2010 Glowing Eye Games</b></font></p>

©

<p align="right"><font face="Century Schoolbook" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>2010 Glowing Eye Games</b></font></p>

©

Click on the next card that is higher
or lower in sequence.
Use the wild card at any time.
Try to win as many rounds as possible
and get the highest score you can.

Director, Designer and Producer:
Mark Klocek
Coding & Art:               _
Special Thanks:
Jennifer Lightfoot, Annabelle Klocek
and many people at Glu and Playfish

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Next
Card

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

Time Bonus:

Score:

Card Run:

Round:

<p align="left"><font face="Augusta" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="left"><font face="Augusta" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="left"><font face="Augusta" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="center"><font face="Augusta" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

0

<p align="left"><font face="Augusta" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="left"><font face="Augusta" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="left"><font face="Augusta" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="left"><font face="Augusta" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="left"><font face="Augusta" size="24" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

Congratulations!

You have a High Score.

Type Your Name:

<p align="center"><font face="Vinque" size="21" color="#b50000" letterSpacing="0.000000" kerning="1">Player</font></p>

<p align="center"><font face="Augusta" size="30" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

<p align="center"><font face="Augusta" size="35" color="#ffffff" letterSpacing="0.000000" kerning="1">0</font></p>

Next
Card

ActionScript [AS3]

Section 1
//LineBlink_MC_8 (_3p_fla.LineBlink_MC_8) package _3p_fla { import flash.display.*; public dynamic class LineBlink_MC_8 extends MovieClip { public function LineBlink_MC_8(){ addFrameScript(23, frame24); } function frame24(){ stop(); } } }//package _3p_fla
Section 2
//LineMoving_MC_7 (_3p_fla.LineMoving_MC_7) package _3p_fla { import flash.display.*; public dynamic class LineMoving_MC_7 extends MovieClip { public function LineMoving_MC_7(){ addFrameScript(15, frame16); } function frame16(){ stop(); } } }//package _3p_fla
Section 3
//mcTimeBonus_23 (_3p_fla.mcTimeBonus_23) package _3p_fla { import flash.display.*; public dynamic class mcTimeBonus_23 extends MovieClip { public var mc:MovieClip; public function mcTimeBonus_23(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package _3p_fla
Section 4
//Part1Appearance_MC_4 (_3p_fla.Part1Appearance_MC_4) package _3p_fla { import flash.display.*; public dynamic class Part1Appearance_MC_4 extends MovieClip { public function Part1Appearance_MC_4(){ addFrameScript(0, frame1, 56, frame57); } function frame1(){ stop(); } function frame57(){ stop(); } } }//package _3p_fla
Section 5
//Part2Appearance_MC_15 (_3p_fla.Part2Appearance_MC_15) package _3p_fla { import flash.display.*; public dynamic class Part2Appearance_MC_15 extends MovieClip { public function Part2Appearance_MC_15(){ addFrameScript(0, frame1, 55, frame56); } function frame1(){ stop(); } function frame56(){ stop(); } } }//package _3p_fla
Section 6
//Part3Appearance_MC_17 (_3p_fla.Part3Appearance_MC_17) package _3p_fla { import flash.display.*; public dynamic class Part3Appearance_MC_17 extends MovieClip { public function Part3Appearance_MC_17(){ addFrameScript(0, frame1, 56, frame57); } function frame1(){ stop(); } function frame57(){ stop(); } } }//package _3p_fla
Section 7
//StarBlinking_MC_12 (_3p_fla.StarBlinking_MC_12) package _3p_fla { import flash.display.*; public dynamic class StarBlinking_MC_12 extends MovieClip { public function StarBlinking_MC_12(){ addFrameScript(23, frame24); } function frame24(){ stop(); } } }//package _3p_fla
Section 8
//TweenLite (gs.TweenLite) package gs { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.geom.*; public class TweenLite { public var duration:Number; public var vars:Object; public var delay:Number; public var startTime:int; public var initTime:int; public var tweens:Array; public var target:Object; protected var _active:Boolean; protected var _subTweens:Array; protected var _hst:Boolean; protected var _hasUpdate:Boolean; protected var _isDisplayObject:Boolean; protected var _initted:Boolean; protected var _timeScale:Number; public static var version:Number = 8.13; public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; public static var defaultEase:Function = TweenLite.easeOut; public static var overwriteManager:Object; protected static var _all:Dictionary = new Dictionary(); protected static var _curTime:uint; private static var _classInitted:Boolean; private static var _sprite:Sprite = new Sprite(); private static var _listening:Boolean; private static var _timer:Timer = new Timer(2000); public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){ 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)); var _local4:int = ((((_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(); this.startTime = _curTime; 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; }; } public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{ var _local3:String; var _local4:int; var _local6:Array; var _local7:ColorTransform; var _local8:ColorTransform; var _local9:Object; var _local5:Object = this.vars; if (_local5.isTV == true){ _local5 = _local5.exposedProps; }; if (((!(_arg1)) && (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; } protected function addSubTween(_arg1:String, _arg2:Function, _arg3:Object, _arg4:Object, _arg5:Object=null):void{ var _local7:String; var _local6:Object = {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 render(_arg1:uint):void{ var _local3:Number; var _local4:Object; var _local5:int; var _local2:Number = ((_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); }; } 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 function killVars(_arg1:Object):void{ if (overwriteManager.enabled){ overwriteManager.killVars(_arg1, this.vars, this.tweens, _subTweens, []); }; } 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 get active():Boolean{ if (_active){ return (true); }; if (((_curTime - this.initTime) / 1000) > this.delay){ _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 static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ return (new TweenLite(_arg1, _arg2, _arg3)); } public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{ _arg3.runBackwards = true; return (new TweenLite(_arg1, _arg2, _arg3)); } 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 executeAll(_arg1:Event=null):void{ var _local3:Dictionary; var _local4:Object; var _local5:Object; var _local2:uint = (_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 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 killGarbage(_arg1:TimerEvent):void{ var _local3:Boolean; var _local4:Object; var _local5:Object; var _local6:Object; var _local2:uint; 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 easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function tintProxy(_arg1:Object):void{ var _local2:Number = _arg1.target.progress; var _local3:Number = (1 - _local2); var _local4:Object = _arg1.info.color; var _local5:Object = _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 frameProxy(_arg1:Object):void{ _arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame)); } public static function volumeProxy(_arg1:Object):void{ _arg1.info.target.soundTransform = _arg1.target; } } }//package gs
Section 9
//MochiAd (mochi.MochiAd) package mochi { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; public class MochiAd { public static function getVersion():String{ return ("2.7"); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var mc = _arg1; var f:Function = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function showPreGameAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var complete:Boolean; var unloaded:Boolean; var sendHostProgress:Boolean; var fn:Function; var r:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }, ad_progress:function (_arg1:Number):void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){ options.ad_started(); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); return; }; clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); var fn:Function = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.x = (w * -0.5); chk.y = (h * -0.5); var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4); if (options.no_progress_bar){ bar.visible = false; delete options.no_progress_bar; } else { bar.x = 10; bar.y = (h - 20); }; var bar_color:Number = options.color; delete options.color; var bar_background:Number = options.background; delete options.background; var bar_outline:Number = options.outline; delete options.outline; var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1); var backing:Object = backing_mc.graphics; backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo((w - 20), 0); backing.lineTo((w - 20), 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2); var inside:Object = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo((w - 20), 0); inside.lineTo((w - 20), 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3); var outline:Object = outline_mc.graphics; outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo((w - 20), 0); outline.lineTo((w - 20), 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; var f:Function = function (_arg1:Event):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); complete = true; if (unloaded){ MochiAd.unload(clip); }; }; clip.loaderInfo.addEventListener(Event.COMPLETE, f); if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; mc.rpcTestFn = function (_arg1:String):Object{ trace(("[MOCHIAD rpcTestFn] " + _arg1)); return (_arg1); }; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; sendHostProgress = false; mc.sendHostLoadProgress = function (_arg1:String):void{ sendHostProgress = true; }; chk["onEnterFrame"] = function ():void{ var _local11:Number; if (((!(this.parent)) || (!(this.parent.parent)))){ delete this["onEnterFrame"]; return; }; var _local1:Object = this.parent.parent.root; var _local2:Object = this.parent._mochiad_ctr; var _local3:Number = (getTimer() - this.started); var _local4:Boolean; var _local5:Number = _local1.loaderInfo.bytesTotal; var _local6:Number = _local1.loaderInfo.bytesLoaded; if (complete){ _local6 = Math.max(1, _local6); _local5 = _local6; }; var _local7:Number = ((100 * _local6) / _local5); var _local8:Number = ((100 * _local3) / chk.ad_msec); var _local9:Object = this._mochiad_bar._inside; var _local10:Number = Math.min(100, Math.min(((_local7) || (0)), _local8)); _local10 = Math.max(this.last_pcnt, _local10); this.last_pcnt = _local10; _local9.scaleX = (_local10 * 0.01); options.ad_progress(_local10); if (sendHostProgress){ clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7}); if (_local7 == 100){ sendHostProgress = false; }; }; if (!chk.showing){ _local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local11 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){ options.ad_failed(); _local4 = true; }; }; }; if (_local3 > chk.ad_msec){ _local4 = true; }; if (((complete) && (_local4))){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function showClickAwayAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{ }, ad_finished:function ():void{ }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; var sendHostProgress:Boolean; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; _local3 = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (this.root == null){ _local3 = true; }; if (_local3){ delete this.onEnterFrame; }; }; doOnEnterFrame(chk); } public static function showInterLevelAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (_local2 > chk.ad_msec){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); MochiAd.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); MochiAd.showInterLevelAd(_arg1); } public static function _allowDomains(_arg1:String):String{ var _local2:String = _arg1.split("/")[2].split(":")[0]; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function load(_arg1:Object):MovieClip{ var clip:Object; var k:String; var server:String; var hostname:String; var lc:LocalConnection; var name:String; var loader:Loader; var g:Function; var req:URLRequest; var v:Object; var options = _arg1; var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!MochiAd._isNetworkAvailable()){ return (null); }; try { if (clip._mochiad_loaded){ return (null); }; } catch(e:Error) { throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; var depth:Number = options.depth; delete options.depth; var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth); var wh:Array = MochiAd._getRes(options, clip); options.res = ((wh[0] + "x") + wh[1]); options.server = (options.server + options.id); delete options.id; clip._mochiad_loaded = true; if (clip.loaderInfo.loaderURL.indexOf("http") == 0){ options.as3_swf = clip.loaderInfo.loaderURL; }; var lv:URLVariables = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; mc.lcName = name; lv.lc = name; lv.st = getTimer(); loader = new Loader(); g = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); MochiAd.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime())); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader.load(req); mc.addChild(loader); mc._mochiad_ctr = loader; return (mc); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (_arg1.origFrameRate != undefined){ _arg1.stage.frameRate = _arg1.origFrameRate; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad._containerLCName != undefined){ _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"}); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; delete _arg1._mochiad_loaded; delete _arg1._mochiad; return (true); } public static function _cleanup(_arg1:Object):void{ var k:String; var lc:LocalConnection; var f:Function; var mc = _arg1; if (("lc" in mc)){ lc = mc.lc; f = function ():void{ try { lc.client = null; lc.close(); } catch(e:Error) { }; }; setTimeout(f, 0); }; var idx:Number = DisplayObjectContainer(mc).numChildren; while (idx > 0) { idx = (idx - 1); DisplayObjectContainer(mc).removeChildAt(idx); }; for (k in mc) { delete mc[k]; }; } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local6:Array; var _local3:Object = _arg2.getBounds(_arg2.root); var _local4:Number = 0; var _local5:Number = 0; if (typeof(_arg1.res) != "undefined"){ _local6 = _arg1.res.split("x"); _local4 = parseFloat(_local6[0]); _local5 = parseFloat(_local6[1]); } else { _local4 = (_local3.xMax - _local3.xMin); _local5 = (_local3.yMax - _local3.yMin); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; if (_local3.clip == undefined){ throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite.")); }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; if (_local3.id == "test"){ trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); }; return (_local3); } public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{ var _local4:Object; var _local5:Object; switch (_arg3.id){ case "setValue": MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value); break; case "getValue": _local4 = MochiAd.getValue(_arg1, _arg3.objectName); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4); break; case "runMethod": _local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5); break; default: trace(("[mochiads rpc] unknown rpc id: " + _arg3.id)); }; } public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return; }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; _arg1[_local4[_local5]] = _arg3; } public static function getValue(_arg1:Object, _arg2:String):Object{ var _local3:Array = _arg2.split("."); var _local4:Number = 0; while (_local4 < (_local3.length - 1)) { if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){ return (undefined); }; _arg1 = _arg1[_local3[_local4]]; _local4++; }; return (_arg1[_local3[_local4]]); } public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return (undefined); }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; if (typeof(_arg1[_local4[_local5]]) == "function"){ return (_arg1[_local4[_local5]].apply(_arg1, _arg3)); }; return (undefined); } public static function adShowing(_arg1:Object):void{ _arg1.origFrameRate = _arg1.stage.frameRate; _arg1.stage.frameRate = 30; } } }//package mochi
Section 10
//MochiScores (mochi.MochiScores) package mochi { import flash.display.*; import flash.text.*; public class MochiScores { public static var onCloseHandler:Object; public static var onErrorHandler:Object; private static var boardID:String; public static function onClose(_arg1:Object=null):void{ if (_arg1 != null){ if (_arg1.error != null){ if (_arg1.error == true){ if (onErrorHandler != null){ if (_arg1.errorCode == null){ _arg1.errorCode = "IOError"; }; onErrorHandler(_arg1.errorCode); MochiServices.doClose(); return; }; }; }; }; onCloseHandler(); MochiServices.doClose(); } public static function setBoardID(_arg1:String):void{ MochiScores.boardID = _arg1; MochiServices.send("scores_setBoardID", {boardID:_arg1}); } public static function showLeaderboard(_arg1:Object=null):void{ var options = _arg1; if (options != null){ if (options.clip != null){ if ((options.clip is Sprite)){ MochiServices.setContainer(options.clip); }; delete options.clip; } else { MochiServices.setContainer(); }; MochiServices.stayOnTop(); if (options.name != null){ if ((options.name is TextField)){ if (options.name.text.length > 0){ options.name = options.name.text; }; }; }; if (options.score != null){ if ((options.score is TextField)){ if (options.score.text.length > 0){ options.score = options.score.text; }; }; }; if (options.onDisplay != null){ options.onDisplay(); } else { if (MochiServices.clip != null){ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; }; } else { options = {}; if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); } else { trace("Warning: Container is not a MovieClip, cannot call default onDisplay."); }; }; if (options.onClose != null){ onCloseHandler = options.onClose; } else { onCloseHandler = function ():void{ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.play(); } else { trace("Warning: Container is not a MovieClip, cannot call default onClose."); }; }; }; if (options.onError != null){ onErrorHandler = options.onError; } else { onErrorHandler = null; }; if (options.boardID == null){ if (MochiScores.boardID != null){ options.boardID = MochiScores.boardID; }; }; MochiServices.send("scores_showLeaderboard", {options:options}, null, onClose); } public static function closeLeaderboard():void{ MochiServices.send("scores_closeLeaderboard"); } public static function getPlayerInfo(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_getPlayerInfo", null, _arg1, _arg2); } public static function submit(_arg1:Number, _arg2:String, _arg3:Object=null, _arg4:Object=null):void{ MochiServices.send("scores_submit", {score:_arg1, name:_arg2}, _arg3, _arg4); } public static function requestList(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_requestList", null, _arg1, _arg2); } public static function scoresArrayToObjects(_arg1:Object):Object{ var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; var _local7:String; var _local8:String; var _local2:Object = {}; for (_local7 in _arg1) { if (typeof(_arg1[_local7]) == "object"){ if (((!((_arg1[_local7].cols == null))) && (!((_arg1[_local7].rows == null))))){ _local2[_local7] = []; _local5 = _arg1[_local7]; _local4 = 0; while (_local4 < _local5.rows.length) { _local6 = {}; _local3 = 0; while (_local3 < _local5.cols.length) { _local6[_local5.cols[_local3]] = _local5.rows[_local4][_local3]; _local3++; }; _local2[_local7].push(_local6); _local4++; }; } else { _local2[_local7] = {}; for (_local8 in _arg1[_local7]) { _local2[_local7][_local8] = _arg1[_local7][_local8]; }; }; } else { _local2[_local7] = _arg1[_local7]; }; }; return (_local2); } } }//package mochi
Section 11
//MochiServices (mochi.MochiServices) package mochi { import flash.display.*; import flash.events.*; import flash.net.*; import flash.utils.*; import flash.system.*; public class MochiServices { private static var _id:String; private static var _container:Object; private static var _clip:MovieClip; private static var _loader:Loader; private static var _timer:Timer; private static var _startTime:Number; private static var _gatewayURL:String = "http://www.mochiads.com/static/lib/services/services.swf"; private static var _swfVersion:String; private static var _listenChannel:LocalConnection; private static var _listenChannelName:String = "__mochiservices"; private static var _sendChannel:LocalConnection; private static var _sendChannelName:String; private static var _rcvChannel:LocalConnection; private static var _rcvChannelName:String; private static var _connecting:Boolean = false; private static var _connected:Boolean = false; public static var onError:Object; public static function get id():String{ return (_id); } public static function get clip():Object{ return (_container); } public static function get childClip():Object{ return (_clip); } public static function getVersion():String{ return ("1.35"); } public static function allowDomains(_arg1:String):String{ var _local2:String; Security.allowDomain("*"); Security.allowInsecureDomain("*"); if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; return (_local2); } public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); _rcvChannelName = _arg1; initComChannels(); }; }; } public static function get connected():Boolean{ return (_connected); } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; if ((clip is DisplayObject)){ if (((!(_connected)) && ((_clip == null)))){ trace("MochiServices Connecting..."); _connecting = true; init(id, clip); }; } else { trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage."); }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function disconnect():void{ if (((_connected) || (_connecting))){ if (_clip != null){ if (_clip.parent != null){ if ((_clip.parent is Sprite)){ Sprite(_clip.parent).removeChild(_clip); _clip = null; }; }; }; _connecting = (_connected = false); flush(true); try { _listenChannel.close(); _rcvChannel.close(); } catch(error:Error) { }; }; if (_timer != null){ try { _timer.stop(); } catch(error:Error) { }; }; } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{ var parent = _arg1; var name = _arg2; var depth = _arg3; var doAdd = _arg4; var mc:MovieClip = new MovieClip(); if (doAdd){ if (((false) && (depth))){ parent.addChildAt(mc, depth); } else { parent.addChild(mc); }; }; try { parent[name] = mc; } catch(e:Error) { throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; mc["_name"] = name; return (mc); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } public static function doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); if (_clip.parent != null){ Sprite(_clip.parent).removeChild(_clip); }; } public static function bringToTop(_arg1:Event):void{ var e = _arg1; if (MochiServices.clip != null){ if (MochiServices.childClip != null){ try { if (MochiServices.clip.numChildren > 1){ MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); }; }; }; } private static function init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{ if (_arg1 != null){ if ((_arg1 is Sprite)){ _container = _arg1; }; }; if (_arg2){ if ((_container is Sprite)){ Sprite(_container).addChild(_clip); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ var id = _arg1; var clip = _arg2; var clipname:String = ("_mochiservices_com_" + id); if (_clip != null){ return (_clip); }; if (!MochiServices.isNetworkAvailable()){ return (null); }; MochiServices.allowDomains(_gatewayURL); _clip = createEmptyMovieClip(clip, clipname, 10336, false); _loader = new Loader(); _timer = new Timer(1000, 0); _startTime = getTimer(); _timer.addEventListener(TimerEvent.TIMER, connectWait); _timer.start(); var f:Function = function (_arg1:Object):void{ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); }; _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); var req:URLRequest = new URLRequest(_gatewayURL); _loader.load(req); _clip.addChild(_loader); _clip._mochiservices_com = _loader; _sendChannel = new LocalConnection(); _clip._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain("*", "localhost"); _rcvChannel.allowInsecureDomain("*", "localhost"); _rcvChannel.client = _clip; _clip._nextcallbackID = 0; _clip._callbacks = {}; listen(); return (_clip); } public static function connectWait(_arg1:TimerEvent):void{ if ((getTimer() - _startTime) > 10000){ if (!_connected){ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); }; _timer.stop(); }; } private static function onStatus(_arg1:StatusEvent):void{ switch (_arg1.level){ case "error": _connected = false; _listenChannel.connect(_listenChannelName); break; }; } private static function listen():void{ _listenChannel = new LocalConnection(); _listenChannel.client = _clip; _clip.handshake = function (_arg1:Object):void{ MochiServices.comChannelName = _arg1.newChannel; }; _listenChannel.allowDomain("*", "localhost"); _listenChannel.allowInsecureDomain("*", "localhost"); _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } private static function initComChannels():void{ if (!_connected){ _sendChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL}); _rcvChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _clip.onReceive = function (_arg1:Object):void{ var methodName:String; var pkg = _arg1; var cb:String = pkg.callbackID; var cblst:Object = this.client._callbacks[cb]; if (!cblst){ return; }; var method:* = cblst.callbackMethod; methodName = ""; var obj:Object = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ methodName = method; if (obj[method] != null){ method = obj[method]; } else { trace((("Error: Method " + method) + " does not exist.")); }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString())); }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { trace(("Error invoking method on object: " + error.toString())); }; }; }; delete this.client._callbacks[cb]; }; _clip.onError = function ():void{ MochiServices.onError("IOError"); }; _rcvChannel.connect(_rcvChannelName); trace("connected!"); _connecting = false; _connected = true; _listenChannel.close(); while (_clip._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _clip._queue.shift()); }; }; } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (_clip != null){ if (_clip._queue != null){ while (_clip._queue.length > 0) { _local2 = _clip._queue.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _clip._callbacks[_local2.callbackID]; }; delete _clip._callbacks[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; }; } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; if (((!((args.options == null))) && (!((args.options.onError == null))))){ args.options.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_connected){ _sendChannel.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); } else { if ((((_clip == null)) || (!(_connecting)))){ onError("NotConnected"); handleError(_arg2, _arg3, _arg4); flush(true); return; }; _clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); }; if (_clip != null){ if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){ _clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4}; _clip._nextcallbackID++; }; }; } public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{ var netup:Boolean; var s:String; var x:String; var req:URLRequest; var loader:Loader; var err:Function; var complete:Function; var setURL:Function; var url = _arg1; var burl = _arg2; var btn = _arg3; var onClick = _arg4; var vars:Object = new Object(); vars["mav"] = getVersion(); vars["swfv"] = "9"; vars["swfurl"] = btn.loaderInfo.loaderURL; vars["fv"] = Capabilities.version; vars["os"] = Capabilities.os; vars["lang"] = Capabilities.language; vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY); s = "?"; var i:Number = 0; for (x in vars) { if (i != 0){ s = (s + "&"); }; i = (i + 1); s = (((s + x) + "=") + escape(vars[x])); }; req = new URLRequest("http://x.mochiads.com/linkping.swf"); loader = new Loader(); err = function (_arg1:Object):void{ netup = false; _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; complete = function (_arg1:Object):void{ netup = true; _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.load(req); setURL = function ():void{ var _local1:String; if (netup){ _local1 = (url + s); } else { _local1 = burl; }; var _local2:DisplayObject = clickMovie(_local1, onClick); btn.addChild(_local2); _local2.scaleX = (0.01 * btn.width); _local2.scaleY = (0.01 * btn.height); }; setTimeout(setURL, 1500); } private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{ var _local4:int; var _local14:Loader; var _local3:Array = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23]; var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3]; var _local6:Array = [0, 64, 0, 0, 0]; var _local7:MovieClip = new MovieClip(); var _local8:LocalConnection = new LocalConnection(); var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().getTime())); _local8 = new LocalConnection(); _local7.lc = _local8; _local7.click = _arg2; _local8.client = _local7; _local8.connect(_local9); var _local10:ByteArray = new ByteArray(); var _local11:ByteArray = new ByteArray(); _local11.endian = Endian.LITTLE_ENDIAN; _local11.writeShort(1); _local11.writeUTFBytes(((_arg1 + " ") + _local9)); _local11.writeByte(0); var _local12:uint = ((_local3.length + _local11.length) + 4); var _local13:uint = (_local12 + 35); _local10.endian = Endian.LITTLE_ENDIAN; _local10.writeUTFBytes("FWS"); _local10.writeByte(8); _local10.writeUnsignedInt(_local13); for each (_local4 in _local5) { _local10.writeByte(_local4); }; _local10.writeUnsignedInt(_local12); _local10.writeByte(136); _local10.writeShort(_local11.length); _local10.writeBytes(_local11); for each (_local4 in _local3) { _local10.writeByte(_local4); }; for each (_local4 in _local6) { _local10.writeByte(_local4); }; _local14 = new Loader(); _local14.loadBytes(_local10); _local7.addChild(_local14); return (_local7); } } }//package mochi
Section 12
//AllPilesRemoved (AllPilesRemoved) package { import flash.media.*; public dynamic class AllPilesRemoved extends Sound { } }//package
Section 13
//BackGround (BackGround) package { import flash.display.*; import flash.text.*; public class BackGround extends MovieClip { public var tfScore:TextField; public var tfCardRun:TextField; public var tfRoundNumber:TextField; public var lastScore:int; public var lastRun:String; public var mcSound:SoundButton; public var mcTimer:TimerClass; public var mcPointsEffect:MovieClip; public var castle_mc:MovieClip; public var tfPointsEffect:TextField; public var btPause:SimpleButton; public var _sbtTakePoints:SimpleButton; public function BackGround(){ score = 0; if (Game.GAME != undefined){ mcTimer.onInitialize(Game.GAME); mcTimer.setEndFunction(Game.GAME.timeOut); }; var _local1:DisplayObjectContainer = (mcPointsEffect.getChildAt(0) as DisplayObjectContainer); tfPointsEffect = (_local1.getChildAt(0) as TextField); invisibleCastle(); } public function invisibleCastle():void{ castle_mc.castle_left.visible = false; castle_mc.castle_center.visible = false; castle_mc.castle_right.visible = false; _sbtTakePoints.visible = false; } public function set score(_arg1:int):void{ if (tfPointsEffect != null){ tfPointsEffect.text = String((_arg1 - score)); }; lastScore = int(tfScore.text); tfScore.text = String(_arg1); if (_arg1 != 0){ mcPointsEffect.gotoAndPlay(1); }; } public function get score():int{ return (int(tfScore.text)); } public function addRunCount(_arg1:int):void{ var _local2:int; if (_arg1 < 0){ _local2 = 0; } else { _local2 = (int(tfCardRun.text) + _arg1); }; lastRun = tfCardRun.text; tfCardRun.text = String(_local2); } public function returnScore():void{ tfScore.text = String(lastScore); tfCardRun.text = lastRun; tfPointsEffect.text = String((lastScore - score)); if (tfPointsEffect.text != "0"){ mcPointsEffect.gotoAndPlay(1); }; } } }//package
Section 14
//btnMenu (btnMenu) package { import flash.display.*; public class btnMenu extends SimpleButton { public function btnMenu(_arg1:DisplayObject=null, _arg2:DisplayObject=null, _arg3:DisplayObject=null, _arg4:DisplayObject=null){ super(_arg1, _arg2, _arg3, _arg4); } } }//package
Section 15
//BtnSponsorBanner (BtnSponsorBanner) package { import flash.display.*; public dynamic class BtnSponsorBanner extends SimpleButton { } }//package
Section 16
//btnUndo (btnUndo) package { import flash.display.*; public class btnUndo extends SimpleButton { public function btnUndo(_arg1:DisplayObject=null, _arg2:DisplayObject=null, _arg3:DisplayObject=null, _arg4:DisplayObject=null){ super(_arg1, _arg2, _arg3, _arg4); } } }//package
Section 17
//ButtonClick (ButtonClick) package { import flash.media.*; public dynamic class ButtonClick extends Sound { } }//package
Section 18
//c1 (c1) package { import flash.display.*; public dynamic class c1 extends MovieClip { public function c1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 19
//c10 (c10) package { import flash.display.*; public dynamic class c10 extends MovieClip { public function c10(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 20
//c11 (c11) package { import flash.display.*; public dynamic class c11 extends MovieClip { } }//package
Section 21
//c12 (c12) package { import flash.display.*; public dynamic class c12 extends MovieClip { } }//package
Section 22
//c13 (c13) package { import flash.display.*; public dynamic class c13 extends MovieClip { } }//package
Section 23
//c2 (c2) package { import flash.display.*; public dynamic class c2 extends MovieClip { public function c2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 24
//c3 (c3) package { import flash.display.*; public dynamic class c3 extends MovieClip { public function c3(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 25
//c4 (c4) package { import flash.display.*; public dynamic class c4 extends MovieClip { public function c4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 26
//c5 (c5) package { import flash.display.*; public dynamic class c5 extends MovieClip { public function c5(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 27
//c6 (c6) package { import flash.display.*; public dynamic class c6 extends MovieClip { public function c6(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 28
//c7 (c7) package { import flash.display.*; public dynamic class c7 extends MovieClip { public function c7(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 29
//c8 (c8) package { import flash.display.*; public dynamic class c8 extends MovieClip { public function c8(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 30
//c9 (c9) package { import flash.display.*; public dynamic class c9 extends MovieClip { public function c9(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 31
//Card (Card) package { import flash.display.*; import flash.events.*; import gs.*; import flash.utils.*; import flash.filters.*; public class Card extends Sprite { public var placement:String; public var placementOld:String; public var placementIndexOld:int; public var depth:int; public var depthOld:int; public var value:int;// = 0 public var posX:int; public var posY:int; public var posOldX:int; public var posOldY:int; public var step:int; public var numRunCnt:Number; public var topPyramid:Boolean; public var active:Boolean; public var back:Boolean; public var isWildCard:Boolean;// = false public var colour:String; public var _c:DisplayObject; public var _b:CardBack; public var numFilter:Number;// = 0 public static var cardHolder:CardHolder; public function Card(_arg1:String){ var _local2:Class = (getDefinitionByName(_arg1) as Class); _c = addChild(new (_local2)); _b = new CardBack(); this.addChild(_c); this.addChild(_b); _c["numFilter"] = 4; name = _arg1; buttonMode = true; _b.mcBugless.addEventListener(MouseEvent.CLICK, releaseCard); _b.mcBugless.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver); _b.mcBugless.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut); } private function onMouseOver(_arg1:MouseEvent):void{ if (active == false){ return; }; if (((!(cardHolder.checkValid(this, cardHolder.arrPack[(cardHolder.arrPack.length - 1)]))) && (!((placement == "drawpile"))))){ return; }; TweenLite.to(_c, 0.15, {numFilter:1, onUpdate:onUpdateTween}); } private function onMouseOut(_arg1:MouseEvent):void{ if (active == false){ return; }; if (((!(cardHolder.checkValid(this, cardHolder.arrPack[(cardHolder.arrPack.length - 1)]))) && (!((placement == "drawpile"))))){ return; }; TweenLite.to(_c, 0.3, {numFilter:0, onUpdate:onUpdateTween}); } private function onUpdateTween():void{ if (active == false){ return; }; this.filters = [new GlowFilter((3355647 * int(active)), _c["numFilter"], 6, 6, (int(active) + 1))]; } public function get _width():Number{ return (_c.width); } public function get _height():Number{ return (_c.height); } private function releaseCard(_arg1):void{ var _local2:int; var _local3:int; if (cardHolder.arrPyramid.length == 0){ return; }; if (!active){ SoundController.sndUnAccessibleCard.play(); return; }; if (isWildCard){ cardHolder.packingCard(this); SoundController.sndWildCard.play(); }; if (((back) && ((placement == "drawpile")))){ turnCard(); Game.GAME._mcBG.addRunCount(-1); cardHolder.packingCard(this); cardHolder.arrDraw.splice((cardHolder.arrDraw.length - 1), 1); if (cardHolder.arrDraw.length > 0){ cardHolder.arrDraw[(cardHolder.arrDraw.length - 1)].active = true; }; numRunCnt = 0; SoundController.sndCardClick.play(); } else { if (((!(back)) && ((placement == "pyramid")))){ if (cardHolder.checkValid(this, cardHolder.arrPack[(cardHolder.arrPack.length - 1)])){ numRunCnt++; if (topPyramid){ }; SoundController.sndCardClick.play(); cardHolder.packingCard(this); Game.GAME._mcBG.addRunCount(1); _local2 = (cardHolder.arrPyramid.length - 1); while (_local2 >= 0) { if (this == cardHolder.arrPyramid[_local2]){ cardHolder.arrPyramid.splice(_local2, 1); this.placementIndexOld = _local2; break; }; _local2--; }; _local3 = (int(Game.GAME._mcBG.tfCardRun.text) * 200); if (topPyramid){ _local3 = (_local3 + 10000); if (this.x < 230){ Game.GAME._mcBG.castle_mc.castle_left.visible = true; Game.GAME._mcBG.castle_mc.castle_left.gotoAndPlay(2); SoundController.sndAllPilesRemoved.play(); if (cardHolder.arrPyramid.length == 0){ cardHolder.mcToCheckAnimation = Game.GAME._mcBG.castle_mc.castle_left; }; } else { if (this.x > 400){ Game.GAME._mcBG.castle_mc.castle_right.visible = true; Game.GAME._mcBG.castle_mc.castle_right.gotoAndPlay(2); SoundController.sndAllPilesRemoved.play(); if (cardHolder.arrPyramid.length == 0){ cardHolder.mcToCheckAnimation = Game.GAME._mcBG.castle_mc.castle_right; }; } else { Game.GAME._mcBG.castle_mc.castle_center.visible = true; Game.GAME._mcBG.castle_mc.castle_center.gotoAndPlay(2); SoundController.sndAllPilesRemoved.play(); if (cardHolder.arrPyramid.length == 0){ cardHolder.mcToCheckAnimation = Game.GAME._mcBG.castle_mc.castle_center; }; }; }; if (cardHolder.arrPyramid.length == 0){ Game.GAME._mcTimer.stopTimer(); }; }; Game.GAME._mcBG.score = (Game.GAME._mcBG.score + _local3); cardHolder.checkActiveCards(); }; }; }; } public function gotoStack():void{ TweenLite.to(this, 0.3, {x:CardHolder.numDrawX, y:CardHolder.numDrawY, onComplete:onReachedPlace}); } public function goBack():void{ TweenLite.to(this, 0.3, {x:this.posX, y:this.posY, onComplete:onReturned}); } private function onReachedPlace():void{ cardHolder.checkNextStep(); this.filters = []; } private function onReturned():void{ this.depth = this.depthOld; if (!isWildCard){ cardHolder.mcCardHolder.setChildIndex(this, this.depth); }; cardHolder.checkActiveCards(); if (this.placement == "drawpile"){ turnCard(); }; } public function turnCard(_arg1:Boolean=true):void{ if (_arg1 == false){ _b.alpha = 1; _c.alpha = 0; back = true; return; }; if (back){ if ((((placement == "pyramid")) && ((cardHolder.disable == false)))){ SoundController.sndTurnCard.play(); }; _c.alpha = 1; _b.alpha = 0; } else { _c.alpha = 0; _b.alpha = 1; }; back = !(back); } public function removeMe():void{ } } }//package
Section 32
//CardBack (CardBack) package { import flash.display.*; public class CardBack extends MovieClip { public var mcBugless:Sprite; } }//package
Section 33
//CardClick (CardClick) package { import flash.media.*; public dynamic class CardClick extends Sound { } }//package
Section 34
//CardHolder (CardHolder) package { import flash.display.*; import flash.events.*; import gs.*; import flash.utils.*; public class CardHolder { private var _Game:Game; public var arrSuit:Array; public var arrDraw:Array; public var arrCards:Array; public var arrPack:Array; public var arrPyramid:Array; public var arrMove:Array; public var mcCardHolder:Sprite; private var lastCard:Card; private var lastDroped:Number;// = 0 private var numCardHeight:int;// = 85 private var numCardWidth:int;// = 60 private var numPyramidX:Number; private var numPyramidY:Number; private var numPyramidXShift:Number; private var numPyramidYShift:Number; private var numDrawCloseShift:Number;// = 12 private var numDrawOpenShift:Number;// = 0 public var wildCard:Card; public var disable:Boolean;// = true public var mcToCheckAnimation:MovieClip; public static var numDrawX:int = 400; public static var numDrawY:int = 370; public function CardHolder(_arg1:Sprite, _arg2:Game){ arrSuit = new Array("c", "d", "h", "s"); arrDraw = new Array(); arrCards = new Array(); arrPack = new Array(); arrPyramid = new Array(); arrMove = new Array(); numPyramidX = (5 + (numCardWidth / 2)); numPyramidY = (25 + (numCardHeight / 2)); numPyramidXShift = (numCardWidth - 2); numPyramidYShift = (numCardHeight / 2); super(); _Game = _arg2; mcToCheckAnimation = null; mcCardHolder = _arg1; Card.cardHolder = this; numPyramidX = (11 + (numCardWidth / 2)); numPyramidY = (105 + (numCardHeight / 2)); numPyramidXShift = (numCardWidth + 2); numPyramidYShift = ((numCardHeight / 2) + 1); createDeck(); shuffleDeck(); arrangeCards(); spreadCard(); } private function spreadCard():void{ mcCardHolder.addEventListener(Event.ENTER_FRAME, dropCard); SoundController.sndNewDeal.play(); disable = true; trace("set disable"); } private function dropCard(_arg1):void{ if (lastDroped == Math.floor(lastDroped)){ arrCards[lastDroped].visible = true; mcCardHolder.setChildIndex(arrCards[lastDroped], lastDroped); if (lastDroped < 51){ TweenLite.from(arrCards[lastDroped], 0.4, {rotation:(Math.random() * 360), x:-100, y:-100}); } else { TweenLite.from(arrCards[lastDroped], 0.4, {rotation:(Math.random() * 360), x:-100, y:-100, onComplete:activateAllElements}); }; }; lastDroped = (lastDroped + 1); if (lastDroped >= 52){ mcCardHolder.removeEventListener(Event.ENTER_FRAME, dropCard); addWildCard(); }; } private function activateAllElements():void{ _Game._mcTimer.startNewCountDown(_Game._nRoundTime); _Game.enableMenu(true); _Game.showNextCardMC(true); disable = false; } private function createDeck():void{ var _local4:int; var _local5:Card; var _local1:int; var _local2 = ""; lastDroped = 0; var _local3 = 1; while (_local3 <= 13) { _local4 = 0; while (_local4 < arrSuit.length) { _local2 = (arrSuit[_local4] + _local3); if (!Game.isPlayAgain){ _local5 = new Card(_local2); mcCardHolder.addChild(_local5); arrCards[_local1] = _local5; } else { _local5 = (arrCards[_local1] as Card); }; _local5.colour = ((((arrSuit[_local4] == "d")) || ((arrSuit[_local4] == "h")))) ? "red" : "black"; if (!Game.isPlayAgain){ _local5.value = _local3; }; _local5.active = false; _local5.topPyramid = false; _local5.depth = 0; _local5.placement = "pack"; _local5.x = numDrawX; _local5.y = numDrawY; _local5.posX = numDrawX; _local5.posY = numDrawY; _local5.step = 0; _local5.back = true; _local5.visible = false; _local1++; _local4++; }; _local3++; }; } private function addWildCard():void{ if (!Game.isPlayAgain){ wildCard = new Card("WildCard"); }; wildCard.isWildCard = true; mcCardHolder.addChild(wildCard); wildCard.value = 0; wildCard.active = true; wildCard.topPyramid = false; wildCard.depth = 0; wildCard.placement = "pack"; wildCard.x = 600; wildCard.y = numDrawY; wildCard.step = 0; wildCard.back = false; wildCard._b.alpha = 0; } private function arrangeCards():void{ var _local6:Card; var _local7:int; var _local8:Card; disable = true; var _local1:int; while (_local1 < 23) { _local6 = arrCards[_local1]; _local6.posX = (((numDrawX - 10) - numCardWidth) - ((23 - _local1) * numDrawCloseShift)); _local6.posY = numDrawY; _local6.placement = "drawpile"; _local6.x = _local6.posX; _local6.y = _local6.posY; arrDraw[_local1] = arrCards[_local1]; _local1++; }; arrDraw[22].active = true; arrCards[23].active = true; arrCards[23].posX = numDrawX; arrCards[23].posY = numDrawY; arrCards[23].placement = "pack"; arrCards[23].turnCard(); arrCards[23].x = arrCards[23].posX; arrCards[23].y = arrCards[23].posY; arrCards[23].depth = 100; arrPack[0] = arrCards[23]; var _local2 = 24; var _local3:int; var _local4:int; var _local5:int; while (_local5 < 4) { _local3 = (numPyramidX + (((3 - _local5) * numPyramidXShift) / 2)); _local7 = 0; while (_local7 < ((_local5 * 3) + 3)) { _local8 = arrCards[_local2]; _local8.posX = ((_local7)==0) ? _local3 : (arrCards[(_local2 - 1)].posX + numPyramidXShift); if (_local5 == 0){ arrCards[_local2].posX = (arrCards[_local2].posX + ((_local7)>0) ? (2 * numPyramidXShift) : 0); arrCards[_local2].topPyramid = true; } else { if (_local5 == 1){ arrCards[_local2].posX = (arrCards[_local2].posX + ((((_local7 > 0)) && (((_local7 % 2) == 0)))) ? numPyramidXShift : 0); }; }; arrCards[_local2].posY = ((_local7)==0) ? (numPyramidY + Math.round((_local5 * numPyramidYShift))) : arrCards[(_local2 - 1)].posY; arrCards[_local2].placement = "pyramid"; if (_local5 == 3){ arrCards[_local2].turnCard(); arrCards[_local2].active = true; }; arrCards[_local2].x = arrCards[_local2].posX; arrCards[_local2].y = arrCards[_local2].posY; arrPyramid[_local4] = arrCards[_local2]; _local4++; var _temp1 = _local2; _local2 = (_local2 + 1); if (_temp1 >= (arrCards.length - 1)){ break; }; _local7++; }; _local5++; }; } private function shuffleDeck():void{ var _local1:Card; var _local2:int; Utils.numRandomSeed = Math.floor((Math.random() * 200)); var _local3:int; while (_local3 < arrCards.length) { _local1 = arrCards[_local3]; _local2 = Utils.getRandomValue(arrCards.length); arrCards[_local3] = arrCards[_local2]; arrCards[_local2] = _local1; arrCards[_local3].depth = _local3; mcCardHolder.swapChildren(arrCards[_local3], arrCards[_local2]); arrCards[_local2].depth = _local2; _local3++; }; } public function checkActiveCards(_arg1:MovieClip=null):void{ var _local2:Boolean; var _local4:int; var _local3:int = (arrPyramid.length - 1); while (_local3 >= 0) { _local2 = false; _local4 = (arrPyramid.length - 1); while (_local4 >= 0) { if (((!((_local3 == _local4))) && (arrPyramid[_local3]._b.mcBugless.hitTestObject(arrPyramid[_local4]._b.mcBugless)))){ if ((((arrPyramid[_local4].depth > arrPyramid[_local3].depth)) && ((arrPyramid[_local4].depth < 100)))){ _local2 = true; break; }; }; _local4--; }; if (((!(_local2)) && (!(arrPyramid[_local3].active)))){ arrPyramid[_local3].active = true; arrPyramid[_local3].turnCard(); } else { if (((_local2) && (arrPyramid[_local3].active))){ arrPyramid[_local3].active = false; arrPyramid[_local3].turnCard(); }; }; _local3--; }; } public function checkNextStep():void{ if (arrDraw.length == 0){ _Game._mcBG._sbtTakePoints.visible = true; _Game.showNextCardMC(false); }; if (arrPyramid.length > 0){ return; }; if (arrPyramid.length == 0){ _Game.enableUndo(false); _Game.enableMenu(false); mcToCheckAnimation.addEventListener(Event.ENTER_FRAME, checkCastleAnimation); return; }; } private function checkCastleAnimation(_arg1:Event):void{ if (mcToCheckAnimation.currentFrame == mcToCheckAnimation.totalFrames){ mcToCheckAnimation.removeEventListener(Event.ENTER_FRAME, checkCastleAnimation); setTimeout(delayShowNextPanel, 1000); }; } private function delayShowNextPanel():void{ _Game.showNewRoundPanel(); } public function checkValid(_arg1:Card, _arg2:Card):Boolean{ if (((_arg1.isWildCard) || (_arg2.isWildCard))){ return (true); }; if ((((Math.abs((_arg1.value - _arg2.value)) == 1)) || ((Math.abs((_arg1.value - _arg2.value)) == 12)))){ return (true); }; return (false); } public function packingCard(_arg1:Card):void{ if (arrPyramid.length == 0){ _Game.enableUndo(false); _Game.enableMenu(false); return; }; lastCard = _arg1; lastCard.posOldX = _arg1.x; lastCard.posOldY = _arg1.y; lastCard.placementOld = _arg1.placement; lastCard.depthOld = _arg1.depth; _arg1.posY = numDrawY; _arg1.posX = (numDrawX - (arrPack.length * numDrawOpenShift)); arrPack[(arrPack.length - 1)].active = false; arrPack.push(_arg1); if (_arg1.placement == "drawpile"){ moveDrawPile(1); }; _arg1.placement = "pack"; var _local2:int; while (_local2 < (arrPack.length - 3)) { arrPack[_local2].y = 1000; _local2++; }; arrPack[(arrPack.length - 1)].depth = (arrPack[(arrPack.length - 2)].depth + 1); mcCardHolder.setChildIndex(arrPack[(arrPack.length - 1)], (mcCardHolder.numChildren - 1)); arrMove.push(_arg1); _arg1.gotoStack(); _Game.enableUndo(true); } public function returningCard():void{ lastCard.posY = lastCard.posOldY; lastCard.posX = (lastCard.posOldX - (arrPack.length * numDrawOpenShift)); arrPack.pop(); if (lastCard.placementOld == "drawpile"){ moveDrawPile(-1); if (arrDraw.length > 0){ arrDraw[(arrDraw.length - 1)].active = false; }; arrDraw.push(lastCard); arrDraw[(arrDraw.length - 1)].active = true; if (arrDraw.length == 1){ _Game._mcBG._sbtTakePoints.visible = false; _Game.showNextCardMC(true); }; }; if (lastCard.placementOld == "pyramid"){ arrPyramid.splice(lastCard.placementIndexOld, 0, lastCard); }; lastCard.placement = lastCard.placementOld; arrMove.push(lastCard); if (!lastCard.isWildCard){ _Game._mcBG.returnScore(); }; lastCard.goBack(); _Game.enableUndo(false); } private function moveDrawPile(_arg1:int):void{ var _local2:int; while (_local2 < arrDraw.length) { arrDraw[_local2].x = (arrDraw[_local2].x + (12 * _arg1)); _local2++; }; } public function removeCards():void{ trace(arrCards.length); var _local1:int; while (_local1 < arrCards.length) { arrCards[_local1].x = -200; _local1++; }; } public function playAgain():void{ Game.isPlayAgain = true; mcCardHolder.removeEventListener(Event.ENTER_FRAME, dropCard); lastCard = null; _Game.enableUndo(false); _Game.enableMenu(false); arrPack.splice(0); arrPack = new Array(); mcToCheckAnimation = null; createDeck(); wildCard.x = 1000; var _local1:int; while (_local1 < arrCards.length) { arrCards[_local1].turnCard(false); arrCards[_local1]._c["numFilter"] = 4; arrCards[_local1].numFilter = 0; arrCards[_local1].depth = _local1; _local1++; }; shuffleDeck(); arrangeCards(); spreadCard(); } } }//package
Section 35
//d1 (d1) package { import flash.display.*; public dynamic class d1 extends MovieClip { public function d1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 36
//d10 (d10) package { import flash.display.*; public dynamic class d10 extends MovieClip { public function d10(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 37
//d11 (d11) package { import flash.display.*; public dynamic class d11 extends MovieClip { } }//package
Section 38
//d12 (d12) package { import flash.display.*; public dynamic class d12 extends MovieClip { public function d12(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 39
//d13 (d13) package { import flash.display.*; public dynamic class d13 extends MovieClip { public function d13(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 40
//d2 (d2) package { import flash.display.*; public dynamic class d2 extends MovieClip { public function d2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 41
//d3 (d3) package { import flash.display.*; public dynamic class d3 extends MovieClip { public function d3(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 42
//d4 (d4) package { import flash.display.*; public dynamic class d4 extends MovieClip { public function d4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 43
//d5 (d5) package { import flash.display.*; public dynamic class d5 extends MovieClip { public function d5(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 44
//d6 (d6) package { import flash.display.*; public dynamic class d6 extends MovieClip { public function d6(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 45
//d7 (d7) package { import flash.display.*; public dynamic class d7 extends MovieClip { public function d7(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 46
//d8 (d8) package { import flash.display.*; public dynamic class d8 extends MovieClip { public function d8(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 47
//d9 (d9) package { import flash.display.*; public dynamic class d9 extends MovieClip { public function d9(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 48
//Game (Game) package { import flash.display.*; import flash.events.*; import mochi.*; public class Game { private var _root:MovieClip; private var _mcCardContainer:Sprite; private var _cardHolder:CardHolder; public var _mcTimer:TimerClass; public var _mcBG:BackGround; private var _mcMenu:Menu; private var _mcNextPanel:NextRoundPanel; private var _mcOverPanel:GameOverPanel; private var _mcInstructions:instructions; private var _mcNextCard:nextCard_mc; private var _nTimerPause:Number;// = 0 private var _bGameInPause:Boolean; public var _btUndo:btnUndo; public var _btMenu:btnMenu; public var _nRoundTime:Number;// = 120 public var _nFullTimeBonus:int;// = 20000 public var _nRoundNumber:int; private var _nRoundScore:Number; public static var GAME; public static var isPlayAgain:Boolean = false; public function Game(_arg1:MovieClip){ GAME = this; _root = _arg1; _btUndo = new btnUndo(); _btUndo.x = 452; _btUndo.y = 355; _root.addChild(_btUndo); enableUndo(false); _btMenu = new btnMenu(); _btMenu.x = 5; _btMenu.y = 5; _root.addChild(_btMenu); enableMenu(false); _mcCardContainer = new Sprite(); _root.addChild(_mcCardContainer); _mcBG = new BackGround(); _root.addChildAt(_mcBG, 0); _mcBG._sbtTakePoints.addEventListener(MouseEvent.CLICK, showGameOverPanel); _mcTimer = _mcBG.mcTimer; _mcNextCard = new nextCard_mc(); _mcNextCard.x = 295; _mcNextCard.y = 330; _mcNextCard.alpha = 0.5; _mcNextCard.mouseChildren = false; _mcNextCard.mouseEnabled = false; _mcNextCard.visible = false; _root.addChild(_mcNextCard); _bGameInPause = false; if (!_root.showInstr){ startGame(); } else { showInstructions(1); }; } public function showNextCardMC(_arg1:Boolean):void{ _mcNextCard.visible = _arg1; } private function showInstructions(_arg1:int):void{ _mcInstructions = new instructions(); if (_arg1 == 1){ _mcInstructions._sbtOk.addEventListener(MouseEvent.CLICK, startFromInstructions); } else { _mcInstructions._sbtOk.addEventListener(MouseEvent.CLICK, playAgainFromInstructions); }; _root.addChild(_mcInstructions); } private function startFromInstructions(_arg1:MouseEvent):void{ _root.removeChild(_mcInstructions); startGame(); } private function playAgainFromInstructions(_arg1:MouseEvent):void{ _root.removeChild(_mcInstructions); playAgain(); } public function allSoundsLoaded(_arg1){ } public function showStartPanelFromMenu(_arg1:MouseEvent=null):void{ SoundController.sndButtonClick.play(); if (_mcMenu){ _root.removeChild(_mcMenu); }; showNextCardMC(false); _root.showStartPanel(); } public function showStartPanelFromEnd(_arg1:MouseEvent=null):void{ SoundController.sndButtonClick.play(); if (_mcOverPanel){ _root.removeChild(_mcOverPanel); }; _root.showStartPanel(); } public function startGame():void{ _cardHolder = new CardHolder(_mcCardContainer, this); _nRoundNumber = 1; _mcBG.tfRoundNumber.text = _nRoundNumber.toString(); } public function showNewRoundPanel():void{ _mcNextPanel = new NextRoundPanel(); _mcNextPanel._sbtNextRound.addEventListener(MouseEvent.CLICK, startNewRound); var _local1:Number = (_cardHolder.arrDraw.length * 1000); var _local2:Number = (_nRoundNumber * 1000); var _local3:Number = (_cardHolder.wildCard.active) ? 5000 : 0; _nRoundScore = (((_mcTimer._nBonusLeft + _local1) + _local2) + _local3); _mcBG.score = (_mcBG.score + _nRoundScore); _mcNextPanel._stxTimeBonus.text = _mcTimer._nBonusLeft.toString(); _mcNextPanel._stxDeckBonus.text = _local1.toString(); _mcNextPanel._stxRoundBonus.text = _local2.toString(); _mcNextPanel._stxWildBonus.text = _local3.toString(); _mcNextPanel._stxScore.text = _mcBG.score.toString(); _mcNextPanel.showBonuses(); _root.addChild(_mcNextPanel); _mcTimer.stopTimer(); showNextCardMC(false); } public function startNewRound(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); _mcNextPanel._sbtNextRound.removeEventListener(MouseEvent.CLICK, startNewRound); _root.removeChild(_mcNextPanel); _cardHolder.playAgain(); _nRoundNumber++; _mcBG.tfRoundNumber.text = _nRoundNumber.toString(); _mcTimer.setTime(0); _mcBG.invisibleCastle(); } public function showGameOverPanel(_arg1:MouseEvent=null):void{ if (_cardHolder.arrPyramid.length == 0){ return; }; _mcOverPanel = new GameOverPanel(); _mcOverPanel.noHigh.visible = false; _mcOverPanel.tfName.text = HighScorePanel.showLastTypedName(); _mcOverPanel._stxScore.text = _mcBG.score.toString(); trace(_root.getMinScore(), _mcBG.score); if (_root.getMinScore() > _mcBG.score){ _mcOverPanel.noHigh.visible = true; _mcOverPanel.noHigh._stxScore.text = _mcBG.score.toString(); _mcOverPanel.noHigh._sbtMainMenu.addEventListener(MouseEvent.CLICK, showStartPanelFromEnd); } else { _mcOverPanel._sbtOK.addEventListener(MouseEvent.CLICK, showHighScore); _mcOverPanel._sbtMainMenu.addEventListener(MouseEvent.CLICK, showStartPanelFromEnd); }; _root.addChild(_mcOverPanel); SoundController.sndGameOver.play(); SoundController.sndButtonClick.play(); _mcTimer.stopTimer(); showNextCardMC(false); } public function playAgainFromMain():void{ _cardHolder.removeCards(); if (!_root.showInstr){ playAgain(); } else { showInstructions(2); }; } public function playAgain():void{ _mcBG.score = 0; _mcBG.lastScore = 0; _mcBG.lastRun = "0"; _mcBG.tfCardRun.text = "0"; _cardHolder.playAgain(); _bGameInPause = false; _nRoundNumber = 1; _mcBG.tfRoundNumber.text = _nRoundNumber.toString(); _mcTimer.setTime(0); _mcBG.invisibleCastle(); } private function showHighScore(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); sendMochiLeaderBoard(); HighScorePanel.saveNewUser(_mcOverPanel.tfName.text, _mcBG.score); _mcOverPanel._smcHigh.init("over"); _mcOverPanel._smcHigh.visible = true; _mcOverPanel._smcHigh._sbtOnlineSend.visible = true; _mcOverPanel._smcHigh._sbtOnlineSend.addEventListener(MouseEvent.CLICK, sendHighScore); _mcOverPanel._smcHigh._sbtBack.addEventListener(MouseEvent.CLICK, showStartPanelFromEnd); _mcOverPanel._sbtOK.removeEventListener(MouseEvent.CLICK, showHighScore); _mcOverPanel._sbtOK.enabled = false; } private function sendHighScore(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); MochiScores.showLeaderboard({boardID:"1eae4923c2771491", score:_mcBG.score, name:_mcOverPanel.tfName.text, onClose:mochiSent}); } private function sendMochiLeaderBoard():void{ MochiScores.submit(_mcBG.score, _mcOverPanel.tfName.text, this, mochiSent); } public function mochiSent(_arg1):void{ _mcOverPanel._smcHigh.txtSent.text = "Online score submitted"; _mcOverPanel._smcHigh._sbtOnlineSend.visible = false; _mcOverPanel._smcHigh._sbtOnlineSend.removeEventListener(MouseEvent.CLICK, sendHighScore); } public function functionsFor4Frame():void{ _root.removeChild(_mcOverPanel); _root.showStartPanel(); } public function timeOut():void{ } private function pauseGame(_arg1:Boolean):void{ if (_arg1){ _bGameInPause = true; _nTimerPause = _mcTimer.getTime(); _mcTimer.stopTimer(); } else { _bGameInPause = false; _mcTimer.startNewCountDown(_nTimerPause); }; } private function onUndoClicked(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); _cardHolder.returningCard(); } public function onMenuClicked(_arg1:MouseEvent=null):void{ pauseGame(!(_bGameInPause)); SoundController.sndButtonClick.play(); if (_bGameInPause){ _mcMenu = new Menu(); _mcMenu.init(this); _root.addChild(_mcMenu); } else { _root.removeChild(_mcMenu); }; } public function enableUndo(_arg1:Boolean):void{ if (_arg1){ if (_btUndo.enabled){ return; }; _btUndo.enabled = true; _btUndo.addEventListener(MouseEvent.CLICK, onUndoClicked); _btUndo.alpha = 1; } else { _btUndo.enabled = false; _btUndo.removeEventListener(MouseEvent.CLICK, onUndoClicked); _btUndo.alpha = 0.7; }; } public function enableMenu(_arg1:Boolean):void{ if (_arg1){ if (_btMenu.enabled){ return; }; _btMenu.addEventListener(MouseEvent.CLICK, onMenuClicked); _btMenu.enabled = true; } else { _btMenu.removeEventListener(MouseEvent.CLICK, onMenuClicked); _btMenu.enabled = false; }; } } }//package
Section 49
//GameOver (GameOver) package { import flash.media.*; public dynamic class GameOver extends Sound { } }//package
Section 50
//GameOverPanel (GameOverPanel) package { import flash.display.*; import flash.text.*; public class GameOverPanel extends MovieClip { public var tfName:TextField; public var _stxScore:TextField; public var _sbtOK:SimpleButton; public var _sbtMainMenu:SimpleButton; public var noHigh:MovieClip; public var _smcHigh:HighScorePanel; public function setMinScore(_arg1:Number):void{ } } }//package
Section 51
//h1 (h1) package { import flash.display.*; public dynamic class h1 extends MovieClip { public function h1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 52
//h10 (h10) package { import flash.display.*; public dynamic class h10 extends MovieClip { public function h10(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 53
//h11 (h11) package { import flash.display.*; public dynamic class h11 extends MovieClip { } }//package
Section 54
//h12 (h12) package { import flash.display.*; public dynamic class h12 extends MovieClip { public function h12(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 55
//h13 (h13) package { import flash.display.*; public dynamic class h13 extends MovieClip { public function h13(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 56
//h2 (h2) package { import flash.display.*; public dynamic class h2 extends MovieClip { public function h2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 57
//h3 (h3) package { import flash.display.*; public dynamic class h3 extends MovieClip { public function h3(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 58
//h4 (h4) package { import flash.display.*; public dynamic class h4 extends MovieClip { public function h4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 59
//h5 (h5) package { import flash.display.*; public dynamic class h5 extends MovieClip { public function h5(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 60
//h6 (h6) package { import flash.display.*; public dynamic class h6 extends MovieClip { public function h6(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 61
//h7 (h7) package { import flash.display.*; public dynamic class h7 extends MovieClip { public function h7(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 62
//h8 (h8) package { import flash.display.*; public dynamic class h8 extends MovieClip { public function h8(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 63
//h9 (h9) package { import flash.display.*; public dynamic class h9 extends MovieClip { public function h9(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 64
//HighScorePanel (HighScorePanel) package { import flash.display.*; import flash.events.*; import mochi.*; import flash.text.*; import flash.net.*; public class HighScorePanel extends Sprite { public var _sbtOnline:SimpleButton; public var _sbtOnlineSend:SimpleButton; public var _sbtBack:SimpleButton; public var txtSent:TextField; public var txtP1:TextField; public var txtP2:TextField; public var txtP3:TextField; public var txtP4:TextField; public var txtP5:TextField; public var txtP6:TextField; public var txtP7:TextField; public var txtP8:TextField; public var txtP9:TextField; public var txtP10:TextField; public var txtS1:TextField; public var txtS2:TextField; public var txtS3:TextField; public var txtS4:TextField; public var txtS5:TextField; public var txtS6:TextField; public var txtS7:TextField; public var txtS8:TextField; public var txtS9:TextField; public var txtS10:TextField; private static var _soData:SharedObject; private static var _soLastScoreData:SharedObject; public function HighScorePanel(){ visible = false; _sbtOnlineSend.visible = false; } public function init(_arg1:String):void{ if (_arg1 == "start"){ _sbtBack.addEventListener(MouseEvent.CLICK, onCloseHigh); }; _sbtOnline.addEventListener(MouseEvent.CLICK, onShowOnline); readSO(_arg1); } private function onShowOnline(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); MochiScores.showLeaderboard({boardID:"1eae4923c2771491", onClose:onCloseOnline}); } private function onCloseHigh(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); visible = false; } private function onCloseOnline():void{ } private function setTFcolors():void{ var _local2:TextField; var _local3:TextField; var _local1 = 1; while (_local1 <= 10) { _local2 = this[("txtP" + _local1)]; _local3 = this[("txtS" + _local1)]; if (((((!((_local1 == 1))) && (!((_local1 == 4))))) && (!((_local1 == 8))))){ _local2.textColor = 14027274; _local3.textColor = 14027274; } else { _local2.textColor = 710154; _local3.textColor = 710154; }; _local1++; }; } public function readSO(_arg1:String):void{ var _local3:String; var _local4:int; var _local8:Object; var _local9:TextField; var _local10:TextField; _soData = SharedObject.getLocal("LocalScoreData"); _soLastScoreData = SharedObject.getLocal("LastScoreData"); var _local2:Array = new Array(); for (_local3 in _soData.data) { _local8 = {n:_local3, s:_soData.data[_local3]}; if (_local3.indexOf("^") != -1){ _local8.n = _local3.substr(0, _local3.indexOf("^")); }; _local2.push(_local8); trace([_local8.n, _local8.s]); }; _local2.sortOn("s", Array.NUMERIC); _local2.reverse(); _local4 = ((_local2.length)<10) ? _local2.length : 10; var _local5:int; while (_local5 < _local4) { _local9 = this[("txtP" + int((_local5 + 1)))]; _local10 = this[("txtS" + int((_local5 + 1)))]; _local9.text = _local2[_local5].n; _local10.text = _local2[_local5].s; _local5++; }; var _local6:* = parent; var _local7:* = ((_local2.length)<10) ? 0 : _local2[9].s; _local6.setMinScore(Number(_local7)); if (_arg1 != "over"){ return; }; if (_soLastScoreData.data.nLastUser != undefined){ _local5 = 0; while (_local5 < _local4) { _local9 = this[("txtP" + int((_local5 + 1)))]; _local10 = this[("txtS" + int((_local5 + 1)))]; if ((((_local9.text == _soLastScoreData.data["nLastUser"])) && ((_local10.text == _soLastScoreData.data["nLastScore"])))){ _local9 = this[("txtP" + int((_local5 + 1)))]; _local10 = this[("txtS" + int((_local5 + 1)))]; _local9.textColor = 658134; _local10.textColor = 658134; }; _local5++; }; }; } public static function saveNewUser(_arg1:String, _arg2:Number):void{ if (_arg2 == 0){ return; }; var _local3:Number = Math.random(); if (_soData.data[((_arg1 + "^") + _local3)] == undefined){ _soData.data[((_arg1 + "^") + _local3)] = _arg2; }; if (_soData.data[((_arg1 + "^") + _local3)] < _arg2){ _soData.data[((_arg1 + "^") + _local3)] = _arg2; }; _soLastScoreData.data["nLastUser"] = _arg1; _soLastScoreData.data["nLastScore"] = _arg2; _soData.flush(); _soLastScoreData.flush(); } public static function showLastTypedName():String{ var _local1:String = (_soLastScoreData.data["nLastUser"]) ? _soLastScoreData.data["nLastUser"] : "Player"; return (_local1); } } }//package
Section 65
//instructions (instructions) package { import flash.display.*; public dynamic class instructions extends MovieClip { public var _sbtOk:SimpleButton; } }//package
Section 66
//Main (Main) package { import flash.display.*; import flash.events.*; import mochi.*; import flash.text.*; import flash.net.*; import flash.utils.*; public dynamic class Main extends MovieClip { private var game:Game; private var startPanel:StartPanel; public var percent:TextField; public var soundController:SoundController; private var shield:MovieClip; public var minScoreToGet:Number; public var showInstr:Boolean; public var btnSponsorBanner:SimpleButton; public function Main():void{ stop(); init(); } private function init(_arg1:Event=null):void{ addEventListener(Event.ENTER_FRAME, onEnterFrame); soundController = new SoundController(); MochiAd.showPreGameAd({clip:this, id:"e60a83539d6c39a0", res:"640x450", background:16777161, color:0xFF8A00, outline:13994812, no_bg:false}); MochiServices.connect("e60a83539d6c39a0", this); MochiScores.setBoardID("1eae4923c2771491"); } private function onEnterFrame(_arg1:Event){ if (framesLoaded == totalFrames){ removeEventListener(Event.ENTER_FRAME, onEnterFrame); addEventListener(Event.ENTER_FRAME, EFlistener); }; } private function EFlistener(_arg1:Event):void{ var _local2:Timer; if (currentFrame == 2){ stop(); if (btnSponsorBanner){ btnSponsorBanner.addEventListener(MouseEvent.CLICK, goToWebsite); }; _local2 = new Timer(3000, 1); _local2.addEventListener(TimerEvent.TIMER, timerListener); _local2.start(); }; if (currentFrame == 3){ stop(); removeEventListener(Event.ENTER_FRAME, EFlistener); showStartPanel(); }; } private function timerListener(_arg1:TimerEvent):void{ gotoAndStop(3); } public function showStartPanel():void{ var _local1:McMask; startPanel = new StartPanel(this); startPanel.randomAppStore(); if (!this.mask){ _local1 = new McMask(); addChild(_local1); this.mask = _local1; }; addChild(startPanel); } public function initGame(_arg1:Boolean):void{ removeChild(startPanel); showInstr = _arg1; if (!game){ game = new Game(this); } else { game.playAgainFromMain(); }; } public function getMinScore():Number{ trace(minScoreToGet); return (minScoreToGet); } public function setMinScore(_arg1:Number):void{ minScoreToGet = _arg1; trace(("setMinScore " + minScoreToGet)); } private function goToWebsite(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); var _local2:URLRequest = new URLRequest("http://www.solitaireparadise.com/"); navigateToURL(_local2); } } }//package
Section 67
//McMask (McMask) package { import flash.display.*; public class McMask extends MovieClip { } }//package
Section 68
//Menu (Menu) package { import flash.display.*; import flash.events.*; public class Menu extends MovieClip { private var _Game:Game; public var _sbtResume:SimpleButton; public var _sbtExit:SimpleButton; public var _sbtInstructions:SimpleButton; public var _smcBoard:MovieClip; public var _smcInstructions:MovieClip; public function Menu(){ _smcInstructions.visible = false; _smcInstructions._sbtBack.visible = false; var _local1:SimpleButton = (getChildAt(0) as SimpleButton); _local1.useHandCursor = false; } public function init(_arg1:Game):void{ _Game = _arg1; _sbtResume.addEventListener(MouseEvent.CLICK, onResume); _sbtExit.addEventListener(MouseEvent.CLICK, onExit); _sbtInstructions.addEventListener(MouseEvent.CLICK, onInstructions); } private function onResume(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); removeListeners(); _Game.onMenuClicked(); } private function onExit(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); removeListeners(); _Game.showStartPanelFromMenu(); } private function onInstructions(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); _smcInstructions.visible = true; _smcInstructions._sbtResume.addEventListener(MouseEvent.CLICK, onInstructionsExit); removeMenu(false); } private function onInstructionsExit(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); _smcInstructions.visible = false; _smcInstructions._sbtResume.removeEventListener(MouseEvent.CLICK, onInstructionsExit); removeMenu(true); } private function removeMenu(_arg1:Boolean):void{ _smcBoard.visible = _arg1; _sbtResume.visible = _arg1; _sbtExit.visible = _arg1; _sbtInstructions.visible = _arg1; } private function removeListeners():void{ _sbtResume.removeEventListener(MouseEvent.CLICK, onResume); _sbtExit.removeEventListener(MouseEvent.CLICK, onExit); _sbtInstructions.removeEventListener(MouseEvent.CLICK, onInstructions); } } }//package
Section 69
//MFNWLogo (MFNWLogo) package { import flash.display.*; import flash.events.*; import flash.net.*; public class MFNWLogo extends SimpleButton { public function MFNWLogo(){ this.addEventListener(MouseEvent.CLICK, onMouseClick); this.mouseEnabled = true; } private function onMouseClick(_arg1:MouseEvent){ var _local2:URLRequest = new URLRequest("http://www.makeflashnotwar.com"); navigateToURL(_local2); } } }//package
Section 70
//NewDeal (NewDeal) package { import flash.media.*; public dynamic class NewDeal extends Sound { } }//package
Section 71
//nextCard_mc (nextCard_mc) package { import flash.display.*; public dynamic class nextCard_mc extends MovieClip { } }//package
Section 72
//NextRoundPanel (NextRoundPanel) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; public class NextRoundPanel extends MovieClip { private var _nTimer:Number; public var _sbtNextRound:SimpleButton; public var btnMoreGames:SimpleButton; public var _stxTimeBonus:TextField; public var _stxWildBonus:TextField; public var _stxDeckBonus:TextField; public var _stxRoundBonus:TextField; public var _stxScore:TextField; public function NextRoundPanel(){ _sbtNextRound.visible = false; _stxTimeBonus.visible = false; _stxWildBonus.visible = false; _stxDeckBonus.visible = false; _stxRoundBonus.visible = false; _stxScore.visible = false; btnMoreGames.addEventListener(MouseEvent.CLICK, playMoreGames); } private function playMoreGames(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); var _local2:URLRequest = new URLRequest("http://www.solitaireparadise.com"); navigateToURL(_local2); } public function showBonuses():void{ _nTimer = 90; this.addEventListener(Event.ENTER_FRAME, enterFrameListener); } public function enterFrameListener(_arg1:Event):void{ _nTimer--; if (_nTimer == 75){ _stxTimeBonus.visible = true; SoundController.sndScorePing.play(); }; if (_nTimer == 60){ _stxWildBonus.visible = true; SoundController.sndScorePing.play(); }; if (_nTimer == 45){ _stxDeckBonus.visible = true; SoundController.sndScorePing.play(); }; if (_nTimer == 30){ _stxRoundBonus.visible = true; SoundController.sndScorePing.play(); }; if (_nTimer == 15){ _stxScore.visible = true; SoundController.sndScorePing.play(); }; if (_nTimer == 0){ _sbtNextRound.visible = true; this.removeEventListener(Event.ENTER_FRAME, enterFrameListener); }; } } }//package
Section 73
//PileRemoved (PileRemoved) package { import flash.media.*; public dynamic class PileRemoved extends Sound { } }//package
Section 74
//s1 (s1) package { import flash.display.*; public dynamic class s1 extends MovieClip { public function s1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 75
//s10 (s10) package { import flash.display.*; public dynamic class s10 extends MovieClip { public function s10(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 76
//s11 (s11) package { import flash.display.*; public dynamic class s11 extends MovieClip { } }//package
Section 77
//s12 (s12) package { import flash.display.*; public dynamic class s12 extends MovieClip { public function s12(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 78
//s13 (s13) package { import flash.display.*; public dynamic class s13 extends MovieClip { public function s13(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 79
//s2 (s2) package { import flash.display.*; public dynamic class s2 extends MovieClip { public function s2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 80
//s3 (s3) package { import flash.display.*; public dynamic class s3 extends MovieClip { public function s3(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 81
//s4 (s4) package { import flash.display.*; public dynamic class s4 extends MovieClip { public function s4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 82
//s5 (s5) package { import flash.display.*; public dynamic class s5 extends MovieClip { public function s5(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 83
//s6 (s6) package { import flash.display.*; public dynamic class s6 extends MovieClip { public function s6(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 84
//s7 (s7) package { import flash.display.*; public dynamic class s7 extends MovieClip { public function s7(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 85
//s8 (s8) package { import flash.display.*; public dynamic class s8 extends MovieClip { public function s8(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 86
//s9 (s9) package { import flash.display.*; public dynamic class s9 extends MovieClip { public function s9(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 87
//ScorePing (ScorePing) package { import flash.media.*; public dynamic class ScorePing extends Sound { } }//package
Section 88
//Shield (Shield) package { import flash.display.*; public dynamic class Shield extends MovieClip { } }//package
Section 89
//SoundButton (SoundButton) package { import flash.display.*; import flash.events.*; import flash.net.*; public class SoundButton extends MovieClip { public var btSoundOff:SimpleButton; public var btSoundOn:SimpleButton; private var _enable:Boolean; private var _soData:SharedObject; public function SoundButton(){ btSoundOff.addEventListener(MouseEvent.CLICK, setSoundOn); btSoundOn.addEventListener(MouseEvent.CLICK, setSoundOff); readSO(); } private function setSoundOff(_arg1:Event):void{ enable = false; } private function setSoundOn(_arg1:Event):void{ enable = true; SoundController.sndButtonClick.play(); } private function set enable(_arg1:Boolean){ if (_arg1 == false){ btSoundOff.visible = true; btSoundOn.visible = !(btSoundOff.visible); } else { btSoundOff.visible = false; btSoundOn.visible = !(btSoundOff.visible); }; _enable = _arg1; onSetSound(_arg1); } private function get enable():Boolean{ return (_enable); } private function readSO():void{ var _local1:*; var _local2:*; _soData = SharedObject.getLocal("soundData"); for (_local1 in _soData.data) { }; _local2 = ((_soData.data.sound)==undefined) ? true : _soData.data.sound; (enable = _local2); } private function onSetSound(_arg1:Boolean):void{ saveSound(_arg1); (SoundController.enable = _arg1); } private function saveSound(_arg1:Boolean):void{ (_soData.data.sound = _arg1); _soData.flush(); } } }//package
Section 90
//SoundController (SoundController) package { import flash.media.*; public class SoundController { private var indexLoaded:int;// = 0 public static var sndAllPilesRemoved:AllPilesRemoved; public static var sndCardClick:CardClick; public static var sndButtonClick:ButtonClick; public static var sndNewDeal:NewDeal; public static var sndGameOver:GameOver; public static var sndUnAccessibleCard:UnAccessibleCard; public static var sndTurnCard:TurnCard; public static var sndWildCard:WildCardUsed; public static var sndPileRemoved:PileRemoved; public static var sndScorePing:ScorePing; private static var __enable:Boolean; public function SoundController(){ sndPileRemoved = new PileRemoved(); sndAllPilesRemoved = new AllPilesRemoved(); sndCardClick = new CardClick(); sndButtonClick = new ButtonClick(); sndNewDeal = new NewDeal(); sndGameOver = new GameOver(); sndUnAccessibleCard = new UnAccessibleCard(); sndTurnCard = new TurnCard(); sndWildCard = new WildCardUsed(); sndScorePing = new ScorePing(); } public static function get enable():Boolean{ return (Boolean(true)); } public static function set enable(_arg1:Boolean){ var _local2:SoundTransform = new SoundTransform(); SoundMixer.soundTransform = new SoundTransform(Number(_arg1)); } } }//package
Section 91
//StartPanel (StartPanel) package { import flash.display.*; import flash.events.*; import flash.net.*; public class StartPanel extends MovieClip { private var _mainClass:Main; private var _soData:SharedObject; public var _sbtPlay:SimpleButton; public var _sbtInstructions:SimpleButton; public var _sbtCredits:SimpleButton; public var _smcSound:SoundButton; public var _sbtHigh:SimpleButton; public var _smcInstructions:MovieClip; public var _smcCredits:MovieClip; public var _smcHighScore:HighScorePanel; public var btnGoToWebsite:SimpleButton; public var btnAppStore1:SimpleButton; public var btnAppStore2:SimpleButton; public var btnPlayMoreGames:SimpleButton; public var btnPlayFacebook:SimpleButton; public var _smcShowInstructions:MovieClip; public var enableShow:Boolean; public function StartPanel(_arg1:Main){ _mainClass = _arg1; init(); } private function randomNumber(_arg1:Number=0, _arg2:Number=1):Number{ return ((Math.floor((Math.random() * ((1 + _arg2) - _arg1))) + _arg1)); } private function init():void{ readSO(); _smcHighScore.init("start"); _smcInstructions.visible = false; _smcInstructions._sbtResume.visible = false; _smcInstructions._sbtBack.addEventListener(MouseEvent.CLICK, onCloseInst); btnGoToWebsite.addEventListener(MouseEvent.CLICK, goToWebsite); btnPlayMoreGames.addEventListener(MouseEvent.CLICK, playMoreGames); btnPlayFacebook.addEventListener(MouseEvent.CLICK, playFacebook); btnAppStore1.addEventListener(MouseEvent.CLICK, goToAppStore); btnAppStore2.addEventListener(MouseEvent.CLICK, goToAppStore); _smcCredits.visible = false; _smcCredits._sbtBack.addEventListener(MouseEvent.CLICK, onCloseCredits); _sbtPlay.addEventListener(MouseEvent.CLICK, onStartGame); _sbtInstructions.addEventListener(MouseEvent.CLICK, onInstructions); _sbtCredits.addEventListener(MouseEvent.CLICK, onCredits); _sbtHigh.addEventListener(MouseEvent.CLICK, onHigh); _smcShowInstructions.addEventListener(MouseEvent.CLICK, onShow); } public function randomAppStore():void{ if (randomNumber() == 1){ btnAppStore1.visible = false; btnAppStore2.visible = true; } else { btnAppStore1.visible = true; btnAppStore2.visible = false; }; } private function goToAppStore(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); var _local2:URLRequest = new URLRequest("http://www.solitaireparadise.com/redirect/magictowersappstore/"); navigateToURL(_local2); } private function playFacebook(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); var _local2:URLRequest = new URLRequest("http://www.solitaireparadise.com/redirect/magictowerstofacebook/"); navigateToURL(_local2); } private function goToWebsite(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); var _local2:URLRequest = new URLRequest("http://www.glowingeyegames.com/"); navigateToURL(_local2); } private function playMoreGames(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); var _local2:URLRequest = new URLRequest("http://www.solitaireparadise.com"); navigateToURL(_local2); } private function onStartGame(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); _mainClass.initGame(enableShow); } private function onInstructions(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); _smcInstructions.visible = true; } private function onCloseInst(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); _smcInstructions.visible = false; } private function onCredits(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); _smcCredits.visible = true; } private function onCloseCredits(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); _smcCredits.visible = false; } public function onHigh(_arg1:MouseEvent):void{ SoundController.sndButtonClick.play(); _smcHighScore.visible = true; } public function setMinScore(_arg1:Number):void{ _mainClass.setMinScore(_arg1); } private function onShow(_arg1:MouseEvent):void{ if (_smcShowInstructions.currentFrame == 1){ _smcShowInstructions.gotoAndStop(2); onSetShowInstructions(true); } else { _smcShowInstructions.gotoAndStop(1); onSetShowInstructions(false); }; } private function readSO():void{ var _local1:*; var _local2:*; _soData = SharedObject.getLocal("showInstructions"); for (_local1 in _soData.data) { }; _local2 = ((_soData.data.show)==undefined) ? true : _soData.data.show; (enableShow = _local2); if (_local2){ _smcShowInstructions.gotoAndStop(2); } else { _smcShowInstructions.gotoAndStop(1); }; } private function onSetShowInstructions(_arg1:Boolean):void{ showInstructions(_arg1); (enableShow = _arg1); } private function showInstructions(_arg1:Boolean):void{ (_soData.data.show = _arg1); _soData.flush(); } } }//package
Section 92
//TimerClass (TimerClass) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.*; public class TimerClass extends MovieClip { public var _Game:Game; private var _nBonusPerSecond:Number; public var _nBonusLeft:Number; public var _nTimer:Number; private var _nOldTime:Number; private var _bTimerOn:Boolean; private var _nStartingTime:Number; private var _nTotalFrames:Number; private var _nSeconds:Number;// = 0 private var _bWarned:Boolean; private var _fTimeRanOut:Function; private var _fTickFunction:Function;// = null private var _fBonusTick:Function; private var _fTimeTargetFunction:Function; private var _fEnterFrameFunction:Function; public var timerDisplay:TextField; public var _smcTimerModifier:MovieClip; public var _smcTimerTarget:MovieClip; public var _nTimeTarget:Number; public var _nTimeWarning:Number; public var _bPlayerWarned:Boolean; public var _sTimeModifier:String; public function TimerClass(){ timerDisplay = (getChildAt(0) as TextField); } public function onInitialize(_arg1:Game):void{ _Game = _arg1; _nTotalFrames = this.totalFrames; this.stop(); _bTimerOn = false; _bWarned = false; _nBonusPerSecond = (_Game._nFullTimeBonus / _Game._nRoundTime); _nBonusLeft = _Game._nFullTimeBonus; setTickFunction(decrementBonus); } public function setTime(_arg1:Number):void{ _nTimer = _arg1; } public function getTime():Number{ return (_nTimer); } public function startTimer():void{ _nOldTime = (getTimer() / 1000); _bTimerOn = true; } public function setEndFunction(_arg1:Function):void{ _fTimeRanOut = _arg1; } public function setTickFunction(_arg1:Function):void{ _fTickFunction = _arg1; } private function decrementBonus():void{ var _local1:int = Math.floor((_nBonusPerSecond * _nTimer)); timerDisplay.text = String(_local1); } public function stopTimer():void{ _bTimerOn = false; } public function addTime(_arg1:Number):void{ setTime((_nTimer + _arg1)); } public function setTargetFunction(_arg1:Function):void{ _fTimeTargetFunction = _arg1; } public function setTimeTarget(_arg1:Number):void{ _nTimeTarget = _arg1; _nTimeWarning = (_nTimeTarget - 10); var _local2:Number = Math.floor((_arg1 / 60)); var _local3:Number = Math.floor((_arg1 % 60)); if (_local2 == 0){ _local2 = 12; }; if (_local3 > 9){ _smcTimerTarget._sdtTimerTarget.text = ((String(_local2) + ":") + String(_local3)); } else { _smcTimerTarget._sdtTimerTarget.text = ((String(_local2) + ":") + ("0" + String(_local3))); }; } public function getTimeTarget():Number{ return (_nTimeTarget); } public function startNewCountDown(_arg1:Number):void{ clearTimer(); _nStartingTime = _arg1; setTime(_arg1); _nSeconds = Math.floor((_nTimer % 60)); _nOldTime = (getTimer() / 1000); _bTimerOn = true; if (this.hasEventListener(Event.ENTER_FRAME)){ this.removeEventListener(Event.ENTER_FRAME, _fEnterFrameFunction); }; _fEnterFrameFunction = countDown; this.addEventListener(Event.ENTER_FRAME, _fEnterFrameFunction); } public function countDown(_arg1:Event):void{ var _local2:Number = (getTimer() / 1000); if (_bTimerOn == true){ _nTimer = (_nTimer - (_local2 - _nOldTime)); if (_nTimer <= 0){ _nTimer = 0; _bTimerOn = false; _fTimeRanOut(); }; }; _nOldTime = _local2; var _local3:Number = Math.floor(_nTimer); if (_local3 != _nSeconds){ _nSeconds = _local3; if (_fTickFunction != null){ _fTickFunction(); }; }; _nBonusLeft = Math.floor((_nSeconds * _nBonusPerSecond)); timerDisplay.text = String(_nBonusLeft); } public function playBonusCountdown(_arg1:Function):void{ _fBonusTick = _arg1; if (this.hasEventListener(Event.ENTER_FRAME)){ this.removeEventListener(Event.ENTER_FRAME, _fEnterFrameFunction); }; _fEnterFrameFunction = countDown; this.addEventListener(Event.ENTER_FRAME, _fEnterFrameFunction); } public function bonusCountDown(_arg1:Event):void{ var _local2:int = this.currentFrame; if (_local2 == _nTotalFrames){ if (this.hasEventListener(Event.ENTER_FRAME)){ this.removeEventListener(Event.ENTER_FRAME, _fEnterFrameFunction); }; _fTimeRanOut(); } else { _local2++; this.gotoAndStop(_local2); _fBonusTick(); }; } public function startNewCountUp(_arg1:Number):void{ clearTimer(); _bPlayerWarned = false; _nStartingTime = _arg1; setTime(_arg1); _nOldTime = (getTimer() / 1000); if (this.hasEventListener(Event.ENTER_FRAME)){ this.removeEventListener(Event.ENTER_FRAME, _fEnterFrameFunction); }; _fEnterFrameFunction = countUp; this.addEventListener(Event.ENTER_FRAME, _fEnterFrameFunction); _bTimerOn = true; } public function countUp(_arg1:Event):void{ var _local2:Number = (getTimer() / 1000); if (_bTimerOn == true){ _nTimer = (_nTimer + (_local2 - _nOldTime)); if ((((_nTimer > _nTimeWarning)) && ((_bPlayerWarned == false)))){ _bPlayerWarned = true; }; }; _nOldTime = _local2; var _local3:Number = Math.floor((_nTimer / 60)); var _local4:Number = Math.floor((_nTimer % 60)); if (_local4 != _nSeconds){ _nSeconds = _local4; if (_fTickFunction != null){ _fTickFunction(); }; _local3 = (_local3 % 24); if (_local3 > 11){ _local3 = (_local3 % 12); _smcTimerModifier._sdtTimerModifier.text = "PM"; } else { _smcTimerModifier._sdtTimerModifier.text = "AM"; }; if (_local3 == 0){ _local3 = 12; }; if (_local4 > 9){ timerDisplay.text = ((String(_local3) + ":") + String(_local4)); } else { timerDisplay.text = ((String(_local3) + ":") + ("0" + String(_local4))); }; }; } public function playBonusCountUp(_arg1:Function):void{ _bPlayerWarned = true; _fBonusTick = _arg1; if (this.hasEventListener(Event.ENTER_FRAME)){ this.removeEventListener(Event.ENTER_FRAME, _fEnterFrameFunction); }; _fEnterFrameFunction = bonusCountUp; this.addEventListener(Event.ENTER_FRAME, _fEnterFrameFunction); } public function bonusCountUp(_arg1:Event):void{ var _local2:Number; var _local3:Number; if (_bTimerOn == true){ _nTimer = (_nTimer + 1); if (_nTimer > _nTimeTarget){ _nTimer = _nTimeTarget; }; _local2 = Math.floor((_nTimer / 60)); _local3 = Math.floor((_nTimer % 60)); if (_local3 != _nSeconds){ _nSeconds = _local3; if (_fTickFunction != null){ _fTickFunction(); }; _local2 = (_local2 % 24); if (_local2 > 11){ _local2 = 0; _smcTimerModifier._sdtTimerModifier.text = "PM"; } else { _smcTimerModifier._sdtTimerModifier.text = "AM"; }; if (_local2 == 0){ _local2 = 12; }; if (_local3 > 9){ timerDisplay.text = ((String(_local2) + ":") + String(_local3)); } else { timerDisplay.text = ((String(_local2) + ":") + ("0" + String(_local3))); }; }; _fBonusTick(); if (_nTimer == _nTimeTarget){ _fTimeTargetFunction(); _fTimeTargetFunction = new Function(); clearTimer(); }; }; } public function clearTimer():void{ if (this.hasEventListener(Event.ENTER_FRAME)){ this.removeEventListener(Event.ENTER_FRAME, _fEnterFrameFunction); }; } } }//package
Section 93
//TurnCard (TurnCard) package { import flash.media.*; public dynamic class TurnCard extends Sound { } }//package
Section 94
//UnAccessibleCard (UnAccessibleCard) package { import flash.media.*; public dynamic class UnAccessibleCard extends Sound { } }//package
Section 95
//Utils (Utils) package { public class Utils { private static const A:int = 3423313; private static const C:int = 2435; public static var numRandomSeed:int; public static function getRandomValue(_arg1:int):int{ numRandomSeed = ((numRandomSeed * A) % 2147352576); var _local2:int = (Math.floor(((numRandomSeed * _arg1) / C)) % _arg1); return (_local2); } } }//package
Section 96
//WildCard (WildCard) package { import flash.display.*; public dynamic class WildCard extends Sprite { public var mcBugless:MovieClip; } }//package
Section 97
//WildCardUsed (WildCardUsed) package { import flash.media.*; public dynamic class WildCardUsed extends Sound { } }//package

Library Items

Symbol 1 Sound {WildCardUsed}
Symbol 2 Sound {UnAccessibleCard}
Symbol 3 Sound {TurnCard}
Symbol 4 Sound {ScorePing}
Symbol 5 Sound {PileRemoved}
Symbol 6 Sound {CardClick}
Symbol 7 Sound {GameOver}
Symbol 8 Sound {NewDeal}
Symbol 9 Sound {ButtonClick}
Symbol 10 Sound {AllPilesRemoved}
Symbol 11 FontUsed by:12 120 133 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 459 460 461 463
Symbol 12 TextUses:11Used by:171
Symbol 13 BitmapUsed by:14
Symbol 14 GraphicUses:13Used by:171
Symbol 15 GraphicUsed by:171
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClip {McMask}Uses:16Used by:171
Symbol 18 BitmapUsed by:19 22 28
Symbol 19 GraphicUses:18Used by:23
Symbol 20 BitmapUsed by:21
Symbol 21 GraphicUses:20Used by:23
Symbol 22 GraphicUses:18Used by:23
Symbol 23 ButtonUses:19 21 22Used by:30
Symbol 24 BitmapUsed by:25
Symbol 25 GraphicUses:24Used by:29
Symbol 26 BitmapUsed by:27
Symbol 27 GraphicUses:26Used by:29
Symbol 28 GraphicUses:18Used by:29
Symbol 29 ButtonUses:25 27 28Used by:30
Symbol 30 MovieClip {SoundButton}Uses:23 29Used by:171 251
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:35
Symbol 33 BitmapUsed by:34
Symbol 34 GraphicUses:33Used by:35
Symbol 35 ButtonUses:32 34Used by:171  Timeline
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:42
Symbol 38 BitmapUsed by:39 40 41
Symbol 39 GraphicUses:38Used by:42
Symbol 40 GraphicUses:38Used by:42
Symbol 41 GraphicUses:38Used by:42
Symbol 42 ButtonUses:37 39 40 41Used by:50
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:49
Symbol 45 BitmapUsed by:46 47 48
Symbol 46 GraphicUses:45Used by:49
Symbol 47 GraphicUses:45Used by:49
Symbol 48 GraphicUses:45Used by:49
Symbol 49 ButtonUses:44 46 47 48Used by:50
Symbol 50 MovieClipUses:42 49Used by:171
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:57
Symbol 53 BitmapUsed by:54 55 56
Symbol 54 GraphicUses:53Used by:57
Symbol 55 GraphicUses:53Used by:57
Symbol 56 GraphicUses:53Used by:57
Symbol 57 ButtonUses:52 54 55 56Used by:171
Symbol 58 BitmapUsed by:59
Symbol 59 GraphicUses:58Used by:64
Symbol 60 BitmapUsed by:61 62 63
Symbol 61 GraphicUses:60Used by:64
Symbol 62 GraphicUses:60Used by:64
Symbol 63 GraphicUses:60Used by:64
Symbol 64 ButtonUses:59 61 62 63Used by:171
Symbol 65 BitmapUsed by:66
Symbol 66 GraphicUses:65Used by:71
Symbol 67 BitmapUsed by:68 69 70
Symbol 68 GraphicUses:67Used by:71
Symbol 69 GraphicUses:67Used by:71
Symbol 70 GraphicUses:67Used by:71
Symbol 71 ButtonUses:66 68 69 70Used by:171
Symbol 72 BitmapUsed by:73
Symbol 73 GraphicUses:72Used by:78
Symbol 74 BitmapUsed by:75 76 77
Symbol 75 GraphicUses:74Used by:78
Symbol 76 GraphicUses:74Used by:78
Symbol 77 GraphicUses:74Used by:78
Symbol 78 ButtonUses:73 75 76 77Used by:171
Symbol 79 BitmapUsed by:80
Symbol 80 GraphicUses:79Used by:83
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:83
Symbol 83 ButtonUses:80 82Used by:171 295
Symbol 84 BitmapUsed by:85 89
Symbol 85 GraphicUses:84Used by:90
Symbol 86 BitmapUsed by:87 88
Symbol 87 GraphicUses:86Used by:90
Symbol 88 GraphicUses:86Used by:90
Symbol 89 GraphicUses:84Used by:90
Symbol 90 ButtonUses:85 87 88 89Used by:171
Symbol 91 BitmapUsed by:92
Symbol 92 GraphicUses:91Used by:97
Symbol 93 BitmapUsed by:94 95 96
Symbol 94 GraphicUses:93Used by:97
Symbol 95 GraphicUses:93Used by:97
Symbol 96 GraphicUses:93Used by:97
Symbol 97 ButtonUses:92 94 95 96Used by:171
Symbol 98 FontUsed by:99 101 102 104 105 107
Symbol 99 EditableTextUses:98Used by:109
Symbol 100 GraphicUsed by:109
Symbol 101 TextUses:98Used by:109
Symbol 102 EditableTextUses:98Used by:109
Symbol 103 GraphicUsed by:109
Symbol 104 TextUses:98Used by:109
Symbol 105 EditableTextUses:98Used by:109
Symbol 106 GraphicUsed by:109
Symbol 107 TextUses:98Used by:109
Symbol 108 GraphicUsed by:109
Symbol 109 ButtonUses:99 100 101 102 103 104 105 106 107 108Used by:171
Symbol 110 BitmapUsed by:111
Symbol 111 GraphicUses:110Used by:116
Symbol 112 BitmapUsed by:113 114 115
Symbol 113 GraphicUses:112Used by:116
Symbol 114 GraphicUses:112Used by:116
Symbol 115 GraphicUses:112Used by:116
Symbol 116 ButtonUses:111 113 114 115Used by:171
Symbol 117 BitmapUsed by:119
Symbol 118 BitmapUsed by:119 132 143
Symbol 119 GraphicUses:117 118Used by:131 470
Symbol 120 TextUses:11Used by:131 470
Symbol 121 BitmapUsed by:122
Symbol 122 GraphicUses:121Used by:125
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:125
Symbol 125 ButtonUses:122 124Used by:131 170
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:130
Symbol 128 BitmapUsed by:129
Symbol 129 GraphicUses:128Used by:130
Symbol 130 ButtonUses:127 129Used by:131 140 468 469
Symbol 131 MovieClipUses:119 120 125 130Used by:171 273
Symbol 132 GraphicUses:118Used by:140
Symbol 133 TextUses:11Used by:140
Symbol 134 BitmapUsed by:135
Symbol 135 GraphicUses:134Used by:140
Symbol 136 BitmapUsed by:137
Symbol 137 GraphicUses:136Used by:138 139
Symbol 138 MovieClipUses:137Used by:139
Symbol 139 Button {MFNWLogo}Uses:137 138Used by:140
Symbol 140 MovieClipUses:132 133 135 130 139Used by:171
Symbol 141 BitmapUsed by:143
Symbol 142 BitmapUsed by:143
Symbol 143 GraphicUses:141 142 118Used by:170
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:148
Symbol 146 BitmapUsed by:147
Symbol 147 GraphicUses:146Used by:148
Symbol 148 ButtonUses:145 147Used by:170
Symbol 149 EditableTextUses:11Used by:170
Symbol 150 EditableTextUses:11Used by:170
Symbol 151 EditableTextUses:11Used by:170
Symbol 152 EditableTextUses:11Used by:170
Symbol 153 EditableTextUses:11Used by:170
Symbol 154 EditableTextUses:11Used by:170
Symbol 155 EditableTextUses:11Used by:170
Symbol 156 EditableTextUses:11Used by:170
Symbol 157 EditableTextUses:11Used by:170
Symbol 158 EditableTextUses:11Used by:170
Symbol 159 EditableTextUses:11Used by:170
Symbol 160 EditableTextUses:11Used by:170
Symbol 161 EditableTextUses:11Used by:170
Symbol 162 EditableTextUses:11Used by:170
Symbol 163 EditableTextUses:11Used by:170
Symbol 164 EditableTextUses:11Used by:170
Symbol 165 EditableTextUses:11Used by:170
Symbol 166 EditableTextUses:11Used by:170
Symbol 167 EditableTextUses:11Used by:170
Symbol 168 EditableTextUses:11Used by:170
Symbol 169 EditableTextUses:11Used by:170
Symbol 170 MovieClip {HighScorePanel}Uses:143 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 125 169Used by:171 469
Symbol 171 MovieClip {StartPanel}Uses:12 14 15 17 30 35 50 57 64 71 78 83 90 97 109 116 131 140 170
Symbol 172 GraphicUsed by:173
Symbol 173 MovieClip {Shield}Uses:172
Symbol 174 FontUsed by:175 194 227 228 229 230 231 232 233 234 290 291 292 293 294 464 467 471
Symbol 175 TextUses:174Used by:176
Symbol 176 MovieClip {nextCard_mc}Uses:175
Symbol 177 BitmapUsed by:178
Symbol 178 GraphicUses:177Used by:181
Symbol 179 BitmapUsed by:180
Symbol 180 GraphicUses:179Used by:181
Symbol 181 Button {BtnSponsorBanner}Uses:178 180Used by:Timeline
Symbol 182 BitmapUsed by:183
Symbol 183 GraphicUses:182Used by:186
Symbol 184 BitmapUsed by:185
Symbol 185 GraphicUses:184Used by:186
Symbol 186 Button {btnMenu}Uses:183 185Used by:472
Symbol 187 BitmapUsed by:188
Symbol 188 GraphicUses:187Used by:191
Symbol 189 BitmapUsed by:190
Symbol 190 GraphicUses:189Used by:191
Symbol 191 Button {btnUndo}Uses:188 190Used by:472
Symbol 192 BitmapUsed by:193
Symbol 193 GraphicUses:192Used by:473  Timeline
Symbol 194 EditableTextUses:174Used by:Timeline
Symbol 195 GraphicUsed by:254 472
Symbol 196 BitmapUsed by:197
Symbol 197 GraphicUses:196Used by:251
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClipUses:198Used by:200
Symbol 200 MovieClipUses:199Used by:201
Symbol 201 MovieClip {_3p_fla.LineBlink_MC_8}Uses:200Used by:202
Symbol 202 MovieClip {_3p_fla.LineMoving_MC_7}Uses:201Used by:203
Symbol 203 MovieClipUses:202Used by:209
Symbol 204 BitmapUsed by:205
Symbol 205 GraphicUses:204Used by:206
Symbol 206 MovieClipUses:205Used by:207
Symbol 207 MovieClip {_3p_fla.StarBlinking_MC_12}Uses:206Used by:208
Symbol 208 MovieClipUses:207Used by:209
Symbol 209 MovieClipUses:203 208Used by:213 217 221
Symbol 210 BitmapUsed by:211
Symbol 211 GraphicUses:210Used by:212
Symbol 212 MovieClipUses:211Used by:213
Symbol 213 MovieClip {_3p_fla.Part1Appearance_MC_4}Uses:209 212Used by:222
Symbol 214 BitmapUsed by:215
Symbol 215 GraphicUses:214Used by:216
Symbol 216 MovieClipUses:215Used by:217
Symbol 217 MovieClip {_3p_fla.Part2Appearance_MC_15}Uses:209 216Used by:222
Symbol 218 BitmapUsed by:219
Symbol 219 GraphicUses:218Used by:220
Symbol 220 MovieClipUses:219Used by:221
Symbol 221 MovieClip {_3p_fla.Part3Appearance_MC_17}Uses:209 220Used by:222
Symbol 222 MovieClipUses:213 217 221Used by:251
Symbol 223 BitmapUsed by:226
Symbol 224 BitmapUsed by:226
Symbol 225 BitmapUsed by:226
Symbol 226 GraphicUses:223 224 225Used by:251
Symbol 227 TextUses:174Used by:251
Symbol 228 TextUses:174Used by:251
Symbol 229 TextUses:174Used by:251
Symbol 230 TextUses:174Used by:251
Symbol 231 EditableTextUses:174Used by:251
Symbol 232 EditableTextUses:174Used by:251
Symbol 233 EditableTextUses:174Used by:251
Symbol 234 EditableTextUses:174Used by:235
Symbol 235 MovieClip {TimerClass}Uses:234Used by:251 472
Symbol 236 FontUsed by:237
Symbol 237 EditableTextUses:236Used by:238
Symbol 238 MovieClipUses:237Used by:239
Symbol 239 MovieClip {_3p_fla.mcTimeBonus_23}Uses:238Used by:251
Symbol 240 BitmapUsed by:241 244
Symbol 241 GraphicUses:240Used by:245
Symbol 242 BitmapUsed by:243
Symbol 243 GraphicUses:242Used by:245
Symbol 244 GraphicUses:240Used by:245
Symbol 245 ButtonUses:241 243 244Used by:251
Symbol 246 BitmapUsed by:247
Symbol 247 GraphicUses:246Used by:250
Symbol 248 BitmapUsed by:249
Symbol 249 GraphicUses:248Used by:250
Symbol 250 ButtonUses:247 249Used by:251
Symbol 251 MovieClip {BackGround}Uses:197 222 226 227 228 229 230 231 232 233 30 235 239 245 250Used by:472
Symbol 252 BitmapUsed by:253
Symbol 253 GraphicUses:252Used by:254
Symbol 254 ButtonUses:253 195Used by:273
Symbol 255 BitmapUsed by:256
Symbol 256 GraphicUses:255Used by:257
Symbol 257 MovieClipUses:256Used by:273
Symbol 258 BitmapUsed by:259
Symbol 259 GraphicUses:258Used by:262
Symbol 260 BitmapUsed by:261
Symbol 261 GraphicUses:260Used by:262
Symbol 262 ButtonUses:259 261Used by:273
Symbol 263 BitmapUsed by:264
Symbol 264 GraphicUses:263Used by:267
Symbol 265 BitmapUsed by:266
Symbol 266 GraphicUses:265Used by:267
Symbol 267 ButtonUses:264 266Used by:273
Symbol 268 BitmapUsed by:269
Symbol 269 GraphicUses:268Used by:272
Symbol 270 BitmapUsed by:271
Symbol 271 GraphicUses:270Used by:272
Symbol 272 ButtonUses:269 271Used by:273
Symbol 273 MovieClip {Menu}Uses:254 257 262 267 272 131Used by:472
Symbol 274 BitmapUsed by:275
Symbol 275 GraphicUses:274Used by:276
Symbol 276 MovieClipUses:275Used by:279
Symbol 277 GraphicUsed by:278
Symbol 278 MovieClipUses:277Used by:279 282
Symbol 279 MovieClip {CardBack}Uses:276 278Used by:472
Symbol 280 BitmapUsed by:281
Symbol 281 GraphicUses:280Used by:282
Symbol 282 MovieClip {WildCard}Uses:281 278Used by:472
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283Used by:295
Symbol 285 BitmapUsed by:286
Symbol 286 GraphicUses:285Used by:289
Symbol 287 BitmapUsed by:288
Symbol 288 GraphicUses:287Used by:289
Symbol 289 ButtonUses:286 288Used by:295
Symbol 290 EditableTextUses:174Used by:295
Symbol 291 EditableTextUses:174Used by:295
Symbol 292 EditableTextUses:174Used by:295
Symbol 293 EditableTextUses:174Used by:295
Symbol 294 EditableTextUses:174Used by:295
Symbol 295 MovieClip {NextRoundPanel}Uses:284 83 289 290 291 292 293 294Used by:472
Symbol 296 BitmapUsed by:297
Symbol 297 GraphicUses:296Used by:298
Symbol 298 MovieClip {c1}Uses:297Used by:472
Symbol 299 BitmapUsed by:300
Symbol 300 GraphicUses:299Used by:301
Symbol 301 MovieClip {c2}Uses:300Used by:472
Symbol 302 BitmapUsed by:303
Symbol 303 GraphicUses:302Used by:304
Symbol 304 MovieClip {c3}Uses:303Used by:472
Symbol 305 BitmapUsed by:306
Symbol 306 GraphicUses:305Used by:307
Symbol 307 MovieClip {c4}Uses:306Used by:472
Symbol 308 BitmapUsed by:309
Symbol 309 GraphicUses:308Used by:310
Symbol 310 MovieClip {c5}Uses:309Used by:472
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:313
Symbol 313 MovieClip {c6}Uses:312Used by:472
Symbol 314 BitmapUsed by:315
Symbol 315 GraphicUses:314Used by:316
Symbol 316 MovieClip {c7}Uses:315Used by:472
Symbol 317 BitmapUsed by:318
Symbol 318 GraphicUses:317Used by:319
Symbol 319 MovieClip {c8}Uses:318Used by:472
Symbol 320 BitmapUsed by:321
Symbol 321 GraphicUses:320Used by:322
Symbol 322 MovieClip {c9}Uses:321Used by:472
Symbol 323 BitmapUsed by:324
Symbol 324 GraphicUses:323Used by:325
Symbol 325 MovieClip {c10}Uses:324Used by:472
Symbol 326 BitmapUsed by:327
Symbol 327 GraphicUses:326Used by:328
Symbol 328 MovieClip {c11}Uses:327Used by:472
Symbol 329 BitmapUsed by:330
Symbol 330 GraphicUses:329Used by:331
Symbol 331 MovieClip {c12}Uses:330Used by:472
Symbol 332 BitmapUsed by:333
Symbol 333 GraphicUses:332Used by:334
Symbol 334 MovieClip {c13}Uses:333Used by:472
Symbol 335 BitmapUsed by:336
Symbol 336 GraphicUses:335Used by:337
Symbol 337 MovieClip {d1}Uses:336Used by:472
Symbol 338 BitmapUsed by:339
Symbol 339 GraphicUses:338Used by:340
Symbol 340 MovieClip {d2}Uses:339Used by:472
Symbol 341 BitmapUsed by:342
Symbol 342 GraphicUses:341Used by:343
Symbol 343 MovieClip {d3}Uses:342Used by:472
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:346
Symbol 346 MovieClip {d4}Uses:345Used by:472
Symbol 347 BitmapUsed by:348
Symbol 348 GraphicUses:347Used by:349
Symbol 349 MovieClip {d5}Uses:348Used by:472
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:352
Symbol 352 MovieClip {d6}Uses:351Used by:472
Symbol 353 BitmapUsed by:354
Symbol 354 GraphicUses:353Used by:355
Symbol 355 MovieClip {d7}Uses:354Used by:472
Symbol 356 BitmapUsed by:357
Symbol 357 GraphicUses:356Used by:358
Symbol 358 MovieClip {d8}Uses:357Used by:472
Symbol 359 BitmapUsed by:360
Symbol 360 GraphicUses:359Used by:361
Symbol 361 MovieClip {d9}Uses:360Used by:472
Symbol 362 BitmapUsed by:363
Symbol 363 GraphicUses:362Used by:364
Symbol 364 MovieClip {d10}Uses:363Used by:472
Symbol 365 BitmapUsed by:366
Symbol 366 GraphicUses:365Used by:367
Symbol 367 MovieClip {d11}Uses:366Used by:472
Symbol 368 BitmapUsed by:369
Symbol 369 GraphicUses:368Used by:370
Symbol 370 MovieClip {d12}Uses:369Used by:472
Symbol 371 BitmapUsed by:372
Symbol 372 GraphicUses:371Used by:373
Symbol 373 MovieClip {d13}Uses:372Used by:472
Symbol 374 BitmapUsed by:375
Symbol 375 GraphicUses:374Used by:376
Symbol 376 MovieClip {h1}Uses:375Used by:472
Symbol 377 BitmapUsed by:378
Symbol 378 GraphicUses:377Used by:379
Symbol 379 MovieClip {h2}Uses:378Used by:472
Symbol 380 BitmapUsed by:381
Symbol 381 GraphicUses:380Used by:382
Symbol 382 MovieClip {h3}Uses:381Used by:472
Symbol 383 BitmapUsed by:384
Symbol 384 GraphicUses:383Used by:385
Symbol 385 MovieClip {h4}Uses:384Used by:472
Symbol 386 BitmapUsed by:387
Symbol 387 GraphicUses:386Used by:388
Symbol 388 MovieClip {h5}Uses:387Used by:472
Symbol 389 BitmapUsed by:390
Symbol 390 GraphicUses:389Used by:391
Symbol 391 MovieClip {h6}Uses:390Used by:472
Symbol 392 BitmapUsed by:393
Symbol 393 GraphicUses:392Used by:394
Symbol 394 MovieClip {h7}Uses:393Used by:472
Symbol 395 BitmapUsed by:396
Symbol 396 GraphicUses:395Used by:397
Symbol 397 MovieClip {h8}Uses:396Used by:472
Symbol 398 BitmapUsed by:399
Symbol 399 GraphicUses:398Used by:400
Symbol 400 MovieClip {h9}Uses:399Used by:472
Symbol 401 BitmapUsed by:402
Symbol 402 GraphicUses:401Used by:403
Symbol 403 MovieClip {h10}Uses:402Used by:472
Symbol 404 BitmapUsed by:405
Symbol 405 GraphicUses:404Used by:406
Symbol 406 MovieClip {h11}Uses:405Used by:472
Symbol 407 BitmapUsed by:408
Symbol 408 GraphicUses:407Used by:409
Symbol 409 MovieClip {h12}Uses:408Used by:472
Symbol 410 BitmapUsed by:411
Symbol 411 GraphicUses:410Used by:412
Symbol 412 MovieClip {h13}Uses:411Used by:472
Symbol 413 BitmapUsed by:414
Symbol 414 GraphicUses:413Used by:415
Symbol 415 MovieClip {s1}Uses:414Used by:472
Symbol 416 BitmapUsed by:417
Symbol 417 GraphicUses:416Used by:418
Symbol 418 MovieClip {s2}Uses:417Used by:472
Symbol 419 BitmapUsed by:420
Symbol 420 GraphicUses:419Used by:421
Symbol 421 MovieClip {s3}Uses:420Used by:472
Symbol 422 BitmapUsed by:423
Symbol 423 GraphicUses:422Used by:424
Symbol 424 MovieClip {s4}Uses:423Used by:472
Symbol 425 BitmapUsed by:426
Symbol 426 GraphicUses:425Used by:427
Symbol 427 MovieClip {s5}Uses:426Used by:472
Symbol 428 BitmapUsed by:429
Symbol 429 GraphicUses:428Used by:430
Symbol 430 MovieClip {s6}Uses:429Used by:472
Symbol 431 BitmapUsed by:432
Symbol 432 GraphicUses:431Used by:433
Symbol 433 MovieClip {s7}Uses:432Used by:472
Symbol 434 BitmapUsed by:435
Symbol 435 GraphicUses:434Used by:436
Symbol 436 MovieClip {s8}Uses:435Used by:472
Symbol 437 BitmapUsed by:438
Symbol 438 GraphicUses:437Used by:439
Symbol 439 MovieClip {s9}Uses:438Used by:472
Symbol 440 BitmapUsed by:441
Symbol 441 GraphicUses:440Used by:442
Symbol 442 MovieClip {s10}Uses:441Used by:472
Symbol 443 BitmapUsed by:444
Symbol 444 GraphicUses:443Used by:445
Symbol 445 MovieClip {s11}Uses:444Used by:472
Symbol 446 BitmapUsed by:447
Symbol 447 GraphicUses:446Used by:448
Symbol 448 MovieClip {s12}Uses:447Used by:472
Symbol 449 BitmapUsed by:450
Symbol 450 GraphicUses:449Used by:451
Symbol 451 MovieClip {s13}Uses:450Used by:472
Symbol 452 BitmapUsed by:453
Symbol 453 GraphicUses:452Used by:469
Symbol 454 BitmapUsed by:455
Symbol 455 GraphicUses:454Used by:458
Symbol 456 BitmapUsed by:457
Symbol 457 GraphicUses:456Used by:458
Symbol 458 ButtonUses:455 457Used by:469 470
Symbol 459 TextUses:11Used by:469
Symbol 460 TextUses:11Used by:469
Symbol 461 TextUses:11Used by:469
Symbol 462 GraphicUsed by:469
Symbol 463 EditableTextUses:11Used by:469
Symbol 464 EditableTextUses:174Used by:469
Symbol 465 BitmapUsed by:466
Symbol 466 GraphicUses:465Used by:468
Symbol 467 EditableTextUses:174Used by:468
Symbol 468 MovieClipUses:466 467 130Used by:469
Symbol 469 MovieClip {GameOverPanel}Uses:453 458 130 459 460 461 462 463 464 468 170Used by:472
Symbol 470 MovieClip {instructions}Uses:119 120 458Used by:472
Symbol 471 TextUses:174Used by:472
Symbol 472 MovieClipUses:195 251 273 235 279 282 191 186 295 298 301 304 307 310 313 316 319 322 325 328 331 334 337 340 343 346 349 352 355 358 361 364 367 370 373 376 379 382 385 388 391 394 397 400 403 406 409 412 415 418 421 424 427 430 433 436 439 442 445 448 451 469 470 471Used by:Timeline
Symbol 473 MovieClipUses:193Used by:Timeline

Instance Names

"percent"Frame 1Symbol 194 EditableText
"btnPlayAgain"Frame 2Symbol 35 Button
"towerBG"Frame 2Symbol 473 MovieClip
"btnSponsorBanner"Frame 2Symbol 181 Button {BtnSponsorBanner}
"btSoundOff"Symbol 30 MovieClip {SoundButton} Frame 1Symbol 23 Button
"btSoundOn"Symbol 30 MovieClip {SoundButton} Frame 1Symbol 29 Button
"_sbtResume"Symbol 131 MovieClip Frame 1Symbol 125 Button
"_sbtBack"Symbol 131 MovieClip Frame 1Symbol 130 Button
"_sbtBack"Symbol 140 MovieClip Frame 1Symbol 130 Button
"_sbtOnline"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 148 Button
"txtP1"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 149 EditableText
"txtS1"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 150 EditableText
"txtP2"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 151 EditableText
"txtS2"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 152 EditableText
"txtP3"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 153 EditableText
"txtS3"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 154 EditableText
"txtP4"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 155 EditableText
"txtS4"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 156 EditableText
"txtP5"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 157 EditableText
"txtS5"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 158 EditableText
"txtP6"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 159 EditableText
"txtS6"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 160 EditableText
"txtP7"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 161 EditableText
"txtS7"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 162 EditableText
"txtP8"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 163 EditableText
"txtS8"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 164 EditableText
"txtP9"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 165 EditableText
"txtS9"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 166 EditableText
"txtP10"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 167 EditableText
"txtS10"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 168 EditableText
"_sbtBack"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 125 Button
"txtSent"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 169 EditableText
"_sbtOnlineSend"Symbol 170 MovieClip {HighScorePanel} Frame 1Symbol 148 Button
"_smcSound"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 30 MovieClip {SoundButton}
"_sbtPlay"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 35 Button
"_smcShowInstructions"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 50 MovieClip
"_sbtHigh"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 57 Button
"btnGoToWebsite"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 64 Button
"_sbtInstructions"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 71 Button
"_sbtCredits"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 78 Button
"btnPlayMoreGames"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 83 Button
"btnAppStore2"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 90 Button
"btnAppStore1"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 97 Button
"btnGoToWebsite"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 109 Button
"btnPlayFacebook"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 116 Button
"_smcInstructions"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 131 MovieClip
"_smcCredits"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 140 MovieClip
"_smcHighScore"Symbol 171 MovieClip {StartPanel} Frame 1Symbol 170 MovieClip {HighScorePanel}
"castle_left"Symbol 222 MovieClip Frame 1Symbol 213 MovieClip {_3p_fla.Part1Appearance_MC_4}
"castle_center"Symbol 222 MovieClip Frame 1Symbol 217 MovieClip {_3p_fla.Part2Appearance_MC_15}
"castle_right"Symbol 222 MovieClip Frame 1Symbol 221 MovieClip {_3p_fla.Part3Appearance_MC_17}
"tf"Symbol 238 MovieClip Frame 1Symbol 237 EditableText
"mc"Symbol 239 MovieClip {_3p_fla.mcTimeBonus_23} Frame 1Symbol 238 MovieClip
"castle_mc"Symbol 251 MovieClip {BackGround} Frame 1Symbol 222 MovieClip
"tfScore"Symbol 251 MovieClip {BackGround} Frame 1Symbol 231 EditableText
"tfCardRun"Symbol 251 MovieClip {BackGround} Frame 1Symbol 232 EditableText
"tfRoundNumber"Symbol 251 MovieClip {BackGround} Frame 1Symbol 233 EditableText
"mcSound"Symbol 251 MovieClip {BackGround} Frame 1Symbol 30 MovieClip {SoundButton}
"mcTimer"Symbol 251 MovieClip {BackGround} Frame 1Symbol 235 MovieClip {TimerClass}
"mcPointsEffect"Symbol 251 MovieClip {BackGround} Frame 1Symbol 239 MovieClip {_3p_fla.mcTimeBonus_23}
"btPause"Symbol 251 MovieClip {BackGround} Frame 1Symbol 245 Button
"_sbtTakePoints"Symbol 251 MovieClip {BackGround} Frame 1Symbol 250 Button
"_smcBoard"Symbol 273 MovieClip {Menu} Frame 1Symbol 257 MovieClip
"_sbtResume"Symbol 273 MovieClip {Menu} Frame 1Symbol 262 Button
"_sbtInstructions"Symbol 273 MovieClip {Menu} Frame 1Symbol 267 Button
"_sbtExit"Symbol 273 MovieClip {Menu} Frame 1Symbol 272 Button
"_smcInstructions"Symbol 273 MovieClip {Menu} Frame 1Symbol 131 MovieClip
"mcBugless"Symbol 279 MovieClip {CardBack} Frame 1Symbol 278 MovieClip
"mcBugless"Symbol 282 MovieClip {WildCard} Frame 1Symbol 278 MovieClip
"btnMoreGames"Symbol 295 MovieClip {NextRoundPanel} Frame 1Symbol 83 Button
"_sbtNextRound"Symbol 295 MovieClip {NextRoundPanel} Frame 1Symbol 289 Button
"_stxTimeBonus"Symbol 295 MovieClip {NextRoundPanel} Frame 1Symbol 290 EditableText
"_stxWildBonus"Symbol 295 MovieClip {NextRoundPanel} Frame 1Symbol 291 EditableText
"_stxDeckBonus"Symbol 295 MovieClip {NextRoundPanel} Frame 1Symbol 292 EditableText
"_stxRoundBonus"Symbol 295 MovieClip {NextRoundPanel} Frame 1Symbol 293 EditableText
"_stxScore"Symbol 295 MovieClip {NextRoundPanel} Frame 1Symbol 294 EditableText
"_stxScore"Symbol 468 MovieClip Frame 1Symbol 467 EditableText
"_sbtMainMenu"Symbol 468 MovieClip Frame 1Symbol 130 Button
"_sbtOK"Symbol 469 MovieClip {GameOverPanel} Frame 1Symbol 458 Button
"_sbtMainMenu"Symbol 469 MovieClip {GameOverPanel} Frame 1Symbol 130 Button
"tfName"Symbol 469 MovieClip {GameOverPanel} Frame 1Symbol 463 EditableText
"_stxScore"Symbol 469 MovieClip {GameOverPanel} Frame 1Symbol 464 EditableText
"noHigh"Symbol 469 MovieClip {GameOverPanel} Frame 1Symbol 468 MovieClip
"_smcHigh"Symbol 469 MovieClip {GameOverPanel} Frame 1Symbol 170 MovieClip {HighScorePanel}
"_sbtOk"Symbol 470 MovieClip {instructions} Frame 1Symbol 458 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 11274 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmln ..."




http://swfchan.com/25/121113/info.shtml
Created: 5/3 -2019 00:34:58 Last modified: 5/3 -2019 00:34:58 Server time: 22/12 -2024 08:21:33