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

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

Sachiko.swf

This is the info page for
Flash #47493

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


Text
1

2

3

4

5

6

7

8

9

10

11

12

ActionScript [AS3]

Section 1
//Regular (fl.transitions.easing.Regular) package fl.transitions.easing { public class Regular { 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 easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return ((((_arg3 * _arg1) * _arg1) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2)); }; --_arg1; return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2)); } } }//package fl.transitions.easing
Section 2
//Strong (fl.transitions.easing.Strong) package fl.transitions.easing { public class Strong { public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / _arg4); return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2)); } } }//package fl.transitions.easing
Section 3
//Tween (fl.transitions.Tween) package fl.transitions { import flash.display.*; import flash.events.*; import flash.utils.*; public class Tween extends EventDispatcher { private var _position:Number;// = NAN public var prevTime:Number;// = NAN public var prevPos:Number;// = NAN public var isPlaying:Boolean;// = false public var begin:Number;// = NAN private var _fps:Number;// = NAN private var _time:Number;// = NAN public var change:Number;// = NAN private var _finish:Number;// = NAN public var looping:Boolean;// = false private var _intervalID:uint;// = 0 public var func:Function; private var _timer:Timer;// = null private var _startTime:Number;// = NAN public var prop:String;// = "" private var _duration:Number;// = NAN public var obj:Object;// = null public var useSeconds:Boolean;// = false protected static var _mc:MovieClip = new MovieClip(); public function Tween(_arg1:Object, _arg2:String, _arg3:Function, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){ isPlaying = false; obj = null; prop = ""; func = function (_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); }; begin = NaN; change = NaN; useSeconds = false; prevTime = NaN; prevPos = NaN; looping = false; _duration = NaN; _time = NaN; _fps = NaN; _position = NaN; _startTime = NaN; _intervalID = 0; _finish = NaN; _timer = null; super(); if (!arguments.length){ return; }; this.obj = _arg1; this.prop = _arg2; this.begin = _arg4; this.position = _arg4; this.duration = _arg6; this.useSeconds = _arg7; if ((_arg3 is Function)){ this.func = _arg3; }; this.finish = _arg5; this._timer = new Timer(100); this.start(); } public function continueTo(_arg1:Number, _arg2:Number):void{ this.begin = this.position; this.finish = _arg1; if (!isNaN(_arg2)){ this.duration = _arg2; }; this.start(); } public function stop():void{ this.stopEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position)); } private function fixTime():void{ if (this.useSeconds){ this._startTime = (getTimer() - (this._time * 1000)); }; } public function set FPS(_arg1:Number):void{ var _local2:Boolean; _local2 = this.isPlaying; this.stopEnterFrame(); this._fps = _arg1; if (_local2){ this.startEnterFrame(); }; } public function get finish():Number{ return ((this.begin + this.change)); } public function get duration():Number{ return (this._duration); } protected function startEnterFrame():void{ var _local1:Number; if (isNaN(this._fps)){ _mc.addEventListener(Event.ENTER_FRAME, this.onEnterFrame, false, 0, true); } else { _local1 = (1000 / this._fps); this._timer.delay = _local1; this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true); this._timer.start(); }; this.isPlaying = true; } public function set time(_arg1:Number):void{ this.prevTime = this._time; if (_arg1 > this.duration){ if (this.looping){ this.rewind((_arg1 - this._duration)); this.update(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position)); } else { if (this.useSeconds){ this._time = this._duration; this.update(); }; this.stop(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position)); }; } else { if (_arg1 < 0){ this.rewind(); this.update(); } else { this._time = _arg1; this.update(); }; }; } protected function stopEnterFrame():void{ if (isNaN(this._fps)){ _mc.removeEventListener(Event.ENTER_FRAME, this.onEnterFrame); } else { this._timer.stop(); }; this.isPlaying = false; } public function getPosition(_arg1:Number=NaN):Number{ if (isNaN(_arg1)){ _arg1 = this._time; }; return (this.func(_arg1, this.begin, this.change, this._duration)); } public function set finish(_arg1:Number):void{ this.change = (_arg1 - this.begin); } public function set duration(_arg1:Number):void{ this._duration = ((_arg1)<=0) ? Infinity : _arg1; } public function setPosition(_arg1:Number):void{ this.prevPos = this._position; if (this.prop.length){ this.obj[this.prop] = (this._position = _arg1); }; this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position)); } public function resume():void{ this.fixTime(); this.startEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position)); } public function fforward():void{ this.time = this._duration; this.fixTime(); } protected function onEnterFrame(_arg1:Event):void{ this.nextFrame(); } public function get position():Number{ return (this.getPosition(this._time)); } public function yoyo():void{ this.continueTo(this.begin, this.time); } public function nextFrame():void{ if (this.useSeconds){ this.time = ((getTimer() - this._startTime) / 1000); } else { this.time = (this._time + 1); }; } protected function timerHandler(_arg1:TimerEvent):void{ this.nextFrame(); _arg1.updateAfterEvent(); } public function get FPS():Number{ return (this._fps); } public function rewind(_arg1:Number=0):void{ this._time = _arg1; this.fixTime(); this.update(); } public function set position(_arg1:Number):void{ this.setPosition(_arg1); } public function get time():Number{ return (this._time); } private function update():void{ this.setPosition(this.getPosition(this._time)); } public function start():void{ this.rewind(); this.startEnterFrame(); this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position)); } public function prevFrame():void{ if (!this.useSeconds){ this.time = (this._time - 1); }; } } }//package fl.transitions
Section 4
//TweenEvent (fl.transitions.TweenEvent) package fl.transitions { import flash.events.*; public class TweenEvent extends Event { public var time:Number;// = NAN public var position:Number;// = NAN public static const MOTION_START:String = "motionStart"; public static const MOTION_STOP:String = "motionStop"; public static const MOTION_LOOP:String = "motionLoop"; public static const MOTION_CHANGE:String = "motionChange"; public static const MOTION_FINISH:String = "motionFinish"; public static const MOTION_RESUME:String = "motionResume"; public function TweenEvent(_arg1:String, _arg2:Number, _arg3:Number, _arg4:Boolean=false, _arg5:Boolean=false){ time = NaN; position = NaN; super(_arg1, _arg4, _arg5); this.time = _arg2; this.position = _arg3; } override public function clone():Event{ return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable)); } } }//package fl.transitions
Section 5
//MochiScores (mochi.MochiScores) package mochi { import flash.display.*; import flash.text.*; public class MochiScores { private static var boardID:String; public static var onErrorHandler:Object; public static var onCloseHandler:Object; 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 requestList(_arg1:Object, _arg2:Object=null):void{ MochiServices.send("scores_requestList", null, _arg1, _arg2); } public static function scoresArrayToObjects(_arg1:Object):Object{ var _local2:Object; var _local3:Number; var _local4:Number; var _local5:Object; var _local6:Object; var _local7:String; var _local8:String; _local2 = {}; 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); } 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 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}); } } }//package mochi
Section 6
//MochiServices (mochi.MochiServices) package mochi { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; import flash.system.*; public class MochiServices { private static var _container:Object; private static var _connected:Boolean = false; private static var _swfVersion:String; private static var _sendChannel:LocalConnection; private static var _rcvChannelName:String; private static var _gatewayURL:String = "http://www.mochiads.com/static/lib/services/services.swf"; private static var _clip:MovieClip; private static var _loader:Loader; private static var _id:String; private static var _listenChannel:LocalConnection; private static var _timer:Timer; private static var _sendChannelName:String; private static var _startTime:Number; private static var _connecting:Boolean = false; public static var onError:Object; private static var _listenChannelName:String = "__mochiservices"; private static var _rcvChannel:LocalConnection; public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } 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 get connected():Boolean{ return (_connected); } 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 init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } public static function get childClip():Object{ return (_clip); } public static function get id():String{ return (_id); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } public static function getVersion():String{ return ("1.31"); } 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 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 doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); if (_clip.parent != null){ Sprite(_clip.parent).removeChild(_clip); }; } 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 onStatus(_arg1:StatusEvent):void{ switch (_arg1.level){ case "error": _connected = false; _listenChannel.connect(_listenChannelName); break; }; } 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()}); _rcvChannel.addEventListener(StatusEvent.STATUS, MochiServices.onStatus); _clip.onReceive = function (_arg1:Object):void{ var cb:String; var cblst:Object; var method:*; var methodName:String; var obj:Object; var pkg = _arg1; cb = pkg.callbackID; cblst = this.client._callbacks[cb]; if (!cblst){ return; }; method = cblst.callbackMethod; methodName = ""; obj = 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 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 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 (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 get clip():Object{ return (_container); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); _rcvChannelName = _arg1; initComChannels(); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ var clipname:String; var f:Function; var req:URLRequest; var id = _arg1; var clip = _arg2; clipname = ("_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(); f = 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); req = 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 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); }; }; }; } 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 createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{ var mc:MovieClip; var parent = _arg1; var name = _arg2; var depth = _arg3; var doAdd = _arg4; mc = 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 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(); }; } } }//package mochi
Section 7
//allCB (allCB) package { import flash.display.*; public dynamic class allCB extends MovieClip { } }//package
Section 8
//allCBSplash (allCBSplash) package { import flash.display.*; import flash.events.*; public class allCBSplash extends MovieClip { private var xVel:Number; private var rotate:Number; private var grav:Number; public function allCBSplash(_arg1:Number, _arg2:Number){ var _local3:*; super(); xVel = _arg1; grav = _arg2; rotate = _arg2; this.x = Math.floor(((Math.random() * 550) - 25)); this.y = -10; _local3 = Math.floor(((Math.random() * 2) + 1)); this.gotoAndStop(_local3); this.alpha = 0.75; addEventListener(Event.ENTER_FRAME, moveCB); } public function moveCBOff(){ this.y = (this.y + 420); } public function deleteCB(){ MovieClip(parent).removeCB(this); parent.removeChild(this); } public function moveCB(_arg1:Event){ this.x = (this.x + xVel); this.y = (this.y + grav); this.rotation = (this.rotation + rotate); if (this == null){ removeEventListener(Event.ENTER_FRAME, moveCB); } else { if (this.y > 420){ removeEventListener(Event.ENTER_FRAME, moveCB); deleteCB(); }; }; } } }//package
Section 9
//allTiles (allTiles) package { import flash.display.*; public dynamic class allTiles extends MovieClip { } }//package
Section 10
//buyRoll (buyRoll) package { import flash.display.*; public dynamic class buyRoll extends MovieClip { } }//package
Section 11
//cherryBlossum (cherryBlossum) package { import flash.display.*; public dynamic class cherryBlossum extends MovieClip { } }//package
Section 12
//clearRowCB (clearRowCB) package { import flash.display.*; import flash.events.*; public class clearRowCB extends MovieClip { private var xVel:Number; private var rotate:Number; private var grav:Number; private var alphaVar:Number; public function clearRowCB(_arg1:Number, _arg2:Number, _arg3:int){ var _local4:*; super(); xVel = _arg1; grav = _arg2; rotate = _arg2; alphaVar = -0.01; this.x = _arg3; this.y = 140; _local4 = Math.floor(((Math.random() * 2) + 1)); this.gotoAndStop(_local4); this.alpha = 0.75; addEventListener(Event.ENTER_FRAME, moveRowCB); } public function moveRowCB(_arg1:Event){ this.x = (this.x + xVel); this.y = (this.y + grav); this.rotation = (this.rotation + rotate); this.alpha = (this.alpha + alphaVar); if (this.alpha <= 0){ removeEventListener(Event.ENTER_FRAME, moveRowCB); deleteRowCB(); }; } public function deleteRowCB(){ MovieClip(parent).removeRowCB(this); parent.removeChild(this); } } }//package
Section 13
//clearRowTwoCB (clearRowTwoCB) package { import flash.display.*; import flash.events.*; public class clearRowTwoCB extends MovieClip { private var xVel:Number; private var rotate:Number; private var grav:Number; private var alphaVar:Number; public function clearRowTwoCB(_arg1:Number, _arg2:Number, _arg3:int){ var _local4:*; super(); xVel = _arg1; grav = _arg2; rotate = _arg2; alphaVar = -0.01; this.x = _arg3; this.y = 215; _local4 = Math.floor(((Math.random() * 2) + 1)); this.gotoAndStop(_local4); this.alpha = 0.75; addEventListener(Event.ENTER_FRAME, moveRowTwoCB); } public function deleteRowTwoCB(){ MovieClip(parent).removeRowTwoCB(this); parent.removeChild(this); } public function moveRowTwoCB(_arg1:Event){ this.x = (this.x + xVel); this.y = (this.y + grav); this.rotation = (this.rotation + rotate); this.alpha = (this.alpha + alphaVar); if (this.alpha <= 0){ removeEventListener(Event.ENTER_FRAME, moveRowTwoCB); deleteRowTwoCB(); }; } } }//package
Section 14
//Click (Click) package { import flash.media.*; public dynamic class Click extends Sound { } }//package
Section 15
//click2 (click2) package { import flash.media.*; public dynamic class click2 extends Sound { } }//package
Section 16
//closeButtonMenu (closeButtonMenu) package { import flash.display.*; public dynamic class closeButtonMenu extends MovieClip { } }//package
Section 17
//congrats (congrats) package { import flash.media.*; public dynamic class congrats extends Sound { } }//package
Section 18
//diamond (diamond) package { import flash.media.*; public dynamic class diamond extends Sound { } }//package
Section 19
//diceSound (diceSound) package { import flash.media.*; public dynamic class diceSound extends Sound { } }//package
Section 20
//die (die) package { import flash.display.*; public dynamic class die extends MovieClip { } }//package
Section 21
//dieFive (dieFive) package { import flash.display.*; public dynamic class dieFive extends MovieClip { } }//package
Section 22
//dieFour (dieFour) package { import flash.display.*; public dynamic class dieFour extends MovieClip { } }//package
Section 23
//dieOne (dieOne) package { import flash.display.*; public dynamic class dieOne extends MovieClip { } }//package
Section 24
//dieSix (dieSix) package { import flash.display.*; public dynamic class dieSix extends MovieClip { } }//package
Section 25
//dieThree (dieThree) package { import flash.display.*; public dynamic class dieThree extends MovieClip { } }//package
Section 26
//dieTwo (dieTwo) package { import flash.display.*; public dynamic class dieTwo extends MovieClip { } }//package
Section 27
//doubleImage (doubleImage) package { import flash.display.*; import flash.events.*; import fl.transitions.*; import fl.transitions.easing.*; public class doubleImage extends MovieClip { private var sdx:int; private var doubleObjectIn:Tween; private var doubleObjectOut:Tween; public function doubleImage(){ doubleObjectIn = new Tween(this, "alpha", Regular.easeIn, 0, 1, 6, false); doubleObjectIn.addEventListener(TweenEvent.MOTION_FINISH, showDoubleImageOut); } public function deleteDoublesImage(){ MovieClip(parent).removeDoublesImage(this); parent.removeChild(this); } public function showDoubleImageOut(_arg1:TweenEvent){ doubleObjectIn.removeEventListener(TweenEvent.MOTION_FINISH, showDoubleImageOut); doubleObjectOut = new Tween(this, "alpha", Regular.easeOut, 1, 0, 16, false); doubleObjectOut.addEventListener(TweenEvent.MOTION_FINISH, showDoubleImageRemove); } public function showDoubleImageRemove(_arg1:TweenEvent){ doubleObjectOut.removeEventListener(TweenEvent.MOTION_FINISH, showDoubleImageRemove); deleteDoublesImage(); } } }//package
Section 28
//fan (fan) package { import flash.display.*; public dynamic class fan extends MovieClip { } }//package
Section 29
//gameBkgd (gameBkgd) package { import flash.display.*; public dynamic class gameBkgd extends MovieClip { } }//package
Section 30
//GameOver (GameOver) package { import flash.display.*; public dynamic class GameOver extends MovieClip { } }//package
Section 31
//greatJob (greatJob) package { import flash.display.*; public dynamic class greatJob extends MovieClip { } }//package
Section 32
//instruct1 (instruct1) package { import flash.display.*; public dynamic class instruct1 extends MovieClip { } }//package
Section 33
//instruct2 (instruct2) package { import flash.display.*; public dynamic class instruct2 extends MovieClip { } }//package
Section 34
//instructionBkgd (instructionBkgd) package { import flash.display.*; public dynamic class instructionBkgd extends MovieClip { } }//package
Section 35
//instructionsButton (instructionsButton) package { import flash.display.*; public dynamic class instructionsButton extends MovieClip { } }//package
Section 36
//kotoA (kotoA) package { import flash.media.*; public dynamic class kotoA extends Sound { } }//package
Section 37
//kotoB (kotoB) package { import flash.media.*; public dynamic class kotoB extends Sound { } }//package
Section 38
//kotoC (kotoC) package { import flash.media.*; public dynamic class kotoC extends Sound { } }//package
Section 39
//kotoD (kotoD) package { import flash.media.*; public dynamic class kotoD extends Sound { } }//package
Section 40
//kotoE (kotoE) package { import flash.media.*; public dynamic class kotoE extends Sound { } }//package
Section 41
//kotoF (kotoF) package { import flash.media.*; public dynamic class kotoF extends Sound { } }//package
Section 42
//kotoG (kotoG) package { import flash.media.*; public dynamic class kotoG extends Sound { } }//package
Section 43
//menuButton (menuButton) package { import flash.display.*; public dynamic class menuButton extends MovieClip { } }//package
Section 44
//MochiAd (MochiAd) package { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; import flash.system.*; public class MochiAd { public static function getVersion():String{ return ("2.4"); } public static function showClickAwayAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_timeout:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var sendHostProgress:Boolean; var options = _arg1; DEFAULTS = {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; ad_timeout = 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(); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = 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); }; sendHostProgress = false; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Number; var _local3:Boolean; var _local4:Number; if (!this.parent){ delete this.onEnterFrame; return; }; _local1 = this.parent._mochiad_ctr; _local2 = (getTimer() - this.started); _local3 = false; 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 _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function _allowDomains(_arg1:String):String{ var _local2:String; _local2 = _arg1.split("/")[2].split(":")[0]; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } 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 showInterLevelAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_msec:Number; var ad_timeout:Number; var fadeout_time:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var options = _arg1; DEFAULTS = {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; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = 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(); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = 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{ var _local1:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; _local1 = (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; _local2 = 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 _local1:Object; var _local2:Number; var _local3:Boolean; var _local4:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; _local1 = this.parent._mochiad_ctr; _local2 = (getTimer() - this.started); _local3 = false; 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 _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local3:Object; var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; _local3 = {}; 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 _cleanup(_arg1:Object):void{ var idx:Number; 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); }; idx = DisplayObjectContainer(mc).numChildren; while (idx > 0) { idx = (idx - 1); DisplayObjectContainer(mc).removeChildAt(idx); }; for (k in mc) { delete mc[k]; }; } public static function load(_arg1:Object):MovieClip{ var DEFAULTS:Object; var clip:Object; var depth:Number; var mc:MovieClip; var wh:Array; var lv:URLVariables; 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; DEFAULTS = {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.")); }; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, "_mochiad", depth); wh = 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; }; lv = 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")); 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 runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{ var _local4:Array; var _local5:Number; _local4 = _arg2.split("."); _local5 = 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 createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip; _local4 = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local3:Object; var _local4:Number; var _local5:Number; var _local6:Array; _local3 = _arg2.getBounds(_arg2.root); _local4 = 0; _local5 = 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 adShowing(_arg1:Object):void{ _arg1.origFrameRate = _arg1.stage.frameRate; _arg1.stage.frameRate = 30; } public static function getValue(_arg1:Object, _arg2:String):Object{ var _local3:Array; var _local4:Number; _local3 = _arg2.split("."); _local4 = 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 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; var _local5:Number; _local4 = _arg2.split("."); _local5 = 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 showPreGameAd(_arg1:Object):void{ var DEFAULTS:Object; var clip:Object; var ad_msec:Number; var ad_timeout:Number; var fadeout_time:Number; var mc:MovieClip; var wh:Array; var w:Number; var h:Number; var chk:MovieClip; var bar:MovieClip; var bar_color:Number; var bar_background:Number; var bar_outline:Number; var backing_mc:MovieClip; var backing:Object; var inside_mc:MovieClip; var inside:Object; var outline_mc:MovieClip; var outline:Object; var complete:Boolean; var unloaded:Boolean; var f:Function; var sendHostProgress:Boolean; var r:MovieClip; var options = _arg1; DEFAULTS = {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 ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0){ options.ad_started(); setTimeout(options.ad_finished, 100); return; }; clip = options.clip; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = 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{ var fn:Function; MochiAd._cleanup(mc); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; wh = MochiAd._getRes(options, clip); w = wh[0]; h = 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); bar = 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); }; bar_color = options.color; delete options.color; bar_background = options.background; delete options.background; bar_outline = options.outline; delete options.outline; backing_mc = createEmptyMovieClip(bar, "_outline", 1); backing = 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(); inside_mc = createEmptyMovieClip(bar, "_inside", 2); inside = 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; outline_mc = createEmptyMovieClip(bar, "_outline", 3); outline = 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; _local1 = (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; f = 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; _local2 = 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 _local1:Object; var _local2:Object; var _local3:Number; var _local4:Boolean; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Object; var _local10:Number; var _local11:Number; if (((!(this.parent)) || (!(this.parent.parent)))){ delete this["onEnterFrame"]; return; }; _local1 = this.parent.parent.root; _local2 = this.parent._mochiad_ctr; _local3 = (getTimer() - this.started); _local4 = false; _local5 = _local1.loaderInfo.bytesTotal; _local6 = _local1.loaderInfo.bytesLoaded; if (complete){ _local6 = Math.max(1, _local6); _local5 = _local6; }; _local7 = ((100 * _local6) / _local5); _local8 = ((100 * _local3) / chk.ad_msec); _local9 = this._mochiad_bar._inside; _local10 = 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 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 doOnEnterFrame(_arg1:MovieClip):void{ var f:Function; var mc = _arg1; f = 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); } } }//package
Section 45
//MochiBot (MochiBot) package { import flash.display.*; import flash.net.*; import flash.system.*; public dynamic class MochiBot extends Sprite { public static function track(_arg1:Sprite, _arg2:String):MochiBot{ var _local3:MochiBot; var _local4:String; var _local5:URLVariables; var _local6:String; var _local7:URLRequest; var _local8:Loader; if (Security.sandboxType == "localWithFile"){ return (null); }; _local3 = new (MochiBot); _arg1.addChild(_local3); Security.allowDomain("*"); Security.allowInsecureDomain("*"); _local4 = "http://core.mochibot.com/my/core.swf"; _local5 = new URLVariables(); _local5["sb"] = Security.sandboxType; _local5["v"] = Capabilities.version; _local5["swfid"] = _arg2; _local5["mv"] = "8"; _local5["fv"] = "9"; _local6 = _local3.root.loaderInfo.loaderURL; if (_local6.indexOf("http") == 0){ _local5["url"] = _local6; } else { _local5["url"] = "local"; }; _local7 = new URLRequest(_local4); _local7.contentType = "application/x-www-form-urlencoded"; _local7.method = URLRequestMethod.POST; _local7.data = _local5; _local8 = new Loader(); _local3.addChild(_local8); _local8.load(_local7); return (_local3); } } }//package
Section 46
//mochiClip (mochiClip) package { import flash.display.*; public dynamic class mochiClip extends MovieClip { } }//package
Section 47
//musicOff (musicOff) package { import flash.display.*; public dynamic class musicOff extends MovieClip { } }//package
Section 48
//musicOn (musicOn) package { import flash.display.*; public dynamic class musicOn extends MovieClip { } }//package
Section 49
//nextButton (nextButton) package { import flash.display.*; public dynamic class nextButton extends MovieClip { } }//package
Section 50
//noButton (noButton) package { import flash.display.*; public dynamic class noButton extends MovieClip { } }//package
Section 51
//noMoves (noMoves) package { import flash.display.*; import flash.events.*; import fl.transitions.*; import fl.transitions.easing.*; public class noMoves extends MovieClip { private var noMovesObjectOut:Tween; private var sdx:int; private var noMovesObjectIn:Tween; public function noMoves(){ noMovesObjectIn = new Tween(this, "alpha", Regular.easeIn, 0, 1, 6, false); noMovesObjectIn.addEventListener(TweenEvent.MOTION_FINISH, showNoMovesImageOut); } public function showNoMovesImageRemove(_arg1:TweenEvent){ noMovesObjectOut.removeEventListener(TweenEvent.MOTION_FINISH, showNoMovesImageRemove); deleteNoMovesImage(); } public function deleteNoMovesImage(){ MovieClip(parent).removeNoPlayImage(this); parent.removeChild(this); } public function showNoMovesImageOut(_arg1:TweenEvent){ noMovesObjectIn.removeEventListener(TweenEvent.MOTION_FINISH, showNoMovesImageOut); noMovesObjectOut = new Tween(this, "alpha", Regular.easeOut, 1, 0, 16, false); noMovesObjectOut.addEventListener(TweenEvent.MOTION_FINISH, showNoMovesImageRemove); } } }//package
Section 52
//nspLogo (nspLogo) package { import flash.display.*; public dynamic class nspLogo extends MovieClip { } }//package
Section 53
//pinkCB (pinkCB) package { import flash.display.*; public dynamic class pinkCB extends MovieClip { } }//package
Section 54
//playAgain (playAgain) package { import flash.display.*; public dynamic class playAgain extends MovieClip { } }//package
Section 55
//playGameButton (playGameButton) package { import flash.display.*; public dynamic class playGameButton extends MovieClip { } }//package
Section 56
//playMore (playMore) package { import flash.display.*; public dynamic class playMore extends MovieClip { } }//package
Section 57
//rollDice (rollDice) package { import flash.display.*; public dynamic class rollDice extends MovieClip { } }//package
Section 58
//rowCleared (rowCleared) package { import flash.display.*; import flash.events.*; import fl.transitions.*; import fl.transitions.easing.*; public class rowCleared extends MovieClip { private var rowClearedObjectOut:Tween; private var rowClearedObjectIn:Tween; public function rowCleared(){ rowClearedObjectIn = new Tween(this, "alpha", Strong.easeIn, 0, 1, 24, false); rowClearedObjectIn.addEventListener(TweenEvent.MOTION_FINISH, showRowClearedImageOut); } public function showRowClearedImageOut(_arg1:TweenEvent){ rowClearedObjectIn.removeEventListener(TweenEvent.MOTION_FINISH, showRowClearedImageOut); rowClearedObjectOut = new Tween(this, "alpha", Regular.easeOut, 1, 0, 32, false); rowClearedObjectOut.addEventListener(TweenEvent.MOTION_FINISH, showRowClearedImageRemove); } public function deleteRowClearedImage(){ MovieClip(parent).removeRowClearedImage(this); parent.removeChild(this); } public function showRowClearedImageRemove(_arg1:TweenEvent){ rowClearedObjectOut.removeEventListener(TweenEvent.MOTION_FINISH, showRowClearedImageRemove); deleteRowClearedImage(); } } }//package
Section 59
//Sachiko (Sachiko) package { import flash.display.*; import flash.events.*; import fl.transitions.*; import mochi.*; import fl.transitions.easing.*; import flash.utils.*; import flash.media.*; import flash.text.*; import flash.net.*; import flash.ui.*; public dynamic class Sachiko extends MovieClip { private var buyRollDelayTimer:Timer; var aNote:kotoA; private var rowTwoTile8Num:uint;// = 8 public var nextObject:nextButton; private var statusTextField:TextField; private var CBLength:int; private var musicTimer:Timer; private var dieTextFormat:TextFormat; private var dieTwoX:uint;// = 270 private var dieTwoY:uint;// = 325 private var fanObject:fan; public var playAgainImage:playAgain; private var die2TextField:TextField; private var rowOneTile3Num:uint;// = 3 private var rowTwoTile1:allTiles; private var rowTwoTile2:allTiles; private var rowTwoTile5:allTiles; private var rowTwoTile7:allTiles; private var rowTwoTile9:allTiles; private var rowTwoTile4:allTiles; private var rowOneTile5Status:String; private var rowTwoTile6:allTiles; private var rowTwoTile8:allTiles; private var noObject:noButton; private var rowTwoTile3:allTiles; public var clickSound:click2; private var rowTwoTile9Num:uint;// = 9 public var finalScoreTextField:TextField; private var rowOneTile1:allTiles; private var rowOneTile5:allTiles; private var rowOneTile6:allTiles; private var rowOneTile7:allTiles; private var rowOneTile8:allTiles; private var rowOneTile2:allTiles; private var rowOneTile3:allTiles; private var rowOneTile9:allTiles; private var checkWinRowTwoStatus:String;// = "playing" private var rowOneTile4:allTiles; private var freeRolls:int; private var nextRowCB:Timer; private var rowTwoTile5Status:String; private var canPlayValue:int; private var rowOneTile4Num:uint;// = 4 private var doublesArray:Array; private var money:uint; var clearRowSound:diamond; private var musicOffButton:musicOff; private var movesCounter:int; public var instructionBkgdObject:instructionBkgd; var gNote:kotoG; private var yesObject:yesButton; private var rowTwoTile10Num:uint;// = 10 private var scoringCloseObject:scoringClose; public var nextCBEnd:Timer; private var fanUp:Tween; private var rowOneTile5Num:uint;// = 5 private var rowOneTile4Status:String; private var checkWinRowOneStatus:String;// = "playing" private var rowClearedArray:Array; public var rowTwoBonusTextField:TextField; private var DieCombo:uint; public var myMenu; private var tilesLeft:uint; private var rowOneCBXOffset:int; public var CBArray:Array; public var CBArrayEnd:Array; public var instructionsObject:instructionsButton; public var playMoreImageEnd:playMore; private var greatJobObject:greatJob; private var buyRollObject:buyRoll; public var closeObjectMenu:closeButtonMenu; private var scoreTextField:TextField; private var rowTwoTile4Status:String; private var rowOneTile9Status:String; private var rowOneTile6Num:uint;// = 6 public var gameTitleEnd:titleMenu; private var rowTwoTile1Num:uint;// = 1 private var menuObject:menuButton; var fNote:kotoF; public var scoreTextFieldEnd:TextField; public var gameTitle:titleMenu; private var CBRowTwoArray:Array; public var freeRollsBonusTextField:TextField; public var copyrightText:String; public var movesTextFieldEnd:TextField; public var freeRollsBonus:int; private var rowTwoTile9Status:String; private var Tokens:Array; private var rowOneTile7Num:uint;// = 7 private var rowOneTile3Status:String; public var movesBonusTextField:TextField; private var rowTwoTile2Num:uint;// = 2 private var token:uint; var eNote:kotoE; private var rowTwoTile10:allTiles; var gameClickSound:click2; var dieRollSound; private var tokenClipFrame:uint; private var nextRowTwoCB:Timer; private var rowBonusValue:int; private var rowOneTile8Status:String; private var rollDiceObject:rollDice; private var rowTwoTile3Status:String; private var rowOneTile8Num:uint;// = 8 private var rowOneTile10Num:uint;// = 10 public var playMoreImage:playMore; private var rowTwoTile3Num:uint;// = 3 private var CBRowArray:Array; private var gameOverObjectOut:Tween; private var fanDown:Tween; private var fanPauseTimer:Timer; var dNote:kotoD; private var rowTwoTile8Status:String; private var dieComboTextField:TextField; public var movesBonus:int; private var rowOneTile2Status:String; public var splashBkgdImageEnd:splashBkgd; private var rowOneTile9Num:uint;// = 9 public var nextCB:Timer; var tokenSound:congrats; private var rowOneTile10:allTiles; private var rowTwoTile4Num:uint;// = 4 public var copyrightTextEnd:String; public var moneyTextFieldEnd:TextField; private var score:uint; public var finalScore:int; private var noPlayArray:Array; private var gameOverObject:GameOver; private var gameOverObjectIn:Tween; private var rowOneTile7Status:String; public var endGameTextFormat:TextFormat; private var greatJobObjectIn:Tween; private var rowTwoTile10Status:String; private var rowTwoTile2Status:String; private var bkgd:gameBkgd; private var moneyTextField:TextField; private var scoringObject:scoringButton; var cNote:kotoC; private var tokenValue:uint; private var rowTwoTile5Num:uint;// = 5 private var dieTwoImage:die; private var die1TextField:TextField; private var rowTwoTile7Status:String; private var movesTextField:TextField; private var doublesTextField:TextField; public var copyrightTextFieldEnd:TextField; private var musicOnButton:musicOn; private var dieOneImage:die; public var moneyBonus:int; private var rowOneTile1Status:String; public var moneyBonusTextField:TextField; private var rowTwoTile6Num:uint;// = 6 private var dieOneX:uint;// = 220 private var dieOneY:uint;// = 325 public var splashBkgdImage:splashBkgd; private var doublesShown:String; public var freeRollsTextFieldEnd:TextField; private var greatJobObjectOut:Tween; public var allowed_site:String; private var gameOverStatus:String; public var instructText1:instruct1; public var instructText2:instruct2; private var rowOneTile6Status:String; private var rowOneTile1Num:uint;// = 1 public var playObject:playGameButton; var bNote:kotoB; public var endClickSound:click2; private var rowTwoTile1Status:String; private var rowTwoScore:int; private var rowTwoTile7Num:uint;// = 7 public var rowOneBonusTextField:TextField; private var doubleCount:int; public var copyrightTextField:TextField; public var companyLogo:nspLogo; private var scoringImage:scoring; private var rowOneScore:int; private var Die1:uint; private var Die2:uint; private var endGameTimer:Timer; private var rowTwoTile6Status:String; private var rowOneTile10Status:String; private var rowOneTile2Num:uint;// = 2 public var companyLogoEnd:nspLogo; private var rowTwoCBXOffset:int; private static const boardWidth:uint = 11; private static const boardHeight:uint = 2; private static const boardOffsetY:Number = 130; private static const cardHorizontalSpacing:Number = 26; private static const cardVerticalSpacing:Number = 70; private static const boardOffsetX:Number = 120; public function Sachiko(){ dieOneX = 220; dieOneY = 325; dieTwoX = 270; dieTwoY = 325; rowOneTile1Num = 1; rowOneTile2Num = 2; rowOneTile3Num = 3; rowOneTile4Num = 4; rowOneTile5Num = 5; rowOneTile6Num = 6; rowOneTile7Num = 7; rowOneTile8Num = 8; rowOneTile9Num = 9; rowOneTile10Num = 10; rowTwoTile1Num = 1; rowTwoTile2Num = 2; rowTwoTile3Num = 3; rowTwoTile4Num = 4; rowTwoTile5Num = 5; rowTwoTile6Num = 6; rowTwoTile7Num = 7; rowTwoTile8Num = 8; rowTwoTile9Num = 9; rowTwoTile10Num = 10; checkWinRowOneStatus = "playing"; checkWinRowTwoStatus = "playing"; gameClickSound = new click2(); tokenSound = new congrats(); clearRowSound = new diamond(); aNote = new kotoA(); bNote = new kotoB(); cNote = new kotoC(); dNote = new kotoD(); eNote = new kotoE(); fNote = new kotoF(); gNote = new kotoG(); dieRollSound = new diceSound(); super(); addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4); } public function cherryBlossum(){ doubleCount++; doublesTextField.text = String(doubleCount); } public function findBonusRowPoints(){ if (rowBonusValue == 1){ rowOneScore = 7500; showBonusRowOnePoints(); }; if (rowBonusValue == 2){ rowOneScore = 15000; showBonusRowOnePoints(); }; } public function rowOneTile6Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowOneTile6.buttonMode = false; rowOneTile6.removeEventListener(MouseEvent.CLICK, rowOneTile6Clicked); rowOneTile6Status = "used"; rowOneTile6.alpha = 1; rowOneTile6.gotoAndStop(11); flipTile(rowOneTile6); findToken(rowOneTile6.x, rowOneTile6.y); checkWin(); resetTiles(); calcMoves(); } public function delightMenu(_arg1:MouseEvent){ menuObject.removeEventListener(MouseEvent.MOUSE_OUT, delightMenu); menuObject.alpha = 1; menuObject.addEventListener(MouseEvent.MOUSE_OVER, hilightMenu); } public function doFreeRolls(){ freeRolls = doubleCount; trace(freeRolls); doubleCount = 0; doublesTextField.text = String(doubleCount); if (freeRolls > 0){ movesCounter = (movesCounter + freeRolls); movesTextField.text = String(movesCounter); calcMoves(); } else { trace("end of game"); buyRollDelay(); }; } public function playEndSound(_arg1:Object){ var _local2:SoundChannel; _local2 = _arg1.play(); } public function removeInstructions(_arg1:MouseEvent){ playMenuSound(clickSound); closeObjectMenu.buttonMode = false; closeObjectMenu.removeEventListener(MouseEvent.CLICK, removeInstructions); closeObjectMenu.removeEventListener(MouseEvent.MOUSE_OUT, hilightClose); removeChild(closeObjectMenu); removeChild(instructText2); removeChild(instructionBkgdObject); instructionsObject.buttonMode = true; instructionsObject.addEventListener(MouseEvent.CLICK, showInstructions); } public function rowTwoTile3Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowTwoTile3.buttonMode = false; rowTwoTile3.removeEventListener(MouseEvent.CLICK, rowTwoTile3Clicked); rowTwoTile3Status = "used"; rowTwoTile3.alpha = 1; rowTwoTile3.gotoAndStop(11); flipTile(rowTwoTile3); findToken(rowTwoTile3.x, rowTwoTile3.y); checkWin(); resetTiles(); calcMoves(); } public function hilightScoring(_arg1:MouseEvent){ scoringObject.removeEventListener(MouseEvent.MOUSE_OVER, hilightScoring); scoringObject.alpha = 0.75; scoringObject.addEventListener(MouseEvent.MOUSE_OUT, delightScoring); } function frame4(){ copyrightTextEnd = "Copyright 1999-2008 NSP Games, LLC. All Rights Reserved."; endClickSound = new click2(); moneyBonus = 0; movesBonus = 0; freeRollsBonus = 0; finalScore = 0; moneyBonus = (money * 10); movesBonus = (movesCounter * 100); freeRollsBonus = (doubleCount * 200); finalScore = (((score + moneyBonus) + movesBonus) + freeRollsBonus); MochiScores.showLeaderboard({boardID:"afe9292d345e4ea8", score:finalScore, onClose:myCloseFunction, showTableRank:true, previewScores:true}); CBArrayEnd = new Array(); endGameTextFormat = new TextFormat(); endGameTextFormat.font = "Arial"; endGameTextFormat.size = 16; endGameTextFormat.color = 0; endGameTextFormat.bold = true; splashBkgdImageEnd = new splashBkgd(); splashBkgdImageEnd.x = 0; splashBkgdImageEnd.y = 0; addChild(splashBkgdImageEnd); setChildIndex(splashBkgdImageEnd, 0); gameTitleEnd = new titleMenu(); gameTitleEnd.x = 125; gameTitleEnd.y = 10; addChild(gameTitleEnd); playAgainImage = new playAgain(); playAgainImage.x = 132; playAgainImage.y = 220; playAgainImage.buttonMode = true; playAgainImage.addEventListener(MouseEvent.CLICK, newGame); playAgainImage.addEventListener(MouseEvent.MOUSE_OVER, hilightNewGame); addChild(playAgainImage); playMoreImageEnd = new playMore(); playMoreImageEnd.x = 160; playMoreImageEnd.y = 270; addChild(playMoreImageEnd); companyLogoEnd = new nspLogo(); companyLogoEnd.x = 157; companyLogoEnd.y = 296; companyLogoEnd.addEventListener(MouseEvent.CLICK, navigateHomeEnd); companyLogoEnd.buttonMode = true; addChild(companyLogoEnd); copyrightTextFieldEnd = new TextField(); copyrightTextFieldEnd.x = 100; copyrightTextFieldEnd.y = 380; copyrightTextFieldEnd.width = 400; copyrightTextFieldEnd.selectable = false; copyrightTextFieldEnd.text = copyrightTextEnd; addChild(copyrightTextFieldEnd); scoreTextFieldEnd = new TextField(); scoreTextFieldEnd.defaultTextFormat = endGameTextFormat; scoreTextFieldEnd.x = 70; scoreTextFieldEnd.y = 90; scoreTextFieldEnd.width = 180; scoreTextFieldEnd.height = 20; scoreTextFieldEnd.selectable = false; addChild(scoreTextFieldEnd); scoreTextFieldEnd.text = String(("Points Scored: " + score)); moneyTextFieldEnd = new TextField(); moneyTextFieldEnd.defaultTextFormat = endGameTextFormat; moneyTextFieldEnd.x = 70; moneyTextFieldEnd.y = 115; moneyTextFieldEnd.width = 180; moneyTextFieldEnd.height = 20; moneyTextFieldEnd.selectable = false; addChild(moneyTextFieldEnd); moneyTextFieldEnd.text = String(("Yen earned: " + money)); movesTextFieldEnd = new TextField(); movesTextFieldEnd.defaultTextFormat = endGameTextFormat; movesTextFieldEnd.x = 70; movesTextFieldEnd.y = 140; movesTextFieldEnd.width = 180; movesTextFieldEnd.height = 20; movesTextFieldEnd.selectable = false; addChild(movesTextFieldEnd); movesTextFieldEnd.text = String(("Moves Left: " + movesCounter)); freeRollsTextFieldEnd = new TextField(); freeRollsTextFieldEnd.defaultTextFormat = endGameTextFormat; freeRollsTextFieldEnd.x = 70; freeRollsTextFieldEnd.y = 165; freeRollsTextFieldEnd.width = 180; freeRollsTextFieldEnd.height = 20; freeRollsTextFieldEnd.selectable = false; addChild(freeRollsTextFieldEnd); freeRollsTextFieldEnd.text = String(("Free Rolls Left: " + doubleCount)); moneyBonusTextField = new TextField(); moneyBonusTextField.defaultTextFormat = endGameTextFormat; moneyBonusTextField.x = 250; moneyBonusTextField.y = 115; moneyBonusTextField.width = 180; moneyBonusTextField.height = 20; moneyBonusTextField.selectable = false; addChild(moneyBonusTextField); moneyBonusTextField.text = String(("X 10 = " + moneyBonus)); movesBonusTextField = new TextField(); movesBonusTextField.defaultTextFormat = endGameTextFormat; movesBonusTextField.x = 250; movesBonusTextField.y = 140; movesBonusTextField.width = 180; movesBonusTextField.height = 20; movesBonusTextField.selectable = false; addChild(movesBonusTextField); movesBonusTextField.text = String(("X 100 = " + movesBonus)); freeRollsBonusTextField = new TextField(); freeRollsBonusTextField.defaultTextFormat = endGameTextFormat; freeRollsBonusTextField.x = 250; freeRollsBonusTextField.y = 165; freeRollsBonusTextField.width = 180; freeRollsBonusTextField.height = 20; freeRollsBonusTextField.selectable = false; addChild(freeRollsBonusTextField); freeRollsBonusTextField.text = String(("X 200 = " + freeRollsBonus)); finalScoreTextField = new TextField(); finalScoreTextField.defaultTextFormat = endGameTextFormat; finalScoreTextField.x = 250; finalScoreTextField.y = 190; finalScoreTextField.width = 180; finalScoreTextField.height = 20; finalScoreTextField.selectable = false; addChild(finalScoreTextField); finalScoreTextField.text = String(("Total Score = " + finalScore)); setNextCBEnd(); stop(); } function frame1(){ MochiServices.connect("b42dd640a8ee051b", this); MochiAd.showPreGameAd({clip:root, id:"b42dd640a8ee051b", res:"500x400", background:13169919, color:15101646, outline:15116648, no_bg:true}); MochiBot.track(this, "73ced2fb"); } function frame2(){ myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); this.contextMenu = myMenu; copyrightText = "Copyright 1999-2008 NSP Games, LLC. All Rights Reserved."; clickSound = new click2(); allowed_site = "flashgamelicense.com"; CBArray = new Array(); splashBkgdImage = new splashBkgd(); splashBkgdImage.x = 0; splashBkgdImage.y = 0; addChild(splashBkgdImage); setChildIndex(splashBkgdImage, 0); gameTitle = new titleMenu(); gameTitle.x = 125; gameTitle.y = 10; addChild(gameTitle); playObject = new playGameButton(); playObject.x = 201; playObject.y = 120; playObject.buttonMode = true; playObject.addEventListener(MouseEvent.CLICK, startGame); playObject.addEventListener(MouseEvent.MOUSE_OVER, hilightPlay); addChild(playObject); instructionsObject = new instructionsButton(); instructionsObject.x = 139; instructionsObject.y = 180; instructionsObject.buttonMode = true; instructionsObject.addEventListener(MouseEvent.CLICK, showInstructions); instructionsObject.addEventListener(MouseEvent.MOUSE_OVER, hilightInstructions); addChild(instructionsObject); playMoreImage = new playMore(); playMoreImage.x = 160; playMoreImage.y = 270; addChild(playMoreImage); companyLogo = new nspLogo(); companyLogo.x = 157; companyLogo.y = 296; companyLogo.addEventListener(MouseEvent.CLICK, navigateHome); companyLogo.buttonMode = true; addChild(companyLogo); copyrightTextField = new TextField(); copyrightTextField.x = 100; copyrightTextField.y = 380; copyrightTextField.width = 400; copyrightTextField.selectable = false; copyrightTextField.text = copyrightText; addChild(copyrightTextField); setNextCB(); stop(); } public function checkAvailRowTwoTile10(){ if ((((((rowTwoTile10Num == Die1)) || ((rowTwoTile10Num == Die2)))) || ((rowTwoTile10Num == DieCombo)))){ rowTwoTile10.alpha = 0.5; rowTwoTile10.buttonMode = true; rowTwoTile10.addEventListener(MouseEvent.CLICK, rowTwoTile10Clicked); canPlayValue++; }; } public function rollTheDice(){ playSound(dieRollSound); canPlayValue = 0; doublesShown = "no"; Die1 = Math.floor(((Math.random() * 6) + 1)); Die2 = Math.floor(((Math.random() * 6) + 1)); DieCombo = (Die1 + Die2); if (Die1 == Die2){ doublesShown = "yes"; showDoubles(); }; showDieRolls(); } function frame3(){ startSachiko(); } public function clearRowCBs(){ var _local1:int; _local1 = (CBRowArray.length - 1); while (_local1 >= 0) { CBRowArray[_local1].deleteRowCB(); _local1--; }; } public function rowOneTile2Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowOneTile2.buttonMode = false; rowOneTile2.removeEventListener(MouseEvent.CLICK, rowOneTile2Clicked); rowOneTile2Status = "used"; rowOneTile2.alpha = 1; rowOneTile2.gotoAndStop(11); flipTile(rowOneTile2); findToken(rowOneTile2.x, rowOneTile2.y); checkWin(); resetTiles(); calcMoves(); } public function rowTwoTile8Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowTwoTile8.buttonMode = false; rowTwoTile8.removeEventListener(MouseEvent.CLICK, rowTwoTile8Clicked); rowTwoTile8Status = "used"; rowTwoTile8.alpha = 1; rowTwoTile8.gotoAndStop(11); flipTile(rowTwoTile8); findToken(rowTwoTile8.x, rowTwoTile8.y); checkWin(); resetTiles(); calcMoves(); } public function startSachiko(){ trace("start"); playMusic(); money = 0; score = 0; movesCounter = 20; doubleCount = 0; rowOneCBXOffset = 70; rowTwoCBXOffset = 70; rowBonusValue = 0; Tokens = new Array(); noPlayArray = new Array(); doublesArray = new Array(); rowClearedArray = new Array(); CBRowArray = new Array(); CBRowTwoArray = new Array(); checkWinRowOneStatus = "playing"; checkWinRowTwoStatus = "playing"; gameOverStatus = "playing"; rowOneTile1Status = "open"; rowOneTile2Status = "open"; rowOneTile3Status = "open"; rowOneTile4Status = "open"; rowOneTile5Status = "open"; rowOneTile6Status = "open"; rowOneTile7Status = "open"; rowOneTile8Status = "open"; rowOneTile9Status = "open"; rowOneTile10Status = "open"; rowTwoTile1Status = "open"; rowTwoTile2Status = "open"; rowTwoTile3Status = "open"; rowTwoTile4Status = "open"; rowTwoTile5Status = "open"; rowTwoTile6Status = "open"; rowTwoTile7Status = "open"; rowTwoTile8Status = "open"; rowTwoTile9Status = "open"; rowTwoTile10Status = "open"; bkgd = new gameBkgd(); bkgd.x = 0; bkgd.y = 0; addChild(bkgd); dieOneImage = new die(); dieOneImage.x = 1000; dieOneImage.y = 1000; addChild(dieOneImage); dieTwoImage = new die(); dieTwoImage.x = 1000; dieTwoImage.y = 1000; addChild(dieTwoImage); dieTextFormat = new TextFormat(); dieTextFormat.font = "Arial"; dieTextFormat.size = 16; dieTextFormat.color = 16760066; dieTextFormat.bold = true; dieTextFormat.align = "center"; die1TextField = new TextField(); die1TextField.defaultTextFormat = dieTextFormat; die1TextField.x = 100; die1TextField.y = 350; die1TextField.selectable = false; addChild(die1TextField); die2TextField = new TextField(); die2TextField.defaultTextFormat = dieTextFormat; die2TextField.x = 150; die2TextField.y = 350; die2TextField.selectable = false; addChild(die2TextField); dieComboTextField = new TextField(); dieComboTextField.defaultTextFormat = dieTextFormat; dieComboTextField.x = 200; dieComboTextField.y = 350; dieComboTextField.selectable = false; addChild(dieComboTextField); scoreTextField = new TextField(); scoreTextField.defaultTextFormat = dieTextFormat; scoreTextField.x = 402; scoreTextField.y = 28; scoreTextField.width = 86; scoreTextField.height = 20; scoreTextField.selectable = false; addChild(scoreTextField); scoreTextField.text = String(score); moneyTextField = new TextField(); moneyTextField.defaultTextFormat = dieTextFormat; moneyTextField.x = 402; moneyTextField.y = 76; moneyTextField.width = 86; moneyTextField.height = 20; moneyTextField.selectable = false; addChild(moneyTextField); moneyTextField.text = String(money); movesTextField = new TextField(); movesTextField.defaultTextFormat = dieTextFormat; movesTextField.x = 405; movesTextField.y = 126; movesTextField.width = 80; movesTextField.height = 20; movesTextField.selectable = false; addChild(movesTextField); movesTextField.text = String(movesCounter); doublesTextField = new TextField(); doublesTextField.defaultTextFormat = dieTextFormat; doublesTextField.x = 405; doublesTextField.y = 176; doublesTextField.width = 80; doublesTextField.height = 20; doublesTextField.selectable = false; addChild(doublesTextField); doublesTextField.text = String(doubleCount); statusTextField = new TextField(); statusTextField.defaultTextFormat = dieTextFormat; statusTextField.x = 172; statusTextField.y = 51; statusTextField.width = 155; statusTextField.height = 22; statusTextField.selectable = false; addChild(statusTextField); rollDiceObject = new rollDice(); rollDiceObject.x = 450; rollDiceObject.y = 341; rollDiceObject.buttonMode = true; rollDiceObject.addEventListener(MouseEvent.CLICK, moveFanUp); addChild(rollDiceObject); menuObject = new menuButton(); menuObject.x = 0; menuObject.y = 300; menuObject.buttonMode = true; menuObject.addEventListener(MouseEvent.CLICK, goToMenu); menuObject.addEventListener(MouseEvent.MOUSE_OVER, hilightMenu); addChild(menuObject); scoringObject = new scoringButton(); scoringObject.x = 0; scoringObject.y = 340; scoringObject.buttonMode = true; scoringObject.addEventListener(MouseEvent.CLICK, showScoring); scoringObject.addEventListener(MouseEvent.MOUSE_OVER, hilightScoring); addChild(scoringObject); musicOnButton = new musicOn(); musicOnButton.x = 10; musicOnButton.y = 10; addChild(musicOnButton); musicOffButton = new musicOff(); musicOffButton.x = 40; musicOffButton.y = 10; musicOffButton.buttonMode = true; musicOffButton.addEventListener(MouseEvent.CLICK, turnMusicOff); musicOffButton.alpha = 0.75; addChild(musicOffButton); createTiles(); showFan(); } public function flipTile(_arg1){ } public function buyRolls(_arg1:TimerEvent){ buyRollDelayTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, buyRolls); if (((!((checkWinRowOneStatus == "won"))) || (!((checkWinRowTwoStatus == "won"))))){ trace("buy stuff"); if (money >= 500){ buyRollObject = new buyRoll(); buyRollObject.x = 140; buyRollObject.y = 220; addChild(buyRollObject); noObject = new noButton(); noObject.x = 263; noObject.y = 295; noObject.buttonMode = true; noObject.addEventListener(MouseEvent.CLICK, noBuy); noObject.addEventListener(MouseEvent.MOUSE_OVER, hilightNo); addChild(noObject); yesObject = new yesButton(); yesObject.x = 158; yesObject.y = 295; yesObject.buttonMode = true; yesObject.addEventListener(MouseEvent.CLICK, yesBuy); yesObject.addEventListener(MouseEvent.MOUSE_OVER, hilightYes); addChild(yesObject); } else { trace("i got here"); showGameOverImage(); endGameWrapup(); }; }; } public function navigateHomeEnd(_arg1:MouseEvent){ var _local2:String; var _local3:URLRequest; _local2 = "http://www.nspgames.com"; _local3 = new URLRequest(_local2); navigateToURL(_local3); } public function showDoubleImage(){ var _local1:doubleImage; _local1 = new doubleImage(); _local1.x = 180; _local1.y = 300; _local1.alpha = 0; addChild(_local1); doublesArray.push(_local1); } public function clearCBsEnd(){ var _local1:int; _local1 = (CBArrayEnd.length - 1); while (_local1 >= 0) { CBArrayEnd[_local1].moveCBOff(); _local1--; }; } public function clearRowTwoCBs(){ var _local1:int; _local1 = (CBRowTwoArray.length - 1); while (_local1 >= 0) { CBRowTwoArray[_local1].deleteRowTwoCB(); _local1--; }; } public function turnMusicOff(_arg1:MouseEvent){ trace("turn it off"); musicOffButton.buttonMode = false; musicOffButton.removeEventListener(MouseEvent.CLICK, turnMusicOff); musicOffButton.alpha = 1; musicOnButton.alpha = 0.75; musicOnButton.buttonMode = true; musicOnButton.addEventListener(MouseEvent.CLICK, turnMusicOn); musicTimer.stop(); } public function rowOneTile7Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowOneTile7.buttonMode = false; rowOneTile7.removeEventListener(MouseEvent.CLICK, rowOneTile7Clicked); rowOneTile7Status = "used"; rowOneTile7.alpha = 1; rowOneTile7.gotoAndStop(11); flipTile(rowOneTile7); findToken(rowOneTile7.x, rowOneTile7.y); checkWin(); resetTiles(); calcMoves(); } public function checkAvailRowTwoTile4(){ if ((((((rowTwoTile4Num == Die1)) || ((rowTwoTile4Num == Die2)))) || ((rowTwoTile4Num == DieCombo)))){ rowTwoTile4.alpha = 0.5; rowTwoTile4.buttonMode = true; rowTwoTile4.addEventListener(MouseEvent.CLICK, rowTwoTile4Clicked); canPlayValue++; }; } public function checkAvailRowOneTile10(){ if ((((((rowOneTile10Num == Die1)) || ((rowOneTile10Num == Die2)))) || ((rowOneTile10Num == DieCombo)))){ rowOneTile10.alpha = 0.5; rowOneTile10.buttonMode = true; rowOneTile10.addEventListener(MouseEvent.CLICK, rowOneTile10Clicked); canPlayValue++; }; } public function checkAvailRowTwoTile7(){ if ((((((rowTwoTile7Num == Die1)) || ((rowTwoTile7Num == Die2)))) || ((rowTwoTile7Num == DieCombo)))){ rowTwoTile7.alpha = 0.5; rowTwoTile7.buttonMode = true; rowTwoTile7.addEventListener(MouseEvent.CLICK, rowTwoTile7Clicked); canPlayValue++; }; } public function checkAvailRowTwoTile1(){ if ((((((rowTwoTile1Num == Die1)) || ((rowTwoTile1Num == Die2)))) || ((rowTwoTile1Num == DieCombo)))){ rowTwoTile1.alpha = 0.5; rowTwoTile1.buttonMode = true; rowTwoTile1.addEventListener(MouseEvent.CLICK, rowTwoTile1Clicked); canPlayValue++; }; } public function checkAvailRowTwoTile8(){ if ((((((rowTwoTile8Num == Die1)) || ((rowTwoTile8Num == Die2)))) || ((rowTwoTile8Num == DieCombo)))){ rowTwoTile8.alpha = 0.5; rowTwoTile8.buttonMode = true; rowTwoTile8.addEventListener(MouseEvent.CLICK, rowTwoTile8Clicked); canPlayValue++; }; } public function checkAvailRowTwoTile6(){ if ((((((rowTwoTile6Num == Die1)) || ((rowTwoTile6Num == Die2)))) || ((rowTwoTile6Num == DieCombo)))){ rowTwoTile6.alpha = 0.5; rowTwoTile6.buttonMode = true; rowTwoTile6.addEventListener(MouseEvent.CLICK, rowTwoTile6Clicked); canPlayValue++; }; } public function showDieRolls(){ var _local1:*; var _local2:*; _local1 = Math.floor(((Math.random() * 10) + 1)); _local2 = Math.floor(((Math.random() * 10) + 1)); dieOneImage = new die(); dieOneImage.x = (dieOneX + _local1); dieOneImage.y = (dieOneY + _local2); addChild(dieOneImage); dieOneImage.gotoAndStop(Die1); setChildIndex(dieOneImage, 4); dieTwoImage = new die(); dieTwoImage.x = (dieTwoX + _local2); dieTwoImage.y = (dieTwoY + _local1); addChild(dieTwoImage); dieTwoImage.gotoAndStop(Die2); setChildIndex(dieTwoImage, 4); } public function checkAvailRowTwoTile2(){ if ((((((rowTwoTile2Num == Die1)) || ((rowTwoTile2Num == Die2)))) || ((rowTwoTile2Num == DieCombo)))){ rowTwoTile2.alpha = 0.5; rowTwoTile2.buttonMode = true; rowTwoTile2.addEventListener(MouseEvent.CLICK, rowTwoTile2Clicked); canPlayValue++; }; } public function rowTwoTile10Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowTwoTile10.buttonMode = false; rowTwoTile10.removeEventListener(MouseEvent.CLICK, rowTwoTile10Clicked); rowTwoTile10Status = "used"; rowTwoTile10.alpha = 1; rowTwoTile10.gotoAndStop(11); flipTile(rowTwoTile10); findToken(rowTwoTile10.x, rowTwoTile10.y); checkWin(); resetTiles(); calcMoves(); } public function checkAvailRowTwoTile9(){ if ((((((rowTwoTile9Num == Die1)) || ((rowTwoTile9Num == Die2)))) || ((rowTwoTile9Num == DieCombo)))){ rowTwoTile9.alpha = 0.5; rowTwoTile9.buttonMode = true; rowTwoTile9.addEventListener(MouseEvent.CLICK, rowTwoTile9Clicked); canPlayValue++; }; } public function checkAvailRowOneTile1(){ if ((((((rowOneTile1Num == Die1)) || ((rowOneTile1Num == Die2)))) || ((rowOneTile1Num == DieCombo)))){ rowOneTile1.alpha = 0.5; rowOneTile1.buttonMode = true; rowOneTile1.addEventListener(MouseEvent.CLICK, rowOneTile1Clicked); canPlayValue++; }; } public function checkAvailRowOneTile2(){ if ((((((rowOneTile2Num == Die1)) || ((rowOneTile2Num == Die2)))) || ((rowOneTile2Num == DieCombo)))){ rowOneTile2.alpha = 0.5; rowOneTile2.buttonMode = true; rowOneTile2.addEventListener(MouseEvent.CLICK, rowOneTile2Clicked); canPlayValue++; }; } public function checkAvailRowOneTile5(){ if ((((((rowOneTile5Num == Die1)) || ((rowOneTile5Num == Die2)))) || ((rowOneTile5Num == DieCombo)))){ rowOneTile5.alpha = 0.5; rowOneTile5.buttonMode = true; rowOneTile5.addEventListener(MouseEvent.CLICK, rowOneTile5Clicked); canPlayValue++; }; } public function checkAvailRowOneTile6(){ if ((((((rowOneTile6Num == Die1)) || ((rowOneTile6Num == Die2)))) || ((rowOneTile6Num == DieCombo)))){ rowOneTile6.alpha = 0.5; rowOneTile6.buttonMode = true; rowOneTile6.addEventListener(MouseEvent.CLICK, rowOneTile6Clicked); canPlayValue++; }; } public function checkAvailRowOneTile7(){ if ((((((rowOneTile7Num == Die1)) || ((rowOneTile7Num == Die2)))) || ((rowOneTile7Num == DieCombo)))){ rowOneTile7.alpha = 0.5; rowOneTile7.buttonMode = true; rowOneTile7.addEventListener(MouseEvent.CLICK, rowOneTile7Clicked); canPlayValue++; }; } public function checkAvailRowOneTile9(){ if ((((((rowOneTile9Num == Die1)) || ((rowOneTile9Num == Die2)))) || ((rowOneTile9Num == DieCombo)))){ rowOneTile9.alpha = 0.5; rowOneTile9.buttonMode = true; rowOneTile9.addEventListener(MouseEvent.CLICK, rowOneTile9Clicked); canPlayValue++; }; } public function checkAvailRowOneTile3(){ if ((((((rowOneTile3Num == Die1)) || ((rowOneTile3Num == Die2)))) || ((rowOneTile3Num == DieCombo)))){ rowOneTile3.alpha = 0.5; rowOneTile3.buttonMode = true; rowOneTile3.addEventListener(MouseEvent.CLICK, rowOneTile3Clicked); canPlayValue++; }; } public function checkAvailRowOneTile8(){ if ((((((rowOneTile8Num == Die1)) || ((rowOneTile8Num == Die2)))) || ((rowOneTile8Num == DieCombo)))){ rowOneTile8.alpha = 0.5; rowOneTile8.buttonMode = true; rowOneTile8.addEventListener(MouseEvent.CLICK, rowOneTile8Clicked); canPlayValue++; }; } public function showScoring(_arg1:MouseEvent){ playSound(gameClickSound); menuObject.buttonMode = false; menuObject.removeEventListener(MouseEvent.CLICK, goToMenu); scoringObject.buttonMode = false; scoringObject.removeEventListener(MouseEvent.CLICK, showScoring); scoringObject.removeEventListener(MouseEvent.MOUSE_OUT, delightScoring); rollDiceObject.buttonMode = false; rollDiceObject.removeEventListener(MouseEvent.CLICK, moveFanUp); scoringImage = new scoring(); scoringImage.x = 5; scoringImage.y = 62; addChild(scoringImage); scoringCloseObject = new scoringClose(); scoringCloseObject.x = 200; scoringCloseObject.y = 282; scoringCloseObject.buttonMode = true; scoringCloseObject.addEventListener(MouseEvent.CLICK, closeScoring); scoringCloseObject.addEventListener(MouseEvent.MOUSE_OVER, hilightCloseScoring); addChild(scoringCloseObject); } public function showInstructions(_arg1:MouseEvent){ playMenuSound(clickSound); instructionsObject.buttonMode = false; instructionsObject.removeEventListener(MouseEvent.CLICK, showInstructions); trace("show instructions"); instructionBkgdObject = new instructionBkgd(); instructionBkgdObject.x = 5; instructionBkgdObject.y = 50; addChild(instructionBkgdObject); instructText1 = new instruct1(); instructText1.x = 5; instructText1.y = 50; addChild(instructText1); nextObject = new nextButton(); nextObject.x = 393; nextObject.y = 276; nextObject.buttonMode = true; nextObject.addEventListener(MouseEvent.CLICK, showInstruct2); nextObject.addEventListener(MouseEvent.MOUSE_OVER, hilightNext); addChild(nextObject); } public function checkAvailRowTwoTile3(){ if ((((((rowTwoTile3Num == Die1)) || ((rowTwoTile3Num == Die2)))) || ((rowTwoTile3Num == DieCombo)))){ rowTwoTile3.alpha = 0.5; rowTwoTile3.buttonMode = true; rowTwoTile3.addEventListener(MouseEvent.CLICK, rowTwoTile3Clicked); canPlayValue++; }; } public function playNote(_arg1:TimerEvent){ var _local2:int; musicTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, playNote); _local2 = Math.floor((Math.random() * 7)); switch (_local2){ case 0: playSound(gNote); break; case 1: playSound(aNote); break; case 2: playSound(bNote); break; case 3: playSound(cNote); break; case 4: playSound(dNote); break; case 5: playSound(eNote); break; case 6: playSound(fNote); break; }; playMusic(); } public function checkAvailRowTwoTile5(){ if ((((((rowTwoTile5Num == Die1)) || ((rowTwoTile5Num == Die2)))) || ((rowTwoTile5Num == DieCombo)))){ rowTwoTile5.alpha = 0.5; rowTwoTile5.buttonMode = true; rowTwoTile5.addEventListener(MouseEvent.CLICK, rowTwoTile5Clicked); canPlayValue++; }; } public function hilightNext(_arg1:MouseEvent){ nextObject.removeEventListener(MouseEvent.MOUSE_OVER, hilightNext); nextObject.alpha = 0.75; nextObject.addEventListener(MouseEvent.MOUSE_OUT, delightNext); } public function endGameTimeOut(){ endGameTimer = new Timer(5000, 1); endGameTimer.addEventListener(TimerEvent.TIMER_COMPLETE, endGame); endGameTimer.start(); } public function moveFanDown(_arg1:TimerEvent){ fanPauseTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, moveFanDown); fanDown = new Tween(fanObject, "y", Regular.easeInOut, 340, 435, 6, false); fanDown.addEventListener(TweenEvent.MOTION_FINISH, doFunctions); } public function showGreatJobImage(){ greatJobObject = new greatJob(); greatJobObject.x = 154; greatJobObject.y = 250; greatJobObject.alpha = 0; addChild(greatJobObject); greatJobObjectIn = new Tween(greatJobObject, "alpha", Regular.easeIn, 0, 1, 32, false); greatJobObjectIn.addEventListener(TweenEvent.MOTION_FINISH, showGreatJobImageOut); } public function hilightNo(_arg1:MouseEvent){ noObject.removeEventListener(MouseEvent.MOUSE_OVER, hilightNo); noObject.alpha = 0.75; noObject.addEventListener(MouseEvent.MOUSE_OUT, delightNo); } public function checkWinRow1(){ if (rowOneTile1Status == "used"){ if (rowOneTile2Status == "used"){ if (rowOneTile3Status == "used"){ if (rowOneTile4Status == "used"){ if (rowOneTile5Status == "used"){ if (rowOneTile6Status == "used"){ if (rowOneTile7Status == "used"){ if (rowOneTile8Status == "used"){ if (rowOneTile9Status == "used"){ if (rowOneTile10Status == "used"){ trace("row one cleared"); checkWinRowOneStatus = "won"; rowBonusValue++; findBonusRowPoints(); setClearRowCB(); playSound(clearRowSound); }; }; }; }; }; }; }; }; }; }; } public function checkAvailRowOneTile4(){ if ((((((rowOneTile4Num == Die1)) || ((rowOneTile4Num == Die2)))) || ((rowOneTile4Num == DieCombo)))){ rowOneTile4.alpha = 0.5; rowOneTile4.buttonMode = true; rowOneTile4.addEventListener(MouseEvent.CLICK, rowOneTile4Clicked); canPlayValue++; }; } public function calcMoves(){ if (movesCounter == 0){ doFreeRolls(); } else { if (gameOverStatus != "won"){ resetDieRoller(); }; }; } public function showStatus(_arg1){ statusTextField.text = String((("Plus " + _arg1) + " Money")); } public function delightYes(_arg1:MouseEvent){ yesObject.removeEventListener(MouseEvent.MOUSE_OUT, delightYes); yesObject.alpha = 1; yesObject.addEventListener(MouseEvent.MOUSE_OVER, hilightYes); } public function checkWinRow2(){ if (rowTwoTile1Status == "used"){ if (rowTwoTile2Status == "used"){ if (rowTwoTile3Status == "used"){ if (rowTwoTile4Status == "used"){ if (rowTwoTile5Status == "used"){ if (rowTwoTile6Status == "used"){ if (rowTwoTile7Status == "used"){ if (rowTwoTile8Status == "used"){ if (rowTwoTile9Status == "used"){ if (rowTwoTile10Status == "used"){ trace("row two cleared"); checkWinRowTwoStatus = "won"; rowBonusValue++; findBonusRowPoints(); setClearRowTwoCB(); playSound(clearRowSound); }; }; }; }; }; }; }; }; }; }; } public function rowTwoTile4Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowTwoTile4.buttonMode = false; rowTwoTile4.removeEventListener(MouseEvent.CLICK, rowTwoTile4Clicked); rowTwoTile4Status = "used"; rowTwoTile4.alpha = 1; rowTwoTile4.gotoAndStop(11); flipTile(rowTwoTile4); findToken(rowTwoTile4.x, rowTwoTile4.y); checkWin(); resetTiles(); calcMoves(); } public function showGameOverImage(){ gameOverObject = new GameOver(); gameOverObject.x = 143; gameOverObject.y = 250; gameOverObject.alpha = 0; addChild(gameOverObject); gameOverObjectIn = new Tween(gameOverObject, "alpha", Regular.easeIn, 0, 1, 32, false); gameOverObjectIn.addEventListener(TweenEvent.MOTION_FINISH, showGameOverImageOut); } public function rowOneTile3Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowOneTile3.buttonMode = false; rowOneTile3.removeEventListener(MouseEvent.CLICK, rowOneTile3Clicked); rowOneTile3Status = "used"; rowOneTile3.alpha = 1; rowOneTile3.gotoAndStop(11); flipTile(rowOneTile3); findToken(rowOneTile3.x, rowOneTile3.y); checkWin(); resetTiles(); calcMoves(); } public function goToMenu(_arg1:MouseEvent){ playSound(gameClickSound); menuObject.buttonMode = false; menuObject.removeEventListener(MouseEvent.CLICK, goToMenu); menuObject.removeEventListener(MouseEvent.MOUSE_OUT, delightMenu); cleanUp(); gotoAndStop("splash"); } public function hilightPlay(_arg1:MouseEvent){ playObject.removeEventListener(MouseEvent.MOUSE_OVER, hilightPlay); playObject.alpha = 0.75; playObject.addEventListener(MouseEvent.MOUSE_OUT, delightPlay); } public function rowTwoTile9Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowTwoTile9.buttonMode = false; rowTwoTile9.removeEventListener(MouseEvent.CLICK, rowTwoTile9Clicked); rowTwoTile9Status = "used"; rowTwoTile9.alpha = 1; rowTwoTile9.gotoAndStop(11); flipTile(rowTwoTile9); findToken(rowTwoTile9.x, rowTwoTile9.y); checkWin(); resetTiles(); calcMoves(); } public function showScore(_arg1){ score = (score + (100 + _arg1)); scoreTextField.text = String(score); } public function removeRowCB(_arg1:clearRowCB){ var _local2:*; for (_local2 in CBRowArray) { if (CBRowArray[_local2] == _arg1){ CBRowArray.splice(_local2, 1); break; }; }; } public function setNextCB(){ nextCB = new Timer(500, 1); nextCB.addEventListener(TimerEvent.TIMER_COMPLETE, newCB); nextCB.start(); } public function showDoubles(){ doubleCount++; doublesTextField.text = String(doubleCount); showDoubleImage(); } public function newGame(_arg1:MouseEvent){ playEndSound(endClickSound); playAgainImage.buttonMode = false; playAgainImage.removeEventListener(MouseEvent.CLICK, newGame); playAgainImage.removeEventListener(MouseEvent.MOUSE_OUT, delightNewGame); removeChild(splashBkgdImageEnd); removeChild(gameTitleEnd); removeChild(playAgainImage); removeChild(playMoreImageEnd); removeChild(companyLogoEnd); removeChild(copyrightTextFieldEnd); removeChild(scoreTextFieldEnd); removeChild(moneyTextFieldEnd); removeChild(movesTextFieldEnd); removeChild(freeRollsTextFieldEnd); removeChild(moneyBonusTextField); removeChild(movesBonusTextField); removeChild(freeRollsBonusTextField); removeChild(finalScoreTextField); nextCBEnd.stop(); clearCBsEnd(); gotoAndStop("playgame"); } public function closeScoring(_arg1:MouseEvent){ playSound(gameClickSound); scoringCloseObject.buttonMode = false; scoringCloseObject.removeEventListener(MouseEvent.CLICK, closeScoring); scoringCloseObject.removeEventListener(MouseEvent.MOUSE_OUT, delightCloseScoring); menuObject.buttonMode = true; menuObject.addEventListener(MouseEvent.CLICK, goToMenu); scoringObject.buttonMode = true; scoringObject.addEventListener(MouseEvent.CLICK, showScoring); scoringObject.addEventListener(MouseEvent.MOUSE_OVER, hilightScoring); scoringObject.alpha = 1; rollDiceObject.buttonMode = true; rollDiceObject.addEventListener(MouseEvent.CLICK, moveFanUp); removeChild(scoringImage); removeChild(scoringCloseObject); } public function checkWin(){ if (checkWinRowOneStatus != "won"){ checkWinRow1(); }; if (checkWinRowTwoStatus != "won"){ checkWinRow2(); }; if ((((checkWinRowOneStatus == "won")) && ((checkWinRowTwoStatus == "won")))){ gameOverStatus = "won"; showGreatJobImage(); endGameWrapup(); }; } public function noBuy(_arg1:MouseEvent){ playSound(gameClickSound); noObject.buttonMode = false; noObject.removeEventListener(MouseEvent.CLICK, noBuy); noObject.addEventListener(MouseEvent.MOUSE_OVER, delightNo); yesObject.buttonMode = false; yesObject.removeEventListener(MouseEvent.CLICK, yesBuy); yesObject.addEventListener(MouseEvent.MOUSE_OVER, hilightYes); removeChild(buyRollObject); removeChild(noObject); removeChild(yesObject); showGameOverImage(); endGameWrapup(); } public function delightClose(_arg1:MouseEvent){ closeObjectMenu.removeEventListener(MouseEvent.MOUSE_OUT, delightClose); closeObjectMenu.alpha = 1; closeObjectMenu.addEventListener(MouseEvent.MOUSE_OVER, hilightClose); } public function showMoves(){ movesCounter--; movesTextField.text = String(movesCounter); } public function delightNext(_arg1:MouseEvent){ nextObject.removeEventListener(MouseEvent.MOUSE_OUT, delightNext); nextObject.alpha = 1; nextObject.addEventListener(MouseEvent.MOUSE_OVER, hilightNext); } public function delightNo(_arg1:MouseEvent){ noObject.removeEventListener(MouseEvent.MOUSE_OUT, delightNo); noObject.alpha = 1; noObject.addEventListener(MouseEvent.MOUSE_OVER, hilightNo); } public function rowOneTile8Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowOneTile8.buttonMode = false; rowOneTile8.removeEventListener(MouseEvent.CLICK, rowOneTile8Clicked); rowOneTile8Status = "used"; rowOneTile8.alpha = 1; rowOneTile8.gotoAndStop(11); flipTile(rowOneTile8); findToken(rowOneTile8.x, rowOneTile8.y); checkWin(); resetTiles(); calcMoves(); } public function navigateHome(_arg1:MouseEvent){ var _local2:String; var _local3:URLRequest; _local2 = "http://www.nspgames.com"; _local3 = new URLRequest(_local2); navigateToURL(_local3); } public function removeCBEnd(_arg1:allCBSplash){ var _local2:*; for (_local2 in CBArrayEnd) { if (CBArrayEnd[_local2] == _arg1){ CBArrayEnd.splice(_local2, 1); break; }; }; } public function resetDieRoller(){ rollDiceObject.buttonMode = true; rollDiceObject.addEventListener(MouseEvent.CLICK, moveFanUp); rollDiceObject.alpha = 1; } public function newCB(_arg1:TimerEvent){ var _local2:Number; var _local3:Number; var _local4:allCBSplash; nextCB.removeEventListener(TimerEvent.TIMER_COMPLETE, newCB); _local2 = ((Math.random() * 2) - 1); _local3 = ((Math.random() * 1) + 0.5); _local4 = new allCBSplash(_local2, _local3); addChild(_local4); setChildIndex(_local4, 1); CBArray.push(_local4); setNextCB(); } public function newRowCB(_arg1:TimerEvent){ var _local2:Number; var _local3:Number; var _local4:clearRowCB; nextRowCB.removeEventListener(TimerEvent.TIMER_COMPLETE, newRowCB); if (rowOneCBXOffset >= 330){ nextRowCB.stop(); } else { _local2 = ((Math.random() * 2) - 1); _local3 = ((Math.random() * 1) + 0.5); rowOneCBXOffset = (rowOneCBXOffset + 10); _local4 = new clearRowCB(_local2, _local3, rowOneCBXOffset); addChild(_local4); CBRowArray.push(_local4); setClearRowCB(); }; } public function delightPlay(_arg1:MouseEvent){ playObject.removeEventListener(MouseEvent.MOUSE_OUT, delightPlay); playObject.alpha = 1; playObject.addEventListener(MouseEvent.MOUSE_OVER, hilightPlay); } public function showNoPlay(){ if (canPlayValue == 0){ showNoMovesImage(); calcMoves(); if (DieCombo == 11){ tokenValue = 500; showScore(tokenValue); }; }; } public function rowTwoTile5Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowTwoTile5.buttonMode = false; rowTwoTile5.removeEventListener(MouseEvent.CLICK, rowTwoTile5Clicked); rowTwoTile5Status = "used"; rowTwoTile5.alpha = 1; rowTwoTile5.gotoAndStop(11); flipTile(rowTwoTile5); findToken(rowTwoTile5.x, rowTwoTile5.y); checkWin(); resetTiles(); calcMoves(); } public function playMenuSound(_arg1:Object){ var _local2:SoundChannel; _local2 = _arg1.play(); } public function yesBuy(_arg1:MouseEvent){ playSound(gameClickSound); yesObject.buttonMode = false; yesObject.removeEventListener(MouseEvent.CLICK, yesBuy); yesObject.removeEventListener(MouseEvent.MOUSE_OVER, delightYes); noObject.buttonMode = false; noObject.removeEventListener(MouseEvent.CLICK, noBuy); noObject.addEventListener(MouseEvent.MOUSE_OVER, hilightNo); removeChild(buyRollObject); removeChild(noObject); removeChild(yesObject); money = (money - 500); movesCounter = (movesCounter + 1); moneyTextField.text = String(money); movesTextField.text = String(movesCounter); calcMoves(); } public function playSound(_arg1:Object){ var _local2:SoundChannel; _local2 = _arg1.play(); } public function setClearRowTwoCB(){ nextRowTwoCB = new Timer(10, 1); nextRowTwoCB.addEventListener(TimerEvent.TIMER_COMPLETE, newRowTwoCB); nextRowTwoCB.start(); } public function hilightClose(_arg1:MouseEvent){ closeObjectMenu.removeEventListener(MouseEvent.MOUSE_OVER, hilightClose); closeObjectMenu.alpha = 0.75; closeObjectMenu.addEventListener(MouseEvent.MOUSE_OUT, delightClose); } public function hilightYes(_arg1:MouseEvent){ yesObject.removeEventListener(MouseEvent.MOUSE_OVER, hilightYes); yesObject.alpha = 0.75; yesObject.addEventListener(MouseEvent.MOUSE_OUT, delightYes); } public function endGameWrapup(){ trace("wrap up game"); endGameTimeOut(); } public function newCBEnd(_arg1:TimerEvent){ var _local2:Number; var _local3:Number; var _local4:allCBSplash; nextCBEnd.removeEventListener(TimerEvent.TIMER_COMPLETE, newCBEnd); _local2 = ((Math.random() * 2) - 1); _local3 = ((Math.random() * 1) + 0.5); _local4 = new allCBSplash(_local2, _local3); addChild(_local4); setChildIndex(_local4, 1); CBArrayEnd.push(_local4); setNextCBEnd(); } public function clearTokens(){ var _local1:int; _local1 = (Tokens.length - 1); while (_local1 >= 0) { Tokens[_local1].deleteToken(); _local1--; }; } public function rowOneTile4Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowOneTile4.buttonMode = false; rowOneTile4.removeEventListener(MouseEvent.CLICK, rowOneTile4Clicked); rowOneTile4Status = "used"; rowOneTile4.alpha = 1; rowOneTile4.gotoAndStop(11); flipTile(rowOneTile4); findToken(rowOneTile4.x, rowOneTile4.y); checkWin(); resetTiles(); calcMoves(); } public function removeDoublesImage(_arg1:doubleImage){ var _local2:*; for (_local2 in doublesArray) { if (doublesArray[_local2] == _arg1){ doublesArray.splice(_local2, 1); break; }; }; } public function showBonusRowOnePoints(){ score = (score + rowOneScore); scoreTextField.text = String(score); } public function clearCBs(){ var _local1:int; _local1 = (CBArray.length - 1); while (_local1 >= 0) { CBArray[_local1].moveCBOff(); _local1--; }; } public function removeRowTwoCB(_arg1:clearRowTwoCB){ var _local2:*; for (_local2 in CBRowTwoArray) { if (CBRowTwoArray[_local2] == _arg1){ CBRowTwoArray.splice(_local2, 1); break; }; }; } public function fanPause(_arg1:TweenEvent){ fanUp.removeEventListener(TweenEvent.MOTION_FINISH, fanPause); removeChild(dieOneImage); removeChild(dieTwoImage); fanPauseTimer = new Timer(200, 1); fanPauseTimer.addEventListener(TimerEvent.TIMER_COMPLETE, moveFanDown); fanPauseTimer.start(); rollTheDice(); } public function rowTwoTile1Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowTwoTile1.buttonMode = false; rowTwoTile1.removeEventListener(MouseEvent.CLICK, rowTwoTile1Clicked); rowTwoTile1Status = "used"; rowTwoTile1.alpha = 1; rowTwoTile1.gotoAndStop(11); flipTile(rowTwoTile1); findToken(rowTwoTile1.x, rowTwoTile1.y); checkWin(); resetTiles(); calcMoves(); } public function rowOneTile9Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowOneTile9.buttonMode = false; rowOneTile9.removeEventListener(MouseEvent.CLICK, rowOneTile9Clicked); rowOneTile9Status = "used"; rowOneTile9.alpha = 1; rowOneTile9.gotoAndStop(11); flipTile(rowOneTile9); findToken(rowOneTile9.x, rowOneTile9.y); checkWin(); resetTiles(); calcMoves(); } public function removeNoPlayImage(_arg1:noMoves){ var _local2:*; for (_local2 in noPlayArray) { if (noPlayArray[_local2] == _arg1){ noPlayArray.splice(_local2, 1); break; }; }; } public function cleanUpCBs(){ if ((CBRowTwoArray.length - 1) > 0){ clearRowTwoCBs(); }; if ((CBRowArray.length - 1) > 0){ clearRowCBs(); }; } public function setNextCBEnd(){ nextCBEnd = new Timer((Math.random() * 1500), 1); nextCBEnd.addEventListener(TimerEvent.TIMER_COMPLETE, newCBEnd); nextCBEnd.start(); } public function delightNewGame(_arg1:MouseEvent){ playAgainImage.removeEventListener(MouseEvent.MOUSE_OUT, delightNewGame); playAgainImage.alpha = 1; playAgainImage.addEventListener(MouseEvent.MOUSE_OVER, hilightNewGame); } public function cleanUp(){ clearTokens(); musicTimer.stop(); removeChild(musicOffButton); removeChild(musicOnButton); removeChild(bkgd); removeChild(dieOneImage); removeChild(dieTwoImage); removeChild(die1TextField); removeChild(die2TextField); removeChild(dieComboTextField); removeChild(scoreTextField); removeChild(moneyTextField); removeChild(movesTextField); removeChild(doublesTextField); removeChild(statusTextField); rollDiceObject.removeEventListener(MouseEvent.CLICK, moveFanUp); removeChild(rollDiceObject); menuObject.removeEventListener(MouseEvent.CLICK, goToMenu); removeChild(menuObject); scoringObject.removeEventListener(MouseEvent.CLICK, showScoring); removeChild(scoringObject); removeChild(rowOneTile1); removeChild(rowOneTile2); removeChild(rowOneTile3); removeChild(rowOneTile4); removeChild(rowOneTile5); removeChild(rowOneTile6); removeChild(rowOneTile7); removeChild(rowOneTile8); removeChild(rowOneTile9); removeChild(rowOneTile10); removeChild(rowTwoTile1); removeChild(rowTwoTile2); removeChild(rowTwoTile3); removeChild(rowTwoTile4); removeChild(rowTwoTile5); removeChild(rowTwoTile6); removeChild(rowTwoTile7); removeChild(rowTwoTile8); removeChild(rowTwoTile9); removeChild(rowTwoTile10); removeChild(fanObject); } public function showFan(){ fanObject = new fan(); fanObject.x = 250; fanObject.y = 435; addChild(fanObject); } public function removeRowClearedImage(_arg1:rowCleared){ var _local2:*; for (_local2 in rowClearedArray) { if (rowClearedArray[_local2] == _arg1){ rowClearedArray.splice(_local2, 1); break; }; }; } public function hilightInstructions(_arg1:MouseEvent){ instructionsObject.removeEventListener(MouseEvent.MOUSE_OVER, hilightInstructions); instructionsObject.alpha = 0.75; instructionsObject.addEventListener(MouseEvent.MOUSE_OUT, delightInstructions); } public function deleteToken(_arg1:Token){ var _local2:*; for (_local2 in Tokens) { if (Tokens[_local2] == _arg1){ Tokens.splice(_local2, 1); break; }; }; } public function rowTwoTile6Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowTwoTile6.buttonMode = false; rowTwoTile6.removeEventListener(MouseEvent.CLICK, rowTwoTile6Clicked); rowTwoTile6Status = "used"; rowTwoTile6.alpha = 1; rowTwoTile6.gotoAndStop(11); flipTile(rowTwoTile6); findToken(rowTwoTile6.x, rowTwoTile6.y); checkWin(); resetTiles(); calcMoves(); } public function hilightCloseScoring(_arg1:MouseEvent){ scoringCloseObject.removeEventListener(MouseEvent.MOUSE_OVER, hilightCloseScoring); scoringCloseObject.alpha = 0.75; scoringCloseObject.addEventListener(MouseEvent.MOUSE_OUT, delightCloseScoring); } public function showGreatJobImageOut(_arg1:TweenEvent){ greatJobObjectIn.removeEventListener(TweenEvent.MOTION_FINISH, showGreatJobImageOut); greatJobObjectOut = new Tween(greatJobObject, "alpha", Regular.easeOut, 1, 0, 32, false); greatJobObjectOut.addEventListener(TweenEvent.MOTION_FINISH, showGreatJobImageRemove); } public function buyRollDelay(){ buyRollDelayTimer = new Timer(1500, 1); buyRollDelayTimer.addEventListener(TimerEvent.TIMER_COMPLETE, buyRolls); buyRollDelayTimer.start(); } public function rowOneTile5Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowOneTile5.buttonMode = false; rowOneTile5.removeEventListener(MouseEvent.CLICK, rowOneTile5Clicked); rowOneTile5Status = "used"; rowOneTile5.alpha = 1; rowOneTile5.gotoAndStop(11); flipTile(rowOneTile5); findToken(rowOneTile5.x, rowOneTile5.y); checkWin(); resetTiles(); calcMoves(); } public function showGameOverImageOut(_arg1:TweenEvent){ gameOverObjectIn.removeEventListener(TweenEvent.MOTION_FINISH, showGameOverImageOut); gameOverObjectOut = new Tween(gameOverObject, "alpha", Regular.easeOut, 1, 0, 32, false); gameOverObjectOut.addEventListener(TweenEvent.MOTION_FINISH, showGameOverImageRemove); } public function hilightNewGame(_arg1:MouseEvent){ playAgainImage.removeEventListener(MouseEvent.MOUSE_OVER, hilightNewGame); playAgainImage.alpha = 0.75; playAgainImage.addEventListener(MouseEvent.MOUSE_OUT, delightNewGame); } public function showRowClearedImage(){ var _local1:rowCleared; _local1 = new rowCleared(); _local1.x = 50; _local1.y = 100; _local1.alpha = 0; addChild(_local1); rowClearedArray.push(_local1); } public function rowOneTile10Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowOneTile10.buttonMode = false; rowOneTile10.removeEventListener(MouseEvent.CLICK, rowOneTile10Clicked); rowOneTile10Status = "used"; rowOneTile10.alpha = 1; rowOneTile10.gotoAndStop(11); flipTile(rowOneTile10); findToken(rowOneTile10.x, rowOneTile10.y); checkWin(); resetTiles(); calcMoves(); } public function doFunctions(_arg1:TweenEvent){ fanDown.removeEventListener(TweenEvent.MOTION_FINISH, doFunctions); resetTiles(); checkTiles(); showMoves(); showNoPlay(); } public function playMusic(){ var _local1:Number; _local1 = ((Math.random() * 1500) + 350); musicTimer = new Timer(_local1, 1); musicTimer.addEventListener(TimerEvent.TIMER_COMPLETE, playNote); musicTimer.start(); } public function checkTiles(){ if (rowOneTile1Status == "used"){ } else { checkAvailRowOneTile1(); }; if (rowOneTile2Status == "used"){ } else { checkAvailRowOneTile2(); }; if (rowOneTile3Status == "used"){ } else { checkAvailRowOneTile3(); }; if (rowOneTile4Status == "used"){ } else { checkAvailRowOneTile4(); }; if (rowOneTile5Status == "used"){ } else { checkAvailRowOneTile5(); }; if (rowOneTile6Status == "used"){ } else { checkAvailRowOneTile6(); }; if (rowOneTile7Status == "used"){ } else { checkAvailRowOneTile7(); }; if (rowOneTile8Status == "used"){ } else { checkAvailRowOneTile8(); }; if (rowOneTile9Status == "used"){ } else { checkAvailRowOneTile9(); }; if (rowOneTile10Status == "used"){ } else { checkAvailRowOneTile10(); }; if (rowTwoTile1Status == "used"){ } else { checkAvailRowTwoTile1(); }; if (rowTwoTile2Status == "used"){ } else { checkAvailRowTwoTile2(); }; if (rowTwoTile3Status == "used"){ } else { checkAvailRowTwoTile3(); }; if (rowTwoTile4Status == "used"){ } else { checkAvailRowTwoTile4(); }; if (rowTwoTile5Status == "used"){ } else { checkAvailRowTwoTile5(); }; if (rowTwoTile6Status == "used"){ } else { checkAvailRowTwoTile6(); }; if (rowTwoTile7Status == "used"){ } else { checkAvailRowTwoTile7(); }; if (rowTwoTile8Status == "used"){ } else { checkAvailRowTwoTile8(); }; if (rowTwoTile9Status == "used"){ } else { checkAvailRowTwoTile9(); }; if (rowTwoTile10Status == "used"){ } else { checkAvailRowTwoTile10(); }; } public function endGame(_arg1:TimerEvent){ endGameTimer.removeEventListener(TimerEvent.TIMER_COMPLETE, endGame); cleanUp(); MovieClip(root).score = score; MovieClip(root).money = money; MovieClip(root).movesCounter = movesCounter; MovieClip(root).doubleCount = doubleCount; gotoAndStop("endgame"); } public function showGreatJobImageRemove(_arg1:TweenEvent){ greatJobObjectOut.removeEventListener(TweenEvent.MOTION_FINISH, showGreatJobImageRemove); removeChild(greatJobObject); } public function rowTwoTile2Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowTwoTile2.buttonMode = false; rowTwoTile2.removeEventListener(MouseEvent.CLICK, rowTwoTile2Clicked); rowTwoTile2Status = "used"; rowTwoTile2.alpha = 1; rowTwoTile2.gotoAndStop(11); flipTile(rowTwoTile2); findToken(rowTwoTile2.x, rowTwoTile2.y); checkWin(); resetTiles(); calcMoves(); } public function resetTiles(){ if (rowOneTile1Status == "used"){ } else { rowOneTile1.alpha = 1; rowOneTile1.buttonMode = false; rowOneTile1.removeEventListener(MouseEvent.CLICK, rowOneTile1Clicked); }; if (rowOneTile2Status == "used"){ } else { rowOneTile2.alpha = 1; rowOneTile2.buttonMode = false; rowOneTile2.removeEventListener(MouseEvent.CLICK, rowOneTile2Clicked); }; if (rowOneTile3Status == "used"){ } else { rowOneTile3.alpha = 1; rowOneTile3.buttonMode = false; rowOneTile3.removeEventListener(MouseEvent.CLICK, rowOneTile3Clicked); }; if (rowOneTile4Status == "used"){ } else { rowOneTile4.alpha = 1; rowOneTile4.buttonMode = false; rowOneTile4.removeEventListener(MouseEvent.CLICK, rowOneTile4Clicked); }; if (rowOneTile5Status == "used"){ } else { rowOneTile5.alpha = 1; rowOneTile5.buttonMode = false; rowOneTile5.removeEventListener(MouseEvent.CLICK, rowOneTile5Clicked); }; if (rowOneTile6Status == "used"){ } else { rowOneTile6.alpha = 1; rowOneTile6.buttonMode = false; rowOneTile6.removeEventListener(MouseEvent.CLICK, rowOneTile6Clicked); }; if (rowOneTile7Status == "used"){ } else { rowOneTile7.alpha = 1; rowOneTile7.buttonMode = false; rowOneTile7.removeEventListener(MouseEvent.CLICK, rowOneTile7Clicked); }; if (rowOneTile8Status == "used"){ } else { rowOneTile8.alpha = 1; rowOneTile8.buttonMode = false; rowOneTile8.removeEventListener(MouseEvent.CLICK, rowOneTile8Clicked); }; if (rowOneTile9Status == "used"){ } else { rowOneTile9.alpha = 1; rowOneTile9.buttonMode = false; rowOneTile9.removeEventListener(MouseEvent.CLICK, rowOneTile9Clicked); }; if (rowOneTile10Status == "used"){ } else { rowOneTile10.alpha = 1; rowOneTile10.buttonMode = false; rowOneTile10.removeEventListener(MouseEvent.CLICK, rowOneTile10Clicked); }; if (rowTwoTile1Status == "used"){ } else { rowTwoTile1.alpha = 1; rowTwoTile1.buttonMode = false; rowTwoTile1.removeEventListener(MouseEvent.CLICK, rowTwoTile1Clicked); }; if (rowTwoTile2Status == "used"){ } else { rowTwoTile2.alpha = 1; rowTwoTile2.buttonMode = false; rowTwoTile2.removeEventListener(MouseEvent.CLICK, rowTwoTile2Clicked); }; if (rowTwoTile3Status == "used"){ } else { rowTwoTile3.alpha = 1; rowTwoTile3.buttonMode = false; rowTwoTile3.removeEventListener(MouseEvent.CLICK, rowTwoTile3Clicked); }; if (rowTwoTile4Status == "used"){ } else { rowTwoTile4.alpha = 1; rowTwoTile4.buttonMode = false; rowTwoTile4.removeEventListener(MouseEvent.CLICK, rowTwoTile4Clicked); }; if (rowTwoTile5Status == "used"){ } else { rowTwoTile5.alpha = 1; rowTwoTile5.buttonMode = false; rowTwoTile5.removeEventListener(MouseEvent.CLICK, rowTwoTile5Clicked); }; if (rowTwoTile6Status == "used"){ } else { rowTwoTile6.alpha = 1; rowTwoTile6.buttonMode = false; rowTwoTile6.removeEventListener(MouseEvent.CLICK, rowTwoTile6Clicked); }; if (rowTwoTile7Status == "used"){ } else { rowTwoTile7.alpha = 1; rowTwoTile7.buttonMode = false; rowTwoTile7.removeEventListener(MouseEvent.CLICK, rowTwoTile7Clicked); }; if (rowTwoTile8Status == "used"){ } else { rowTwoTile8.alpha = 1; rowTwoTile8.buttonMode = false; rowTwoTile8.removeEventListener(MouseEvent.CLICK, rowTwoTile8Clicked); }; if (rowTwoTile9Status == "used"){ } else { rowTwoTile9.alpha = 1; rowTwoTile9.buttonMode = false; rowTwoTile9.removeEventListener(MouseEvent.CLICK, rowTwoTile9Clicked); }; if (rowTwoTile10Status == "used"){ } else { rowTwoTile10.alpha = 1; rowTwoTile10.buttonMode = false; rowTwoTile10.removeEventListener(MouseEvent.CLICK, rowTwoTile10Clicked); }; } public function delightInstructions(_arg1:MouseEvent){ instructionsObject.removeEventListener(MouseEvent.MOUSE_OUT, delightInstructions); instructionsObject.alpha = 1; instructionsObject.addEventListener(MouseEvent.MOUSE_OVER, hilightInstructions); } public function startGame(_arg1:MouseEvent){ playMenuSound(clickSound); playObject.removeEventListener(MouseEvent.CLICK, startGame); playObject.removeEventListener(MouseEvent.MOUSE_OUT, delightPlay); instructionsObject.removeEventListener(MouseEvent.CLICK, showInstructions); instructionsObject.removeEventListener(MouseEvent.MOUSE_OVER, hilightInstructions); removeChild(splashBkgdImage); removeChild(playObject); removeChild(instructionsObject); removeChild(playMoreImage); removeChild(companyLogo); removeChild(gameTitle); removeChild(copyrightTextField); nextCB.stop(); clearCBs(); gotoAndStop("playgame"); } public function setClearRowCB(){ nextRowCB = new Timer(10, 1); nextRowCB.addEventListener(TimerEvent.TIMER_COMPLETE, newRowCB); nextRowCB.start(); } public function myCloseFunction(){ trace("close board"); } public function newRowTwoCB(_arg1:TimerEvent){ var _local2:Number; var _local3:Number; var _local4:clearRowTwoCB; nextRowTwoCB.removeEventListener(TimerEvent.TIMER_COMPLETE, newRowTwoCB); if (rowTwoCBXOffset >= 330){ nextRowTwoCB.stop(); } else { _local2 = ((Math.random() * 2) - 1); _local3 = ((Math.random() * 1) + 0.5); rowTwoCBXOffset = (rowTwoCBXOffset + 10); _local4 = new clearRowTwoCB(_local2, _local3, rowTwoCBXOffset); addChild(_local4); CBRowTwoArray.push(_local4); setClearRowTwoCB(); }; } public function hilightMenu(_arg1:MouseEvent){ menuObject.removeEventListener(MouseEvent.MOUSE_OVER, hilightMenu); menuObject.alpha = 0.75; menuObject.addEventListener(MouseEvent.MOUSE_OUT, delightMenu); } public function turnMusicOn(_arg1:MouseEvent){ trace("turn it on"); musicOnButton.buttonMode = false; musicOnButton.removeEventListener(MouseEvent.CLICK, turnMusicOn); musicOnButton.alpha = 1; musicOffButton.alpha = 0.75; musicOffButton.buttonMode = true; musicOffButton.addEventListener(MouseEvent.CLICK, turnMusicOff); playMusic(); } public function rowOneTile1Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowOneTile1.buttonMode = false; rowOneTile1.removeEventListener(MouseEvent.CLICK, rowOneTile1Clicked); rowOneTile1Status = "used"; rowOneTile1.alpha = 1; rowOneTile1.gotoAndStop(11); flipTile(rowOneTile1); findToken(rowOneTile1.x, rowOneTile1.y); checkWin(); resetTiles(); calcMoves(); } public function showInstruct2(_arg1:MouseEvent){ playMenuSound(clickSound); nextObject.buttonMode = false; nextObject.removeEventListener(MouseEvent.CLICK, showInstruct2); nextObject.removeEventListener(MouseEvent.MOUSE_OUT, hilightNext); removeChild(nextObject); removeChild(instructText1); instructText2 = new instruct2(); instructText2.x = 5; instructText2.y = 50; addChild(instructText2); closeObjectMenu = new closeButtonMenu(); closeObjectMenu.x = 250; closeObjectMenu.y = 300; closeObjectMenu.buttonMode = true; closeObjectMenu.addEventListener(MouseEvent.CLICK, removeInstructions); closeObjectMenu.addEventListener(MouseEvent.MOUSE_OVER, hilightClose); addChild(closeObjectMenu); } public function showGameOverImageRemove(_arg1:TweenEvent){ gameOverObjectOut.removeEventListener(TweenEvent.MOTION_FINISH, showGameOverImageRemove); removeChild(gameOverObject); } public function moveFanUp(_arg1:MouseEvent){ playSound(gameClickSound); rollDiceObject.buttonMode = false; rollDiceObject.removeEventListener(MouseEvent.CLICK, moveFanUp); rollDiceObject.alpha = 0.5; fanUp = new Tween(fanObject, "y", Regular.easeInOut, 435, 340, 6, false); fanUp.addEventListener(TweenEvent.MOTION_FINISH, fanPause); } public function findToken(_arg1, _arg2){ var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:Token; token = Math.floor(((Math.random() * 100) + 1)); if (token >= 95){ tokenValue = 750; tokenClipFrame = 2; cherryBlossum(); }; if ((((token >= 88)) && ((token <= 94)))){ tokenValue = 500; tokenClipFrame = 8; }; if ((((token >= 78)) && ((token <= 87)))){ tokenValue = 100; tokenClipFrame = 7; }; if ((((token >= 60)) && ((token <= 77)))){ tokenValue = 50; tokenClipFrame = 6; }; if ((((token >= 35)) && ((token <= 59)))){ tokenValue = 10; tokenClipFrame = 5; }; if ((((token >= 15)) && ((token <= 34)))){ tokenValue = 5; tokenClipFrame = 4; }; if ((((token >= 1)) && ((token <= 14)))){ tokenValue = 1; tokenClipFrame = 3; }; playSound(tokenSound); _local3 = 250; _local4 = (_arg1 + 1); _local5 = (_arg2 - 13); _local6 = -4; _local7 = 0.3; _local8 = new Token(_local3, _local6, _local7, _local4, _local5, tokenClipFrame); addChild(_local8); Tokens.push(_local8); showMoney(tokenValue); showScore(tokenValue); showStatus(tokenValue); } public function showMoney(_arg1){ money = (money + _arg1); moneyTextField.text = String(money); } public function delightCloseScoring(_arg1:MouseEvent){ scoringCloseObject.removeEventListener(MouseEvent.MOUSE_OUT, delightCloseScoring); scoringCloseObject.alpha = 1; scoringCloseObject.addEventListener(MouseEvent.MOUSE_OVER, hilightCloseScoring); } public function rowTwoTile7Clicked(_arg1:MouseEvent){ playSound(gameClickSound); rowTwoTile7.buttonMode = false; rowTwoTile7.removeEventListener(MouseEvent.CLICK, rowTwoTile7Clicked); rowTwoTile7Status = "used"; rowTwoTile7.alpha = 1; rowTwoTile7.gotoAndStop(11); flipTile(rowTwoTile7); findToken(rowTwoTile7.x, rowTwoTile7.y); checkWin(); resetTiles(); calcMoves(); } public function delightScoring(_arg1:MouseEvent){ scoringObject.removeEventListener(MouseEvent.MOUSE_OUT, delightScoring); scoringObject.alpha = 1; scoringObject.addEventListener(MouseEvent.MOUSE_OVER, hilightScoring); } public function removeCB(_arg1:allCBSplash){ var _local2:*; for (_local2 in CBArray) { if (CBArray[_local2] == _arg1){ CBArray.splice(_local2, 1); break; }; }; } public function createTiles(){ rowOneTile1 = new allTiles(); rowOneTile1.x = 83; rowOneTile1.y = 130; addChild(rowOneTile1); rowOneTile1.gotoAndStop(1); rowOneTile2 = new allTiles(); rowOneTile2.x = 109; rowOneTile2.y = 130; addChild(rowOneTile2); rowOneTile2.gotoAndStop(2); rowOneTile3 = new allTiles(); rowOneTile3.x = 135; rowOneTile3.y = 130; addChild(rowOneTile3); rowOneTile3.gotoAndStop(3); rowOneTile4 = new allTiles(); rowOneTile4.x = 161; rowOneTile4.y = 130; addChild(rowOneTile4); rowOneTile4.gotoAndStop(4); rowOneTile5 = new allTiles(); rowOneTile5.x = 187; rowOneTile5.y = 130; addChild(rowOneTile5); rowOneTile5.gotoAndStop(5); rowOneTile6 = new allTiles(); rowOneTile6.x = 213; rowOneTile6.y = 130; addChild(rowOneTile6); rowOneTile6.gotoAndStop(6); rowOneTile7 = new allTiles(); rowOneTile7.x = 239; rowOneTile7.y = 130; addChild(rowOneTile7); rowOneTile7.gotoAndStop(7); rowOneTile8 = new allTiles(); rowOneTile8.x = 265; rowOneTile8.y = 130; addChild(rowOneTile8); rowOneTile8.gotoAndStop(8); rowOneTile9 = new allTiles(); rowOneTile9.x = 291; rowOneTile9.y = 130; addChild(rowOneTile9); rowOneTile9.gotoAndStop(9); rowOneTile10 = new allTiles(); rowOneTile10.x = 317; rowOneTile10.y = 130; addChild(rowOneTile10); rowOneTile10.gotoAndStop(10); rowTwoTile1 = new allTiles(); rowTwoTile1.x = 83; rowTwoTile1.y = 200; addChild(rowTwoTile1); rowTwoTile1.gotoAndStop(1); rowTwoTile2 = new allTiles(); rowTwoTile2.x = 109; rowTwoTile2.y = 200; addChild(rowTwoTile2); rowTwoTile2.gotoAndStop(2); rowTwoTile3 = new allTiles(); rowTwoTile3.x = 135; rowTwoTile3.y = 200; addChild(rowTwoTile3); rowTwoTile3.gotoAndStop(3); rowTwoTile4 = new allTiles(); rowTwoTile4.x = 161; rowTwoTile4.y = 200; addChild(rowTwoTile4); rowTwoTile4.gotoAndStop(4); rowTwoTile5 = new allTiles(); rowTwoTile5.x = 187; rowTwoTile5.y = 200; addChild(rowTwoTile5); rowTwoTile5.gotoAndStop(5); rowTwoTile6 = new allTiles(); rowTwoTile6.x = 213; rowTwoTile6.y = 200; addChild(rowTwoTile6); rowTwoTile6.gotoAndStop(6); rowTwoTile7 = new allTiles(); rowTwoTile7.x = 239; rowTwoTile7.y = 200; addChild(rowTwoTile7); rowTwoTile7.gotoAndStop(7); rowTwoTile8 = new allTiles(); rowTwoTile8.x = 265; rowTwoTile8.y = 200; addChild(rowTwoTile8); rowTwoTile8.gotoAndStop(8); rowTwoTile9 = new allTiles(); rowTwoTile9.x = 291; rowTwoTile9.y = 200; addChild(rowTwoTile9); rowTwoTile9.gotoAndStop(9); rowTwoTile10 = new allTiles(); rowTwoTile10.x = 317; rowTwoTile10.y = 200; addChild(rowTwoTile10); rowTwoTile10.gotoAndStop(10); } public function showNoMovesImage(){ var _local1:noMoves; _local1 = new noMoves(); _local1.x = 145; _local1.y = 250; _local1.alpha = 0; addChild(_local1); noPlayArray.push(_local1); } } }//package
Section 60
//scoring (scoring) package { import flash.display.*; public dynamic class scoring extends MovieClip { } }//package
Section 61
//scoringButton (scoringButton) package { import flash.display.*; public dynamic class scoringButton extends MovieClip { } }//package
Section 62
//scoringClose (scoringClose) package { import flash.display.*; public dynamic class scoringClose extends MovieClip { } }//package
Section 63
//splashBkgd (splashBkgd) package { import flash.display.*; public dynamic class splashBkgd extends MovieClip { } }//package
Section 64
//tile1 (tile1) package { import flash.display.*; public dynamic class tile1 extends MovieClip { } }//package
Section 65
//tileBlank (tileBlank) package { import flash.display.*; public dynamic class tileBlank extends MovieClip { } }//package
Section 66
//tileEight (tileEight) package { import flash.display.*; public dynamic class tileEight extends MovieClip { } }//package
Section 67
//tileFive (tileFive) package { import flash.display.*; public dynamic class tileFive extends MovieClip { } }//package
Section 68
//tileFour (tileFour) package { import flash.display.*; public dynamic class tileFour extends MovieClip { } }//package
Section 69
//tileNine (tileNine) package { import flash.display.*; public dynamic class tileNine extends MovieClip { } }//package
Section 70
//tileOne (tileOne) package { import flash.display.*; public dynamic class tileOne extends MovieClip { } }//package
Section 71
//tileSeven (tileSeven) package { import flash.display.*; public dynamic class tileSeven extends MovieClip { } }//package
Section 72
//tileSix (tileSix) package { import flash.display.*; public dynamic class tileSix extends MovieClip { } }//package
Section 73
//tileTen (tileTen) package { import flash.display.*; public dynamic class tileTen extends MovieClip { } }//package
Section 74
//tileThree (tileThree) package { import flash.display.*; public dynamic class tileThree extends MovieClip { } }//package
Section 75
//tileTwo (tileTwo) package { import flash.display.*; public dynamic class tileTwo extends MovieClip { } }//package
Section 76
//titleMenu (titleMenu) package { import flash.display.*; public dynamic class titleMenu extends MovieClip { } }//package
Section 77
//Token (Token) package { import flash.display.*; import flash.events.*; public class Token extends MovieClip { private var sdx:int; private var yVel:Number; private var stopY:int; private var grav:Number; private var tokenSize:String;// = "down" private var tokenSizeCount:uint; public function Token(_arg1:int, _arg2:Number, _arg3:Number, _arg4:int, _arg5:int, _arg6:int){ tokenSize = "down"; super(); stopY = _arg5; sdx = _arg1; yVel = _arg2; grav = _arg3; this.x = _arg4; _arg5 = (_arg5 + yVel); this.y = _arg5; this.gotoAndStop(_arg6); addEventListener(Event.ENTER_FRAME, moveToken); } public function deleteToken(){ MovieClip(parent).deleteToken(this); parent.removeChild(this); } public function moveToken(_arg1:Event){ var _local2:*; var _local3:*; _local2 = 0.2; _local3 = 0.2; if (tokenSizeCount <= 4){ this.scaleX = (this.scaleX - _local3); tokenSizeCount++; }; if (tokenSizeCount == 5){ this.scaleX = 0; tokenSizeCount++; }; if (tokenSizeCount > 5){ this.scaleX = (this.scaleX + _local2); tokenSizeCount++; }; if (tokenSizeCount == 10){ this.scaleX = 0; tokenSizeCount++; }; if (tokenSizeCount > 10){ tokenSizeCount = 0; }; this.y = (this.y + yVel); yVel = (yVel + grav); if (this.y >= stopY){ removeEventListener(Event.ENTER_FRAME, moveToken); this.y = stopY; this.scaleX = 1; }; } } }//package
Section 78
//whiteCB (whiteCB) package { import flash.display.*; public dynamic class whiteCB extends MovieClip { } }//package
Section 79
//Yen1 (Yen1) package { import flash.display.*; public dynamic class Yen1 extends MovieClip { } }//package
Section 80
//Yen10 (Yen10) package { import flash.display.*; public dynamic class Yen10 extends MovieClip { } }//package
Section 81
//Yen100 (Yen100) package { import flash.display.*; public dynamic class Yen100 extends MovieClip { } }//package
Section 82
//Yen5 (Yen5) package { import flash.display.*; public dynamic class Yen5 extends MovieClip { } }//package
Section 83
//Yen50 (Yen50) package { import flash.display.*; public dynamic class Yen50 extends MovieClip { } }//package
Section 84
//Yen500 (Yen500) package { import flash.display.*; public dynamic class Yen500 extends MovieClip { } }//package
Section 85
//yesButton (yesButton) package { import flash.display.*; public dynamic class yesButton extends MovieClip { } }//package
Section 86
//yingyang (yingyang) package { import flash.display.*; public dynamic class yingyang extends MovieClip { } }//package

Library Items

Symbol 1 Sound {kotoG}
Symbol 2 Sound {kotoF}
Symbol 3 Sound {kotoE}
Symbol 4 Sound {kotoD}
Symbol 5 Sound {kotoC}
Symbol 6 Sound {kotoB}
Symbol 7 Sound {kotoA}
Symbol 8 Sound {diceSound}
Symbol 9 Sound {diamond}
Symbol 10 Sound {congrats}
Symbol 11 Sound {click2}
Symbol 12 Sound {Click}
Symbol 13 GraphicUsed by:38
Symbol 14 FontUsed by:15 17 19 21 23 25 27 29 31 33 35 37
Symbol 15 EditableTextUses:14Used by:38
Symbol 16 GraphicUsed by:38
Symbol 17 EditableTextUses:14Used by:38
Symbol 18 GraphicUsed by:38
Symbol 19 EditableTextUses:14Used by:38
Symbol 20 GraphicUsed by:38
Symbol 21 EditableTextUses:14Used by:38
Symbol 22 GraphicUsed by:38
Symbol 23 EditableTextUses:14Used by:38
Symbol 24 GraphicUsed by:38
Symbol 25 EditableTextUses:14Used by:38
Symbol 26 GraphicUsed by:38
Symbol 27 EditableTextUses:14Used by:38
Symbol 28 GraphicUsed by:38
Symbol 29 EditableTextUses:14Used by:38
Symbol 30 GraphicUsed by:38
Symbol 31 EditableTextUses:14Used by:38
Symbol 32 GraphicUsed by:38
Symbol 33 EditableTextUses:14Used by:38
Symbol 34 GraphicUsed by:38
Symbol 35 EditableTextUses:14Used by:38
Symbol 36 GraphicUsed by:38
Symbol 37 EditableTextUses:14Used by:38
Symbol 38 MovieClip {tile1}Uses:13 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:41
Symbol 41 MovieClip {rollDice}Uses:40
Symbol 42 BitmapUsed by:43
Symbol 43 GraphicUses:42Used by:59 60
Symbol 44 BitmapUsed by:45
Symbol 45 GraphicUses:44Used by:46
Symbol 46 MovieClip {dieTwo}Uses:45Used by:59 60
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:49
Symbol 49 MovieClip {dieThree}Uses:48Used by:59 60
Symbol 50 BitmapUsed by:51
Symbol 51 GraphicUses:50Used by:52
Symbol 52 MovieClip {dieFour}Uses:51Used by:59 60
Symbol 53 BitmapUsed by:54
Symbol 54 GraphicUses:53Used by:55
Symbol 55 MovieClip {dieFive}Uses:54Used by:59 60
Symbol 56 BitmapUsed by:57
Symbol 57 GraphicUses:56Used by:58
Symbol 58 MovieClip {dieSix}Uses:57Used by:59 60
Symbol 59 MovieClip {die}Uses:43 46 49 52 55 58
Symbol 60 MovieClip {dieOne}Uses:43 46 49 52 55 58
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:93 94
Symbol 63 BitmapUsed by:64
Symbol 64 GraphicUses:63Used by:65
Symbol 65 MovieClip {tileTwo}Uses:64Used by:93 94
Symbol 66 BitmapUsed by:67
Symbol 67 GraphicUses:66Used by:68
Symbol 68 MovieClip {tileThree}Uses:67Used by:93 94
Symbol 69 BitmapUsed by:70
Symbol 70 GraphicUses:69Used by:71
Symbol 71 MovieClip {tileFour}Uses:70Used by:93 94
Symbol 72 BitmapUsed by:73
Symbol 73 GraphicUses:72Used by:74
Symbol 74 MovieClip {tileFive}Uses:73Used by:93 94
Symbol 75 BitmapUsed by:76
Symbol 76 GraphicUses:75Used by:77
Symbol 77 MovieClip {tileSix}Uses:76Used by:93 94
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:80
Symbol 80 MovieClip {tileSeven}Uses:79Used by:93 94
Symbol 81 BitmapUsed by:82
Symbol 82 GraphicUses:81Used by:83
Symbol 83 MovieClip {tileEight}Uses:82Used by:93 94
Symbol 84 BitmapUsed by:85
Symbol 85 GraphicUses:84Used by:86
Symbol 86 MovieClip {tileNine}Uses:85Used by:93 94
Symbol 87 BitmapUsed by:88
Symbol 88 GraphicUses:87Used by:89
Symbol 89 MovieClip {tileTen}Uses:88Used by:93 94
Symbol 90 BitmapUsed by:91
Symbol 91 GraphicUses:90Used by:92
Symbol 92 MovieClip {tileBlank}Uses:91Used by:93
Symbol 93 MovieClip {allTiles}Uses:62 65 68 71 74 77 80 83 86 89 92
Symbol 94 MovieClip {tileOne}Uses:62 65 68 71 74 77 80 83 86 89
Symbol 95 BitmapUsed by:96
Symbol 96 GraphicUses:95Used by:97
Symbol 97 MovieClip {fan}Uses:96
Symbol 98 BitmapUsed by:99
Symbol 99 GraphicUses:98Used by:121 122
Symbol 100 BitmapUsed by:101
Symbol 101 GraphicUses:100Used by:102
Symbol 102 MovieClip {cherryBlossum}Uses:101Used by:121
Symbol 103 BitmapUsed by:104
Symbol 104 GraphicUses:103Used by:105
Symbol 105 MovieClip {Yen1}Uses:104Used by:121
Symbol 106 BitmapUsed by:107
Symbol 107 GraphicUses:106Used by:108
Symbol 108 MovieClip {Yen5}Uses:107Used by:121
Symbol 109 BitmapUsed by:110
Symbol 110 GraphicUses:109Used by:111
Symbol 111 MovieClip {Yen10}Uses:110Used by:121
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used by:114
Symbol 114 MovieClip {Yen50}Uses:113Used by:121
Symbol 115 BitmapUsed by:116
Symbol 116 GraphicUses:115Used by:117
Symbol 117 MovieClip {Yen100}Uses:116Used by:121
Symbol 118 BitmapUsed by:119
Symbol 119 GraphicUses:118Used by:120
Symbol 120 MovieClip {Yen500}Uses:119Used by:121
Symbol 121 MovieClip {Token}Uses:99 102 105 108 111 114 117 120
Symbol 122 MovieClip {yingyang}Uses:99
Symbol 123 BitmapUsed by:124
Symbol 124 GraphicUses:123Used by:125
Symbol 125 MovieClip {gameBkgd}Uses:124
Symbol 126 BitmapUsed by:127
Symbol 127 GraphicUses:126Used by:128
Symbol 128 MovieClip {doubleImage}Uses:127
Symbol 129 BitmapUsed by:130
Symbol 130 GraphicUses:129Used by:131
Symbol 131 MovieClip {GameOver}Uses:130
Symbol 132 BitmapUsed by:133
Symbol 133 GraphicUses:132Used by:134
Symbol 134 MovieClip {noMoves}Uses:133
Symbol 135 BitmapUsed by:136
Symbol 136 GraphicUses:135Used by:137
Symbol 137 MovieClip {rowCleared}Uses:136
Symbol 138 BitmapUsed by:139
Symbol 139 GraphicUses:138Used by:140
Symbol 140 MovieClip {scoringButton}Uses:139
Symbol 141 BitmapUsed by:142
Symbol 142 GraphicUses:141Used by:143
Symbol 143 MovieClip {menuButton}Uses:142
Symbol 144 BitmapUsed by:145
Symbol 145 GraphicUses:144Used by:146
Symbol 146 MovieClip {scoring}Uses:145
Symbol 147 BitmapUsed by:148
Symbol 148 GraphicUses:147Used by:149 150
Symbol 149 MovieClip {closeButtonMenu}Uses:148
Symbol 150 MovieClip {scoringClose}Uses:148
Symbol 151 BitmapUsed by:152
Symbol 152 GraphicUses:151Used by:153
Symbol 153 MovieClip {playGameButton}Uses:152
Symbol 154 BitmapUsed by:155
Symbol 155 GraphicUses:154Used by:156
Symbol 156 MovieClip {instructionsButton}Uses:155
Symbol 157 BitmapUsed by:158
Symbol 158 GraphicUses:157Used by:159
Symbol 159 MovieClip {splashBkgd}Uses:158
Symbol 160 BitmapUsed by:161
Symbol 161 GraphicUses:160Used by:165 166 167 168 169
Symbol 162 BitmapUsed by:163
Symbol 163 GraphicUses:162Used by:164
Symbol 164 MovieClip {pinkCB}Uses:163Used by:165 166 167 168
Symbol 165 MovieClip {clearRowTwoCB}Uses:161 164
Symbol 166 MovieClip {clearRowCB}Uses:161 164
Symbol 167 MovieClip {allCBSplash}Uses:161 164
Symbol 168 MovieClip {allCB}Uses:161 164
Symbol 169 MovieClip {whiteCB}Uses:161
Symbol 170 BitmapUsed by:171
Symbol 171 GraphicUses:170Used by:172
Symbol 172 MovieClip {instruct1}Uses:171
Symbol 173 BitmapUsed by:174
Symbol 174 GraphicUses:173Used by:175
Symbol 175 MovieClip {instruct2}Uses:174
Symbol 176 BitmapUsed by:177
Symbol 177 GraphicUses:176Used by:178
Symbol 178 MovieClip {instructionBkgd}Uses:177
Symbol 179 BitmapUsed by:180
Symbol 180 GraphicUses:179Used by:181
Symbol 181 MovieClip {nextButton}Uses:180
Symbol 182 BitmapUsed by:183
Symbol 183 GraphicUses:182Used by:184
Symbol 184 MovieClip {nspLogo}Uses:183
Symbol 185 BitmapUsed by:186
Symbol 186 GraphicUses:185Used by:187
Symbol 187 MovieClip {playMore}Uses:186
Symbol 188 BitmapUsed by:189
Symbol 189 GraphicUses:188Used by:190
Symbol 190 MovieClip {titleMenu}Uses:189
Symbol 191 BitmapUsed by:192
Symbol 192 GraphicUses:191Used by:193
Symbol 193 MovieClip {playAgain}Uses:192
Symbol 194 BitmapUsed by:195
Symbol 195 GraphicUses:194Used by:196
Symbol 196 MovieClip {yesButton}Uses:195
Symbol 197 BitmapUsed by:198
Symbol 198 GraphicUses:197Used by:199
Symbol 199 MovieClip {buyRoll}Uses:198
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:202
Symbol 202 MovieClip {noButton}Uses:201
Symbol 203 BitmapUsed by:204
Symbol 204 GraphicUses:203Used by:205
Symbol 205 MovieClip {greatJob}Uses:204
Symbol 206 BitmapUsed by:207
Symbol 207 GraphicUses:206Used by:208
Symbol 208 MovieClip {musicOn}Uses:207
Symbol 209 BitmapUsed by:210
Symbol 210 GraphicUses:209Used by:211
Symbol 211 MovieClip {musicOff}Uses:210
Symbol 212 GraphicUsed by:213
Symbol 213 MovieClip {mochiClip}Uses:212

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.
Tag 0x0FF (255)Timeline Frame 11 bytes " "

Labels

"splash"Frame 2
"playgame"Frame 3
"endgame"Frame 4




http://swfchan.com/10/47493/info.shtml
Created: 1/5 -2019 18:00:35 Last modified: 1/5 -2019 18:00:35 Server time: 05/11 -2024 06:38:24