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

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

Linyca.swf

This is the info page for
Flash #71918

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


Text
Loading

SEA

PUZZLE

PLAY LEVEL MUSIC

STOP LEVEL MUSIC

CONTINUE

LEVEL COMPLETE

CONGRATULATIONS!

LEVEL SCORE:

<p align="left"><font face="Valken" size="15" color="#ffff33" letterSpacing="1.000000" kerning="0">0</font></p>

FULL CLEAR:

<p align="left"><font face="Valken" size="15" color="#d5f7ff" letterSpacing="1.000000" kerning="0">NO</font></p>

FULL LINE COMBOS:

<p align="left"><font face="Valken" size="15" color="#d5f7ff" letterSpacing="1.000000" kerning="0">0</font></p>

HALF LINE COMBOS:

<p align="left"><font face="Valken" size="15" color="#d5f7ff" letterSpacing="1.000000" kerning="0">0</font></p>

COLOR COMBOS:

<p align="left"><font face="Valken" size="15" color="#d5f7ff" letterSpacing="1.000000" kerning="0">0</font></p>

<p align="center"><font face="Trebuchet MS_11pt_st" size="11" color="#159ffb" letterSpacing="0.000000" kerning="1"><a href="http://www.puzzlesea.com/linyca/" target = "_blank">To store your progress, play on www.puzzlesea.com</a></font></p>

CLOSE

SUBMIT SCORES

PLAY MORE GAMES

YOUR SCORE:

<p align="center"><font face="Valken" size="20" color="#ffff33" letterSpacing="1.000000" kerning="0">0</font></p>

GAME OVER

MENU

<p align="center"><font face="Trebuchet MS" size="18" color="#2dbffd" letterSpacing="0.000000" kerning="1">Puzzle Sea</font></p>

Level Complete!

Bonus Game

1

Half Line Combo. Remove at least half of the line at once, to get it.

Full Line Combo. Remove full line at once, to get it.

Color combo. Remove same groups five times to get it.

Linyca v1.2 ©2008 Puzzlesea.com

<p align="center"><font face="Valken" size="14" color="#81ccfe" letterSpacing="1.000000" kerning="0">Thanks for rating!</font></p>

RATE:

Q:L

Q:M

Q:H

Q:B

CANCEL

OTHER GAMES

COMMENT

Get this game for your site

MORE GAMES

HELP

<p align="center"><font face="Valken" size="20" color="#ffffff" letterSpacing="2.000000" kerning="0">SCORES</font></p>

SCORES

PLAY

<p align="center"><font face="Valken" size="28" color="#70c6fe" letterSpacing="2.000000" kerning="0">LINYCA</font></p>

Do you want to continue your saved game?

NEW GAME

COMMENT

<p align="center"><font face="Verdana_9pt_st" size="9" color="#02acf4" letterSpacing="0.000000" kerning="0"><a href="http://www.mochibot.com" target = "_blank">Powered by mochibot.com</a></font></p>

VIEW

SUBMIT

name:

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

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

Not connected yet...

Try later.

HELP

The aim is to remove as
many lines as possible.

To pass the level, you have to remove the lines of the
pieces above the blue background.

To remove pieces, click the same in the line.

If you click on an item without pairs in the
row, you will get a fine.

Make combos and try to remove all items to get more
score.

<p align="left"><font face="Trebuchet MS_10pt_st" size="10" color="#003366" letterSpacing="0.000000" kerning="1">[F11] - Quality</font></p><p align="left"><font face="Trebuchet MS_10pt_st" size="10" color="#003366" letterSpacing="0.000000" kerning="1">[F12] - Mute On/Off</font></p>

<p align="center"><font face="Trebuchet MS_11pt_st" size="11" color="#0285db" letterSpacing="0.000000" kerning="1"><a href="http://www.puzzlesea.com/linyca/" target = "_blank">If you want to store your progress, play on www.puzzlesea.com</a></font></p>

loading data...

<p align="center"><font face="Valken" size="20" color="#4eb8fe" letterSpacing="2.000000" kerning="0">SCORES</font></p>

Something wrong.
May be you are disconnected.
If you are connected to the
WEB, try to run game again.

Loading Error!

ActionScript [AS3]

Section 1
//GameJacketAS3 (gamejacket.GameJacketAS3) package gamejacket { import flash.display.*; import flash.events.*; import flash.net.*; public class GameJacketAS3 extends Sprite { private var s:String;// = "" private var nNumberSecurity:Number;// = 0 private var gameVar:String; public function GameJacketAS3(){ s = ""; nNumberSecurity = 0; super(); } private function checkLoaded(_arg1:Event):void{ var _local2:*; _local2 = new XML(_arg1.currentTarget.data); nNumberSecurity = Number(_local2.game.r); dispatchSecurityEvent(); } public function setVariables(_arg1:LoaderInfo):void{ var _local2:Object; var _local3:String; var _local4:String; _local2 = _arg1.parameters; for (_local3 in _local2) { _local4 = String(_local2[_local3]); if (_local3 == "gameVar"){ gameVar = _local4; } else { if (_local3 == "s"){ s = _local4; }; }; }; checkNumber(); } private function checkNumber(){ var _local1:URLLoader; var _local2:URLRequest; _local1 = new URLLoader(); _local1.addEventListener(Event.COMPLETE, checkLoaded); _local1.addEventListener(IOErrorEvent.IO_ERROR, checkIOError); _local2 = new URLRequest(((((s + "gameCheck.asp?gameVar=") + gameVar) + "&random=") + Math.random())); _local1.load(_local2); } private function checkIOError(_arg1:IOErrorEvent):void{ dispatchSecurityEvent(); } public function checkMe():Number{ return (1); } private function dispatchSecurityEvent():void{ if (nNumberSecurity == 1){ dispatchEvent(new Event("GameJacketPass")); } else { dispatchEvent(new Event("GameJacketFail")); }; } } }//package gamejacket
Section 2
//bnCansel_45 (linyca_fla.bnCansel_45) package linyca_fla { import flash.display.*; public dynamic class bnCansel_45 extends MovieClip { public var bn_cancel:SimpleButton; } }//package linyca_fla
Section 3
//DlgHelp_56 (linyca_fla.DlgHelp_56) package linyca_fla { import flash.display.*; import flash.text.*; public dynamic class DlgHelp_56 extends MovieClip { public var bn_close_help:SimpleButton; public var txt_site:TextField; } }//package linyca_fla
Section 4
//DlgNotConnectScores_55 (linyca_fla.DlgNotConnectScores_55) package linyca_fla { import flash.display.*; public dynamic class DlgNotConnectScores_55 extends MovieClip { public var bn_close:SimpleButton; } }//package linyca_fla
Section 5
//DlgPlay_53 (linyca_fla.DlgPlay_53) package linyca_fla { import flash.display.*; public dynamic class DlgPlay_53 extends MovieClip { public var bn_new:SimpleButton; public var bn_continue:SimpleButton; public var bn_cancel:MovieClip; } }//package linyca_fla
Section 6
//InfoLevelComplete_17 (linyca_fla.InfoLevelComplete_17) package linyca_fla { import flash.display.*; public dynamic class InfoLevelComplete_17 extends MovieClip { public function InfoLevelComplete_17(){ addFrameScript(0, frame1, 149, frame150); } function frame1(){ stop(); } function frame150(){ stop(); } } }//package linyca_fla
Section 7
//logo_3 (linyca_fla.logo_3) package linyca_fla { import flash.display.*; import flash.events.*; public dynamic class logo_3 extends MovieClip { public function logo_3(){ addFrameScript(0, frame1); } function frame1(){ buttonMode = true; addEventListener(MouseEvent.CLICK, Main.onGotoDevSite); } } }//package linyca_fla
Section 8
//mcRating_40 (linyca_fla.mcRating_40) package linyca_fla { import flash.display.*; public dynamic class mcRating_40 extends MovieClip { public var mc_mask:MovieClip; } }//package linyca_fla
Section 9
//resources_8 (linyca_fla.resources_8) package linyca_fla { import flash.display.*; public dynamic class resources_8 extends MovieClip { public function resources_8(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package linyca_fla
Section 10
//sounds_7 (linyca_fla.sounds_7) package linyca_fla { import flash.display.*; public dynamic class sounds_7 extends MovieClip { public function sounds_7(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package linyca_fla
Section 11
//TxtCopyright_37 (linyca_fla.TxtCopyright_37) package linyca_fla { import flash.display.*; import flash.text.*; public dynamic class TxtCopyright_37 extends MovieClip { public var text:TextField; } }//package linyca_fla
Section 12
//MochiAd (mochi.MochiAd) package mochi { 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.6"); } 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{ }, 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; options.ad_finished(); }; }; 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{ }, 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"){ }; 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; }; } 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 fn:Function; 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{ }, ad_skipped:function ():void{ }, ad_progress:function (_arg1:Number):void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){ options.ad_started(); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); return; }; clip = options.clip; 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{ 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{ MochiAd.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ 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 mochi
Section 13
//MochiBot (mochi.MochiBot) package mochi { import flash.display.*; import flash.events.*; 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); } static function onLoadError(_arg1:IOErrorEvent){ } } }//package mochi
Section 14
//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(); //unresolved jump }; }; }; } else { options = {}; if ((MochiServices.clip is MovieClip)){ MochiServices.clip.stop(); //unresolved jump }; }; if (options.onClose != null){ onCloseHandler = options.onClose; } else { onCloseHandler = function ():void{ if ((MochiServices.clip is MovieClip)){ MochiServices.clip.play(); //unresolved jump }; }; }; 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 15
//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.32"); } 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]; //unresolved jump }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { }; }; }; delete this.client._callbacks[cb]; }; _clip.onError = function ():void{ MochiServices.onError("IOError"); }; _rcvChannel.connect(_rcvChannelName); _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); } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; if (((!((args.options == null))) && (!((args.options.onError == null))))){ args.options.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } public static function 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; 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) { _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)))){ _connecting = true; init(id, clip); }; //unresolved jump }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ }; }; }; } 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; MochiServices.disconnect(); MochiServices.onError("IOError"); }; _timer.stop(); }; } } }//package mochi
Section 16
//Advertise (Advertise) package { import flash.display.*; import mochi.*; public class Advertise { var _mochi_id:String;// = "48b35d024989aa9b" public function Advertise(_arg1:Main, _arg2:Function, _arg3:Function){ var _local4:String; _mochi_id = "48b35d024989aa9b"; super(); _local4 = ((Main.WIDTH + "x") + Main.HEIGHT); if (dom.isEnabledAD()){ MochiAd.showPreGameAd({clip:_arg1.root, id:_mochi_id, res:_local4, ad_finished:_arg2, ad_timeout:7000}); } else { _arg2(); }; } function hideClickAwayAD(_arg1:MovieClip){ MochiAd.unload(_arg1); _arg1.visible = false; } function showClickAwayAD(_arg1:MovieClip){ MochiAd.showClickAwayAd({id:_mochi_id, clip:_arg1}); _arg1.visible = true; } } }//package
Section 17
//BtnMute (BtnMute) package { import flash.display.*; import flash.events.*; import flash.ui.*; public class BtnMute extends MovieClip { public static var _isEnable:Boolean = true; public function BtnMute(){ stop(); addEventListener(MouseEvent.CLICK, onClick); stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDn); useHandCursor = true; buttonMode = true; initFrame(); } function initFrame(){ if (_isEnable){ gotoAndStop(1); } else { gotoAndStop(2); }; } function toggle(){ _isEnable = !(_isEnable); initFrame(); Sfx.play(SfxClick); } private function onKeyDn(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == Keyboard.F12)) || ((_arg1.keyCode == Keyboard.NUMPAD_MULTIPLY)))){ toggle(); }; } private function onClick(_arg1:MouseEvent):void{ toggle(); } } }//package
Section 18
//BtnQuality (BtnQuality) package { import flash.display.*; import flash.events.*; import flash.ui.*; public class BtnQuality extends MovieClip { public function BtnQuality(){ addEventListener(MouseEvent.CLICK, onClick); stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDn); useHandCursor = true; buttonMode = true; initFrame(); } function switchToNextMode(){ var _local1:String; Sfx.play(SfxClick); _local1 = stage.quality.toLowerCase(); if (_local1 == StageQuality.LOW){ stage.quality = StageQuality.BEST; gotoAndStop(4); } else { if (_local1 == StageQuality.BEST){ stage.quality = StageQuality.HIGH; gotoAndStop(3); } else { if (_local1 == StageQuality.HIGH){ stage.quality = StageQuality.MEDIUM; gotoAndStop(2); } else { if (_local1 == StageQuality.MEDIUM){ stage.quality = StageQuality.LOW; gotoAndStop(1); }; }; }; }; } private function initFrame():void{ var _local1:String; _local1 = stage.quality.toLowerCase(); if (_local1 == StageQuality.LOW){ gotoAndStop(1); } else { if (_local1 == StageQuality.BEST){ gotoAndStop(4); } else { if (_local1 == StageQuality.HIGH){ gotoAndStop(3); } else { if (_local1 == StageQuality.MEDIUM){ gotoAndStop(2); }; }; }; }; } private function onKeyDn(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == Keyboard.F11)) || ((_arg1.keyCode == Keyboard.NUMPAD_DIVIDE)))){ switchToNextMode(); }; } private function onClick(_arg1:MouseEvent):void{ switchToNextMode(); } } }//package
Section 19
//BtnVolume (BtnVolume) package { import flash.display.*; import flash.events.*; import flash.media.*; import flash.ui.*; public class BtnVolume extends MovieClip { var _isMDn:Boolean;// = false static var _sndTransform:SoundTransform = new SoundTransform(); public function BtnVolume(){ _isMDn = false; super(); stop(); addEventListener(Event.ADDED_TO_STAGE, onAdded); addEventListener(Event.REMOVED_FROM_STAGE, onRemoved); setVolume(_sndTransform.volume); useHandCursor = true; } private function onMDown(_arg1:MouseEvent):void{ _isMDn = true; setVolumeByMouseX(_arg1.stageX); } public function setVolume(_arg1:Number){ if (_arg1 < 0){ _arg1 = 0; } else { if (_arg1 > 1){ _arg1 = 1; }; }; _sndTransform.volume = _arg1; SoundMixer.soundTransform = _sndTransform; gotoAndStop(int((_arg1 * 100))); } private function onMMove(_arg1:MouseEvent):void{ if (_isMDn){ setVolumeByMouseX(_arg1.stageX); }; } private function onAdded(_arg1:Event):void{ stage.addEventListener(MouseEvent.MOUSE_UP, onMUp); stage.addEventListener(MouseEvent.MOUSE_MOVE, onMMove); stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDn); addEventListener(MouseEvent.MOUSE_DOWN, onMDown); addEventListener(MouseEvent.MOUSE_WHEEL, onMWheel); } private function onRemoved(_arg1:Event):void{ stage.removeEventListener(MouseEvent.MOUSE_UP, onMUp); stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMMove); stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDn); removeEventListener(MouseEvent.MOUSE_DOWN, onMDown); removeEventListener(MouseEvent.MOUSE_WHEEL, onMWheel); } private function onMUp(_arg1:MouseEvent):void{ _isMDn = false; } private function onMWheel(_arg1:MouseEvent):void{ setVolume((_sndTransform.volume + (_arg1.delta * 0.01))); } private function onKeyDn(_arg1:KeyboardEvent):void{ var _local2:Number; _local2 = 0.02; switch (_arg1.keyCode){ case Keyboard.NUMPAD_ADD: setVolume((_sndTransform.volume + _local2)); break; case Keyboard.NUMPAD_SUBTRACT: setVolume((_sndTransform.volume - _local2)); break; }; } private function setVolumeByMouseX(_arg1:Number){ var _local2:Number; _local2 = ((_arg1 - x) / width); setVolume(_local2); } } }//package
Section 20
//ColorComboInfo (ColorComboInfo) package { import flash.display.*; public dynamic class ColorComboInfo extends MovieClip { } }//package
Section 21
//DlgComment (DlgComment) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; public dynamic class DlgComment extends MovieClip { public var bn_close:SimpleButton; public var bn_submit:SimpleButton; public var fld_comment:TextField; public var fld_name:TextField; public var bn_view:SimpleButton; public function DlgComment(){ visible = false; fld_name.text = ""; fld_comment.text = ""; bn_view.addEventListener(MouseEvent.CLICK, onShowOnlineComments); bn_submit.addEventListener(MouseEvent.CLICK, onSubmitComment); } function onShowOnlineComments(_arg1:MouseEvent){ var _local2:URLRequest; _local2 = new URLRequest(("http://www.mochibot.com/shared/shared_feedback.html?swfid=" + Main.MOCHIBOT_ID)); navigateToURL(_local2); Sfx.play(SfxClick); } function submit_comment(_arg1:String, _arg2:String, _arg3:String=null){ var _local4:URLRequest; var _local5:URLLoader; _local4 = new URLRequest("http://www.mochibot.com/api/api-feedback.html"); _local4.data = ("mochibot_id=" + Main.MOCHIBOT_ID); _local4.data = (_local4.data + ("&comment=" + _arg1)); if (_arg2){ _local4.data = (_local4.data + ("&name=" + _arg2)); }; if (_arg3){ _local4.data = (_local4.data + ("&email=" + _arg3)); }; _local4.method = URLRequestMethod.POST; _local5 = new URLLoader(); _local5.addEventListener(Event.COMPLETE, onCommentSubmitted); _local5.load(_local4); } function onCommentSubmitted(_arg1:Event){ var _local2:URLRequest; _local2 = new URLRequest(("http://www.mochibot.com/shared/shared_feedback.html?swfid=" + Main.MOCHIBOT_ID)); navigateToURL(_local2); } function hide(){ visible = false; if (bn_submit.enabled == false){ bn_submit.enabled = true; bn_submit.addEventListener(MouseEvent.CLICK, onSubmitComment); }; } function onSubmitComment(_arg1:MouseEvent){ if ((((fld_comment.text.length > 0)) && ((fld_name.text.length > 0)))){ submit_comment(fld_comment.text, fld_name.text); bn_submit.enabled = false; bn_submit.removeEventListener(MouseEvent.CLICK, onSubmitComment); Sfx.play(SfxClick); } else { Sfx.play(SfxWrong); }; } function show(){ fld_name.text = ""; fld_comment.text = ""; visible = true; } } }//package
Section 22
//DlgGameOver (DlgGameOver) package { import flash.display.*; import flash.events.*; import flash.text.*; public class DlgGameOver extends MovieClip { public var txt_score:TextField; public var bn_more_games:SimpleButton; public var bn_scores:SimpleButton; public var bn_menu:SimpleButton; public function DlgGameOver(){ addFrameScript(0, frame1); } function frame1(){ initDialog(); stop(); } function onGotoMenu(_arg1:MouseEvent){ (parent as Game).gotoToMenu(_arg1); remove(); } function initDialog(){ this["bn_menu"].addEventListener(MouseEvent.CLICK, onGotoMenu); this["bn_scores"].addEventListener(MouseEvent.CLICK, onGotoScores); this["bn_more_games"].addEventListener(MouseEvent.CLICK, Main.onGotoMoreGames); this["txt_score"].mouseEnabled = false; } function remove(){ parent.removeChild(this); } function onGotoScores(_arg1:MouseEvent){ (parent as Game).onSubmitScores(); remove(); } } }//package
Section 23
//DlgLevelComplete (DlgLevelComplete) package { import flash.display.*; import flash.events.*; import flash.text.*; public dynamic class DlgLevelComplete extends MovieClip { public var txt_score:TextField; public var bn_stop:SimpleButton; public var txt_fullclear:TextField; public var txt_flinecombos:TextField; public var bn_play:SimpleButton; public var txt_colorcombos:TextField; public var bn_continue:SimpleButton; public var txt_hlinecombos:TextField; public var txt_site:TextField; public function DlgLevelComplete(){ addFrameScript(0, frame1); } function gotoGame(_arg1:MouseEvent){ var _local2:Game; _local2 = (parent as Game); remove(); _local2.nextLevel(); } function playLevelSound(_arg1:MouseEvent){ var _local2:Game; _local2 = (parent as Game); _local2.playLevelSound(_arg1); this["bn_play"].visible = false; this["bn_stop"].visible = true; } function gotoMenu(_arg1:MouseEvent){ var _local2:Game; _local2 = (parent as Game); remove(); _local2.returnToMenu(_arg1); } function frame1(){ initDialog(); fillData(); stop(); } function initDialog(){ this["bn_play"].addEventListener(MouseEvent.CLICK, playLevelSound); this["bn_stop"].addEventListener(MouseEvent.CLICK, stopLevelSound); this["bn_stop"].visible = false; this["bn_continue"].addEventListener(MouseEvent.CLICK, gotoGame); this["txt_site"].addEventListener(MouseEvent.CLICK, Main.onGotoGamePage); } function remove(){ parent.removeChild(this); } function stopLevelSound(_arg1:MouseEvent){ var _local2:Game; _local2 = (parent as Game); _local2.stopLevelSound(_arg1); this["bn_play"].visible = true; this["bn_stop"].visible = false; } function fillData(){ var game:Game; game = Game(parent); if (game){ var _local2 = game._level_stats; with (_local2) { TextField(this["txt_score"]).text = _score.toString(); if (_full_clear){ TextField(this["txt_fullclear"]).text = "YES"; } else { TextField(this["txt_fullclear"]).text = "NO"; }; TextField(this["txt_colorcombos"]).text = _color_combos.toString(); TextField(this["txt_flinecombos"]).text = _full_line_combos.toString(); TextField(this["txt_hlinecombos"]).text = _half_line_combos.toString(); }; }; } } }//package
Section 24
//dom (dom) package { public class dom { static var _urlGame:String = "http://puzzlesea.com/linyca/"; static var _domSaveLoad:Array = ["puzzlesea.com", "vladku.com", "file:///E|/PRJ/Flash", "E:\\PRJ\\Flash", "E:/PRJ/Flash"]; static var _main:Main; static var _domLocal:Array = ["file:///E|/PRJ/Flash", "E:\\PRJ\\Flash", "E:/PRJ/Flash"]; static var _urlDevSite:String = "http://puzzlesea.com/"; static var _domADDisabled:Array = ["file:///E|/PRJ/Flash", "E:\\PRJ\\Flash", "E:/PRJ/Flash"]; static var _urlGamePack:String = "http://puzzlesea.com/puzzle/click/linyca/linyca.zip"; static var _urlMoreGames:String = "http://puzzlesea.com/"; public function dom(_arg1:Main){ _main = _arg1; } public static function isEnabledTrack():Boolean{ return (!(isDomIn(_domLocal))); } public static function getUrl():String{ return (_main.loaderInfo.url); } public static function isEnabledAD():Boolean{ return (!(isDomIn(_domADDisabled))); } static function isDomIn(_arg1:Array):Boolean{ var _local2:String; for each (_local2 in _arg1) { if (_main.loaderInfo.url.indexOf(_local2) > -1){ return (true); }; }; return (false); } public static function isEnabledStoreProgress():Boolean{ return (isDomIn(_domSaveLoad)); } } }//package
Section 25
//Element1 (Element1) package { import flash.display.*; public dynamic class Element1 extends MovieClip { } }//package
Section 26
//Element2 (Element2) package { import flash.display.*; public dynamic class Element2 extends MovieClip { } }//package
Section 27
//Element3 (Element3) package { import flash.display.*; public dynamic class Element3 extends MovieClip { } }//package
Section 28
//Element4 (Element4) package { import flash.display.*; public dynamic class Element4 extends MovieClip { } }//package
Section 29
//Element5 (Element5) package { import flash.display.*; public dynamic class Element5 extends MovieClip { } }//package
Section 30
//Element6 (Element6) package { import flash.display.*; public dynamic class Element6 extends MovieClip { } }//package
Section 31
//Element7 (Element7) package { import flash.display.*; public dynamic class Element7 extends MovieClip { } }//package
Section 32
//Element8 (Element8) package { import flash.display.*; public dynamic class Element8 extends MovieClip { } }//package
Section 33
//Element9 (Element9) package { import flash.display.*; public dynamic class Element9 extends MovieClip { } }//package
Section 34
//Fnt1 (Fnt1) package { import flash.text.*; public dynamic class Fnt1 extends Font { } }//package
Section 35
//Game (Game) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.*; import flash.geom.*; import flash.net.*; public dynamic class Game extends MovieClip { public var txt_score:TextField; var _animationDelayCnt:int; var _play_timer:Timer; var _dlgGameOver:DlgGameOver; var _colorComboLen:int;// = 5 var _score_pt:int;// = 10 var _level_types:int;// = 5 var _level_types_min:int;// = 5 var _elements:Array; var _cellh:int;// = 26 var _cellw:int;// = 26 var _halfLineComboScore:int;// = 100 var _drop_list:Array; var _fullClearScoreMul:int;// = 50 var _level_stats:LevelStats; var _lastClickPt:Point; public var ind_HalfLineCombo:MovieClip; var _level:int;// = 1 var _drop_speed:Number;// = 2 var _dlgLevelComplete:DlgLevelComplete; var _level_snd:Array; var _animationDelay:int;// = 4 var _level_col_height:int;// = 6 public var tooltip_FullLineCombo:MovieClip; var _elt_colors:Array; var _tb_Score:TextField; var _cColorCombo:Array; var _colorComboScore:int;// = 100 var _soSave:SharedObject; var _animatePt:Point; var _index_mul_y:Number; var _index_mul_x:Number; var _level_types_max:int;// = 9 public var ind_cc1:Element1; public var ind_cc2:Element2; public var ind_cc3:Element3; public var ind_cc5:Element5; public var ind_cc6:Element6; public var ind_cc7:Element7; public var ind_cc8:Element8; public var ind_cc9:Element9; public var ind_cc4:Element4; public var bn_menu:SimpleButton; var _fieldBack:Sprite; var _lvl_progress:Array; var _fieldBackMask:Sprite; var _match_min:int;// = 2 var _score:int; var _boardLayer:Sprite; public var tooltip_HalfLineCombo:MovieClip; var _play_ind:int; public var logo:SimpleButton; var _ih:int;// = 12 public var mc_complete:MovieClip; public var ind_FullLineCombo:MovieClip; var _fadeoff_list:Array; var _iw:int;// = 12 public var tooltip_ColorCombo:ColorComboInfo; var _bounds:Rectangle; var _lvl_progress_cnt:int;// = 0 var _megaComboScore:int;// = 5000 var _board:Array; var _fullLineComboScore:int;// = 500 public function Game(){ var txt:FlayoutText; _iw = 12; _ih = 12; _cellw = 26; _cellh = 26; _index_mul_x = (1 / _cellw); _index_mul_y = (1 / _cellh); _match_min = 2; _drop_speed = 2; _level_col_height = 6; _level_types = 5; _level_types_min = 5; _level_types_max = 9; _fadeoff_list = new Array(); _drop_list = new Array(); _bounds = new Rectangle(-221, -143, (_cellw * _iw), (_cellh * _ih)); _elt_colors = [189411, 156916, 187138, 15467010, 12518336, 0xFF9900, 16672691, 0xFFFFFF, 0x888888]; _elements = [Element1, Element2, Element3, Element4, Element5, Element6, Element7, Element8, Element9]; _score_pt = 10; _level_stats = new LevelStats(); _lastClickPt = new Point(); _animatePt = new Point(); _cColorCombo = new Array(); _colorComboLen = 5; _colorComboScore = 100; _fullLineComboScore = 500; _halfLineComboScore = 100; _megaComboScore = 5000; _animationDelay = 4; _fullClearScoreMul = 50; _level_snd = new Array(); _play_timer = new Timer(400); _level = 1; _dlgLevelComplete = new DlgLevelComplete(); _dlgGameOver = new DlgGameOver(); _soSave = SharedObject.getLocal("game_progress"); _lvl_progress = new Array(); _lvl_progress_cnt = 0; super(); addFrameScript(0, frame1); x = Main.HWIDTH; y = Main.HHEIGHT; stop(); _board = newArray2D(_iw, _ih); _fieldBack = new Sprite(); var _local2 = _fieldBack.graphics; with (_local2) { beginFill(3386111); drawRoundRect((-8 - (_cellw / 2)), (-8 - (_cellh / 2)), ((_iw * _cellw) + 16), ((_ih * _cellh) + 16), 16, 16); }; _fieldBack.x = _bounds.x; _fieldBack.y = _bounds.y; addChild(_fieldBack); _fieldBackMask = new Sprite(); _local2 = _fieldBackMask.graphics; with (_local2) { beginFill(0xFFFFFF); drawRect((-8 - (_cellw / 2)), (-(_cellh) / 2), ((_cellw * _iw) + 16), ((_cellh * _ih) + 16)); }; _fieldBackMask.x = _bounds.x; positionFieldMask(); addChild(_fieldBackMask); _fieldBack.mask = _fieldBackMask; _boardLayer = new Sprite(); addChild(_boardLayer); fillBoard(); fillLvlProgress(); addEventListener(Event.ENTER_FRAME, animateRemove, false, 0, true); txt = new FlayoutText(-78, 0, ("Level " + _level), 0xFFFF00, "Valken", 20, false); addChild(txt); _level_stats.reset(); } function getEmptyRows():int{ var _local1:int; var _local2:Array; var _local3:int; _local1 = 0; for each (_local2 in _board) { _local3 = 0; while (_local3 < _local2.length) { if (_local2[_local3]){ break; }; _local3++; }; if (_local3 < _local2.length){ break; } else { _local1++; }; }; return (_local1); } function playLevelSound(_arg1:MouseEvent){ if (_play_timer.running){ stopLevelSound(_arg1); } else { _play_ind = 0; _play_timer.addEventListener(TimerEvent.TIMER, animateLevelSound); _play_timer.start(); }; } function showLevelCompleteDialog(){ addChild(_dlgLevelComplete); _dlgLevelComplete.fillData(); var _local2 = (this["bn_menu"] as SimpleButton); with (_local2) { removeEventListener(MouseEvent.CLICK, returnToMenu); enabled = false; }; enabled = false; if (this.parent){ _dlgLevelComplete.playLevelSound(null); }; save(); _soSave.data.level_complete = true; } function nextLevel(){ var txt:FlayoutText; Sfx.play(SfxClick); if (!SimpleButton(this["bn_menu"]).enabled){ var _local2 = (this["bn_menu"] as SimpleButton); with (_local2) { enabled = true; addEventListener(MouseEvent.CLICK, returnToMenu); }; }; enabled = true; _level_snd.splice(0, _level_snd.length); _level_types++; if (_level_types > _level_types_max){ _level_types = _level_types_min; _level_col_height--; addEventListener(Event.ENTER_FRAME, moveMask); if (_level_col_height < 0){ _level_col_height = (_ih / 2); _match_min++; }; }; clearBoard(); fillBoard(); _level_stats.reset(); _level++; _score_pt = (_score_pt + 5); txt = new FlayoutText(-78, 0, ("Level " + _level), 0xFFFF00, "Valken", 20, false); addChild(txt); fillLvlProgress(); save(); } function frame1(){ initGame(); } function free(){ removeEventListener(Event.ENTER_FRAME, animateRemove); clearBoard(); this["bn_menu"].removeEventListener(MouseEvent.CLICK, returnToMenu); this["ind_cc1"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc1"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc2"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc2"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc3"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc3"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc4"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc4"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc5"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc5"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc6"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc6"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc7"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc7"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc8"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc8"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc9"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc9"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_HalfLineCombo"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipHLineCombo); this["ind_HalfLineCombo"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipHLineCombo); this["ind_FullLineCombo"].removeEventListener(MouseEvent.MOUSE_OVER, showTooltipFLineCombo); this["ind_FullLineCombo"].removeEventListener(MouseEvent.MOUSE_OUT, hideTooltipFLineCombo); } function moveMask(_arg1:Event){ var _local2:Boolean; _fieldBackMask.y = (_fieldBackMask.y + 0.5); _local2 = false; if (_level_col_height){ if (_fieldBackMask.y > (_bounds.y + ((_ih - _level_col_height) * _cellh))){ _local2 = true; _fieldBackMask.y = (_bounds.y + ((_ih - _level_col_height) * _cellh)); }; } else { if (_fieldBackMask.y > ((_bounds.y + (_cellh * _ih)) + 16)){ _local2 = true; _fieldBackMask.y = ((_bounds.y + (_cellh * _ih)) + 16); }; }; if (_local2){ removeEventListener(Event.ENTER_FRAME, moveMask); }; } function addScore(_arg1:int){ _score = (_score + _arg1); _level_stats._score = (_level_stats._score + _arg1); _tb_Score.text = _score.toString(); } function remove(){ free(); parent.removeChild(this); } function clearBoard(){ var row:Array; var ix:int; for each (row in _board) { ix = 0; while (ix < row.length) { if (row[ix]){ var _local4 = Sprite(row[ix]); with (_local4) { removeEventListener(MouseEvent.MOUSE_DOWN, onMousedn); if (parent){ parent.removeChild(row[ix]); }; }; row[ix] = null; }; ix = (ix + 1); }; }; } function animateRemoveAll(_arg1:Event){ var _local2:DisplayObject; _animationDelayCnt--; if (_animationDelayCnt <= 0){ _animationDelayCnt = _animationDelay; _animatePt.x = 0; while (_animatePt.x < _iw) { _local2 = DisplayObject(_board[_animatePt.y][_animatePt.x]); if (_local2){ _board[_animatePt.y][_animatePt.x] = null; _local2.removeEventListener(MouseEvent.MOUSE_DOWN, onMousedn); if (_local2.parent){ _local2.parent.removeChild(_local2); }; }; _animatePt.x++; }; _animatePt.y++; if (_animatePt.y >= _ih){ _animatePt.y = 0; addEventListener(Event.ENTER_FRAME, animateRemove); removeEventListener(Event.ENTER_FRAME, animateRemoveAll); showLevelCompleteDialog(); }; }; } function checkMegaBonus(){ var _local1:Number; var _local2:FlayoutText; var _local3:DisplayObject; _local1 = 0; _local1 = (_local1 + Sprite(this["ind_FullLineCombo"]).alpha); _local1 = (_local1 + Sprite(this["ind_HalfLineCombo"]).alpha); _local1 = (_local1 + Sprite(this["ind_cc1"]).alpha); _local1 = (_local1 + Sprite(this["ind_cc2"]).alpha); _local1 = (_local1 + Sprite(this["ind_cc3"]).alpha); _local1 = (_local1 + Sprite(this["ind_cc4"]).alpha); _local1 = (_local1 + Sprite(this["ind_cc5"]).alpha); _local1 = (_local1 + Sprite(this["ind_cc6"]).alpha); _local1 = (_local1 + Sprite(this["ind_cc7"]).alpha); _local1 = (_local1 + Sprite(this["ind_cc8"]).alpha); _local1 = (_local1 + Sprite(this["ind_cc9"]).alpha); if (_local1 >= 11){ Sprite(this["ind_FullLineCombo"]).alpha = 0.25; Sprite(this["ind_HalfLineCombo"]).alpha = 0.25; Sprite(this["ind_cc1"]).alpha = 0.25; Sprite(this["ind_cc2"]).alpha = 0.25; Sprite(this["ind_cc3"]).alpha = 0.25; Sprite(this["ind_cc4"]).alpha = 0.25; Sprite(this["ind_cc5"]).alpha = 0.25; Sprite(this["ind_cc6"]).alpha = 0.25; Sprite(this["ind_cc7"]).alpha = 0.25; Sprite(this["ind_cc8"]).alpha = 0.25; Sprite(this["ind_cc9"]).alpha = 0.25; Sfx.play(SfxMegaBonus); _local2 = new FlayoutText(_lastClickPt.x, (_lastClickPt.y + 40), ("Excelent! " + _megaComboScore), 8978431, "Valken", 16, false); addChild(_local2); addScore(_megaComboScore); enabled = false; _drop_list.splice(0, _drop_list.length); removeEventListener(Event.ENTER_FRAME, animateDrop); while (_fadeoff_list.length) { _local3 = DisplayObject(_fadeoff_list.pop()); if (_local3.parent){ _local3.parent.removeChild(_local3); }; }; removeEventListener(Event.ENTER_FRAME, animateRemove); _animatePt.x = 0; _animatePt.y = 0; _animationDelayCnt = _animationDelay; addEventListener(Event.ENTER_FRAME, animateRemoveAll); }; } function animateRemove(_arg1:Event){ var _local2:int; var _local3:MovieClip; _local2 = 0; while (_local2 < _fadeoff_list.length) { _local3 = MovieClip(_fadeoff_list[_local2]); _local3.alpha = (_local3.alpha - 0.05); _local3.scaleX = (_local3.scaleX - 0.05); _local3.scaleY = (_local3.scaleY - 0.05); //unresolved if if (_local3.parent){ _local3.parent.removeChild(_local3); continue; }; }; } function showTooltipColorCombo(_arg1:MouseEvent){ var _local2:Sprite; var _local3:Sprite; _local2 = (_arg1.currentTarget as Sprite); _local3 = (this["tooltip_ColorCombo"] as Sprite); _local3.y = (_local2.y + Math.round((_local2.height * 0.5))); _local3.visible = true; } function addElementTo(_arg1:int, _arg2:int, _arg3:int){ var _local4:MovieClip; if (_board[_arg2][_arg1]){ _local4 = (_board[_arg2][_arg1] as MovieClip); _board[_arg2][_arg1] = null; _local4.removeEventListener(MouseEvent.MOUSE_DOWN, onMousedn); if (_local4.parent){ _local4.parent.removeChild(_local4); }; }; _local4 = new (_elements[_arg3]); _local4.cacheAsBitmap = true; _local4.x = (_bounds.x + (_arg1 * _cellw)); _local4.y = (_bounds.y + (_arg2 * _cellh)); _local4.addEventListener(MouseEvent.MOUSE_DOWN, onMousedn, false, 0, true); _local4.typeIndex = _arg3; _board[_arg2][_arg1] = _local4; _boardLayer.addChild(_local4); } function load(){ var _local1:Array; var _local2:int; var _local3:int; var _local4:int; var _local5:Array; var _local6:String; if (_soSave.data.game){ _score = _soSave.data.score; _match_min = _soSave.data.match_min; _level_col_height = _soSave.data.level_col_height; _level_types = _soSave.data.level_types; _score_pt = _soSave.data.score_pt; _level = _soSave.data.level; _level_stats._score = _soSave.data.level_score; _level_stats._color_combos = _soSave.data.level_color_combos; _level_stats._full_line_combos = _soSave.data.level_full_line_combos; _level_stats._half_line_combos = _soSave.data.level_half_line_combos; _level_stats._full_clear = _soSave.data.level_full_clear; _cColorCombo = _soSave.data.cColorCombo; clearBoard(); _local1 = _soSave.data.board; _local4 = 0; _local2 = 0; while (_local2 < _iw) { _local3 = 0; while (_local3 < _ih) { if (_local1[_local4] >= 0){ addElementTo(_local2, _local3, _local1[_local4]); }; _local4++; _local3++; }; _local2++; }; _local5 = _soSave.data.music; _level_snd.length = 0; for each (_local6 in _local5) { _level_snd.push(getDefinitionByName(_local6)); }; positionFieldMask(); fillLvlProgress(); checkLevelProgress(); }; } function onMousedn(_arg1:MouseEvent){ var _local2:Sprite; var _local3:int; var _local4:int; var _local5:Array; var _local6:Class; var _local7:Object; var _local8:String; var _local9:int; var _local10:int; var _local11:FlayoutText; var _local12:Class; if (enabled){ _local2 = Sprite(_arg1.currentTarget); _local3 = ((_local2.x - _bounds.x) * _index_mul_x); _local4 = ((_local2.y - _bounds.y) * _index_mul_y); _local5 = new Array(); _local8 = getQualifiedClassName(_local2); _local9 = int(_local8.charAt((_local8.length - 1))); _local6 = (getDefinitionByName(_local8) as Class); for each (_local7 in _board[_local4]) { if ((_local7 is _local6)){ _local5.push(_local7); }; }; _lastClickPt.x = _local2.x; _lastClickPt.y = (_local2.y - _cellh); if (_local5.length >= _match_min){ removeElements(_local5); _local10 = (_score_pt + (_score_pt * (_local5.length - _match_min))); _local11 = new FlayoutText(_lastClickPt.x, _lastClickPt.y, _local10.toString(), 0xFFEE00, "Valken", 15, false); addChild(_local11); addScore(_local10); _local12 = (getDefinitionByName(("SfxRemove" + _local9)) as Class); Sfx.play(_local12); _level_snd.push(_local12); _cColorCombo.push(_local9); } else { if (_score){ addScore(-(_score_pt)); _local11 = new FlayoutText(_lastClickPt.x, _lastClickPt.y, ("-" + _score_pt.toString()), 0xFF0000, "Valken", 15, false); addChild(_local11); }; Sfx.play(SfxWrong); }; }; } function checkLineCombos(_arg1:Array){ var _local2:FlayoutText; if (_arg1.length == _iw){ Sfx.play(SfxBonus); _local2 = new FlayoutText(_lastClickPt.x, (_lastClickPt.y + 20), ("Perfect! " + _fullLineComboScore), 0xFFFF00, "Valken", 16, false); addChild(_local2); addScore(_fullLineComboScore); Sprite(this["ind_FullLineCombo"]).alpha = 1; _level_stats._full_line_combos++; checkMegaBonus(); } else { if (_arg1.length >= (_iw / 2)){ Sfx.play(SfxBonus); _local2 = new FlayoutText(_lastClickPt.x, (_lastClickPt.y + 20), ("Nice! " + _halfLineComboScore), 0xFFFF00, "Valken", 16, false); addChild(_local2); addScore(_halfLineComboScore); Sprite(this["ind_HalfLineCombo"]).alpha = 1; _level_stats._half_line_combos++; checkMegaBonus(); }; }; } function initGame(){ stop(); this["bn_menu"].addEventListener(MouseEvent.CLICK, returnToMenu); _tb_Score = (this["txt_score"] as TextField); _tb_Score.selectable = false; _tb_Score.text = "0"; this["tooltip_ColorCombo"].visible = false; this["ind_cc1"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc1"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc2"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc2"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc3"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc3"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc4"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc4"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc5"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc5"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc6"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc6"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc7"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc7"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc8"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc8"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["ind_cc9"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipColorCombo); this["ind_cc9"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipColorCombo); this["tooltip_HalfLineCombo"].visible = false; this["ind_HalfLineCombo"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipHLineCombo); this["ind_HalfLineCombo"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipHLineCombo); this["tooltip_FullLineCombo"].visible = false; this["ind_FullLineCombo"].addEventListener(MouseEvent.MOUSE_OVER, showTooltipFLineCombo); this["ind_FullLineCombo"].addEventListener(MouseEvent.MOUSE_OUT, hideTooltipFLineCombo); if (_soSave.data.game){ var _local2 = _soSave.data; with (_local2) { Sprite(this["ind_FullLineCombo"]).alpha = bFullLineCombo; Sprite(this["ind_HalfLineCombo"]).alpha = bHalfLineCombo; Sprite(this["ind_cc1"]).alpha = bind_cc1; Sprite(this["ind_cc2"]).alpha = bind_cc2; Sprite(this["ind_cc3"]).alpha = bind_cc3; Sprite(this["ind_cc4"]).alpha = bind_cc4; Sprite(this["ind_cc5"]).alpha = bind_cc5; Sprite(this["ind_cc6"]).alpha = bind_cc6; Sprite(this["ind_cc7"]).alpha = bind_cc7; Sprite(this["ind_cc8"]).alpha = bind_cc8; Sprite(this["ind_cc9"]).alpha = bind_cc9; this["txt_score"].text = _score; if (_soSave.data.level_complete){ showLevelCompleteDialog(); }; }; }; this["logo"].addEventListener(MouseEvent.CLICK, Main.onGotoDevSite); } function fillBoard(){ var _local1:Number; var _local2:Number; var _local3:int; _local1 = 0; while (_local1 < _board.length) { _local2 = 0; while (_local2 < _board[_local1].length) { _local3 = MX.random(0, _level_types); addElementTo(_local1, _local2, _local3); _local2++; }; _local1++; }; } function fillLvlProgress(){ var _local1:MovieClip; var _local2:MovieClip; var _local3:Number; var _local4:Number; var _local5:int; for each (_local1 in _lvl_progress) { removeChild(_local1); }; _lvl_progress.length = 0; _local3 = 11; _local4 = (172 - Math.floor((((_ih - _level_col_height) * _local3) * 0.5))); _local5 = 0; while (_local5 < (_ih - _level_col_height)) { _local2 = new ProgressPt(); _local2.gotoAndStop("empty"); _local2.x = _local4; _local2.y = -130; _lvl_progress.push(_local2); addChild(_local2); _local4 = (_local4 + _local3); _local5++; }; _lvl_progress_cnt = 0; mc_complete.gotoAndPlay("begin"); } function showTooltipFLineCombo(_arg1:MouseEvent){ var _local2:Sprite; var _local3:Sprite; _local2 = (this["tooltip_FullLineCombo"] as Sprite); _local3 = Sprite(_arg1.currentTarget); _local2.visible = true; _local2.y = ((_local3.y + _local3.height) + 1); } function showGameOverDialog(){ Sfx.play(SfxGameOver); TextField(_dlgGameOver["txt_score"]).text = _score.toString(); addChild(_dlgGameOver); var _local2 = (this["bn_menu"] as SimpleButton); with (_local2) { removeEventListener(MouseEvent.CLICK, returnToMenu); enabled = false; }; enabled = false; _soSave.data.game = false; } function hideTooltipColorCombo(_arg1:MouseEvent){ this["tooltip_ColorCombo"].visible = false; } function showTooltipHLineCombo(_arg1:MouseEvent){ var _local2:Sprite; var _local3:Sprite; _local2 = (this["tooltip_HalfLineCombo"] as Sprite); _local3 = Sprite(_arg1.currentTarget); _local2.visible = true; _local2.y = ((_local3.y + _local3.height) + 1); } function animateDrop(_arg1:Event):void{ var _local2:Boolean; var _local3:DropElement; _local2 = false; for each (_local3 in _drop_list) { _local3._element.y = (_local3._element.y + _drop_speed); if (_local3._element.y >= _local3._dest_y){ _local3._element.y = _local3._dest_y; _local2 = true; }; }; if (_local2){ removeEventListener(Event.ENTER_FRAME, animateDrop); checkLevelEnd(); }; } function save():void{ var _local1:Array; var _local2:int; var _local3:int; var _local4:Array; var _local5:Class; _soSave.data.game = true; _soSave.data.bFullLineCombo = Sprite(this["ind_FullLineCombo"]).alpha; _soSave.data.bHalfLineCombo = Sprite(this["ind_HalfLineCombo"]).alpha; _soSave.data.bind_cc1 = Sprite(this["ind_cc1"]).alpha; _soSave.data.bind_cc2 = Sprite(this["ind_cc2"]).alpha; _soSave.data.bind_cc3 = Sprite(this["ind_cc3"]).alpha; _soSave.data.bind_cc4 = Sprite(this["ind_cc4"]).alpha; _soSave.data.bind_cc5 = Sprite(this["ind_cc5"]).alpha; _soSave.data.bind_cc6 = Sprite(this["ind_cc6"]).alpha; _soSave.data.bind_cc7 = Sprite(this["ind_cc7"]).alpha; _soSave.data.bind_cc8 = Sprite(this["ind_cc8"]).alpha; _soSave.data.bind_cc9 = Sprite(this["ind_cc9"]).alpha; _soSave.data.score = _score; _soSave.data.match_min = _match_min; _soSave.data.level_col_height = _level_col_height; _soSave.data.level_types = _level_types; _soSave.data.score_pt = _score_pt; _soSave.data.level = _level; _soSave.data.level_score = _level_stats._score; _soSave.data.level_color_combos = _level_stats._color_combos; _soSave.data.level_full_line_combos = _level_stats._full_line_combos; _soSave.data.level_half_line_combos = _level_stats._half_line_combos; _soSave.data.level_full_clear = _level_stats._full_clear; _soSave.data.cColorCombo = _cColorCombo; _local1 = new Array(); _local2 = 0; while (_local2 < _iw) { _local3 = 0; while (_local3 < _ih) { if (_board[_local3][_local2]){ _local1.push(_board[_local3][_local2].typeIndex); } else { _local1.push(-1); }; _local3++; }; _local2++; }; _soSave.data.board = _local1; _local4 = new Array(); for each (_local5 in _level_snd) { _local4.push(getQualifiedClassName(_local5)); }; _soSave.data.music = _local4; _soSave.data.level_complete = false; } function hideTooltipFLineCombo(_arg1:MouseEvent){ Sprite(this["tooltip_FullLineCombo"]).visible = false; } function stopLevelSound(_arg1:MouseEvent){ _play_timer.removeEventListener(TimerEvent.TIMER, animateLevelSound); _play_timer.stop(); _dlgLevelComplete["bn_play"].visible = true; _dlgLevelComplete["bn_stop"].visible = false; } function checkLevelProgress(){ var _local1:int; var _local2:int; var _local3:MovieClip; var _local4:int; _local1 = getEmptyRows(); _local2 = (_ih - _level_col_height); if (_lvl_progress_cnt < _local2){ if (_local1 >= _local2){ for each (_local3 in _lvl_progress) { _local3.gotoAndPlay("complete"); }; if (parent){ mc_complete.gotoAndPlay("complete"); } else { mc_complete.gotoAndPlay("end"); }; } else { _local4 = _lvl_progress_cnt; while (_local4 < _local1) { _lvl_progress[_local4].gotoAndPlay("fill"); _local4++; }; }; _lvl_progress_cnt = _local1; }; } function animateLevelSound(_arg1:TimerEvent){ if (_play_ind < _level_snd.length){ Sfx.play((_level_snd[_play_ind] as Class)); _play_ind++; } else { stopLevelSound(null); }; } function gotoToMenu(_arg1:MouseEvent){ Sfx.play(SfxClick); (parent as Main).game = null; remove(); } function removeElements(_arg1:Array){ var _local2:MovieClip; var _local3:int; var _local4:int; var _local5:int; _drop_list.splice(0, _drop_list.length); for each (_local2 in _arg1) { _fadeoff_list.push(_local2); _local2.removeEventListener(MouseEvent.MOUSE_DOWN, onMousedn); _local3 = ((_local2.x - _bounds.x) * _index_mul_x); _local4 = ((_local2.y - _bounds.y) * _index_mul_y); _board[_local4][_local3] = null; _local5 = (_local4 - 1); while (_local5 >= 0) { if (_board[_local5][_local3]){ _drop_list.push(new DropElement(_board[_local5][_local3], (_board[_local5][_local3].y + _cellh))); _board[(_local5 + 1)][_local3] = _board[_local5][_local3]; _board[_local5][_local3] = null; } else { break; }; _local5--; }; }; if (_drop_list.length){ addEventListener(Event.ENTER_FRAME, animateDrop); }; enabled = false; checkLineCombos(_arg1); } function returnToMenu(_arg1:MouseEvent){ if (enabled){ Sfx.play(SfxClick); parent.removeChild(this); } else { Sfx.play(SfxWrong); }; } function positionFieldMask(){ if (_level_col_height){ _fieldBackMask.y = (_bounds.y + ((_ih - _level_col_height) * _cellh)); } else { _fieldBackMask.y = ((_bounds.y + (_cellh * _ih)) + 16); }; } function checkCombos(){ var _local1:int; var _local2:int; var _local3:int; var _local4:FlayoutText; if (_cColorCombo.length >= _colorComboLen){ if (_cColorCombo.length > _colorComboLen){ _cColorCombo.splice(0, (_cColorCombo.length - _colorComboLen)); }; _local1 = 1; _local2 = (_cColorCombo.shift() as int); for each (_local3 in _cColorCombo) { if (_local3 == _local2){ _local1++; }; }; if (_local1 == _colorComboLen){ _cColorCombo.splice(0, _cColorCombo.length); Sfx.play(SfxBonus); _local4 = new FlayoutText(_lastClickPt.x, (_lastClickPt.y + 10), ("Color Combo\n" + _colorComboScore), 0xFFFF00, "Valken", 16, false); addChild(_local4); addScore(_colorComboScore); (this[("ind_cc" + _local2)] as Sprite).alpha = 1; _level_stats._color_combos++; checkMegaBonus(); }; }; } function checkLevelEnd(){ var _local1:int; var _local2:Array; var _local3:int; var _local4:Class; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:int; var _local10:int; var _local11:Object; var _local12:int; var _local13:FlayoutText; checkCombos(); checkLevelProgress(); for each (_local2 in _board) { _local3 = 0; while (_local3 < _local2.length) { if (_local2[_local3]){ _local1 = 1; _local4 = (getDefinitionByName(getQualifiedClassName(_local2[_local3])) as Class); _local5 = (_local3 + 1); while (_local5 < _local2.length) { if ((_local2[_local5] is _local4)){ _local1++; if (_local1 >= _match_min){ //unresolved jump }; }; _local5++; }; }; _local3++; }; }; if (_local1 < _match_min){ _local6 = 0; _local7 = 0; _local8 = 0; while (_local8 < _iw) { _local6 = 0; _local9 = (_ih - 1); while (_local9 >= 0) { if (_board[_local9][_local8]){ _local6++; } else { break; }; _local9--; }; if (_local7 < _local6){ _local7 = _local6; }; _local8++; }; if (_local7 > _level_col_height){ showGameOverDialog(); } else { _local2 = _board[(_ih - 1)]; _local10 = 0; for each (_local11 in _local2) { if (_local11){ _local10++; }; }; if (_local10 == 0){ _local12 = (_fullClearScoreMul * _score_pt); addScore(_local12); _local13 = new FlayoutText(0, ((_ih / 2) * _cellh), ("Full Clear " + _local12.toString()), 0xFFFF00, "Valken", 16, false); addChild(_local13); _level_stats._full_clear = 1; }; showLevelCompleteDialog(); }; } else { enabled = true; save(); }; } function onSubmitScores(){ (parent as Main).game = null; (parent as Main).submitScores(_score); remove(); } function hideTooltipHLineCombo(_arg1:MouseEvent){ Sprite(this["tooltip_HalfLineCombo"]).visible = false; } } }//package import flash.display.*; import flash.events.*; import flash.text.*; import flash.utils.*; class FlayoutText extends TextField { private var _text:String; private var _start_ms:int; private var _format:TextFormat; private var _speed:Number;// = 1 private var _delay_ms:int;// = 1500 private function FlayoutText(_arg1:Number, _arg2:Number, _arg3:String, _arg4:int, _arg5:String, _arg6:Number, _arg7:Boolean=true){ _speed = 1; _delay_ms = 1500; super(); _format = new TextFormat(); _format.color = _arg4; _format.font = _arg5; _format.bold = _arg7; _format.size = _arg6; _format.align = TextFormatAlign.CENTER; embedFonts = true; autoSize = TextFieldAutoSize.CENTER; text = _arg3; setTextFormat(_format); selectable = false; mouseEnabled = false; x = (_arg1 - (width / 2)); y = _arg2; cacheAsBitmap = true; antiAliasType = AntiAliasType.ADVANCED; _start_ms = getTimer(); addEventListener(Event.ENTER_FRAME, update); } private function remove(){ removeEventListener(Event.ENTER_FRAME, update); if (parent){ parent.removeChild(this); }; } private function update(_arg1:Event):void{ if ((getTimer() - _start_ms) >= _delay_ms){ remove(); } else { y = (y - _speed); }; } } private const newArray2D:Function = function (_arg1:int, _arg2:int):Array{ var _local3:Array; var _local4:int; _local3 = new Array(); _local4 = 0; while (_local4 < _arg2) { _local3.push(new Array(_arg1)); _local4++; }; return (_local3); }; class DropElement { private var _dest_y:Number; private var _element:MovieClip; private function DropElement(_arg1:MovieClip, _arg2:Number){ _element = _arg1; _dest_y = _arg2; } }
Section 36
//LevelStats (LevelStats) package { public class LevelStats { var _color_combos:int; var _half_line_combos:int; var _score:int; var _full_clear:int; var _full_line_combos:int; function reset(){ _score = 0; _color_combos = 0; _full_line_combos = 0; _half_line_combos = 0; _full_clear = 0; } } }//package
Section 37
//Main (Main) package { import flash.display.*; import flash.events.*; import mochi.*; import flash.text.*; import gamejacket.*; import flash.net.*; import flash.ui.*; public dynamic class Main extends MovieClip { public var bn_mute:BtnMute; public var mcADContainer:MovieClip; public var dlg_noConnect:MovieClip; public var dlg_play:MovieClip; public var dlg_help:MovieClip; var _advertise:Advertise; public var txtScores:TextField; public var GameJacketSec:GameJacketAS3; public var dlg_comment:DlgComment; public var bn_games:SimpleButton; var _isLoaded:Boolean;// = false public var bn_play:SimpleButton; var _scores:Scores; public var bn_help:SimpleButton; public var bn_getgame:SimpleButton; public var txt_cpr:MovieClip; public var bn_other:SimpleButton; public var bn_comment:SimpleButton; public var bn_scores:SimpleButton; var _isCtrlDn:Boolean;// = false var _isADpass:Boolean;// = false public var bn_logo:MovieClip; public var bn_cancel:MovieClip; public var _rate:Rating; var game:Game; public static const WIDTH:Number = 550; public static const HEIGHT:Number = 400; public static const HHEIGHT:Number = 200; public static const MOCHIBOT_ID:String = "a528741a"; public static const HWIDTH:Number = 275; static var _urlGame:String = "http://puzzlesea.com/linyca/"; static var _urlDevSite:String = "http://puzzlesea.com/"; static var _urlGamePack:String = "http://puzzlesea.com/puzzle/click/linyca/linyca.zip"; static var _urlMoreGames:String = "http://puzzlesea.com/"; public function Main(){ _isCtrlDn = false; _isADpass = false; _isLoaded = false; super(); addFrameScript(0, frame1, 2, frame3, 4, frame5); stop(); new dom(this); loaderInfo.addEventListener(Event.COMPLETE, onCompleteLoading); _scores = new Scores(this); addEventListener(KeyboardEvent.KEY_DOWN, onKeyDn); addEventListener(KeyboardEvent.KEY_UP, onKeyUp); } public function hideScores(){ bn_cancel.visible = false; gotoAndStop("menu"); } function onShowClickAwayAD(_arg1:MouseEvent){ if (mcADContainer.visible){ _advertise.hideClickAwayAD(mcADContainer); } else { _advertise.showClickAwayAD(mcADContainer); }; Sfx.play(SfxClick); } private function onAdvertiseFail():void{ onLoadingError(); } function onCloseHelp(_arg1:MouseEvent){ dlg_help.visible = false; Sfx.play(SfxClick); } function submitScores(_arg1:int){ _scores.submit(this, _arg1); Sfx.play(SfxClick); } function frame3(){ initMenu(); } function frame5(){ stop(); } function frame1(){ init(); } public function initMenu(){ var _local1:SharedObject; if (dom.isEnabledTrack()){ MochiBot.track(this, MOCHIBOT_ID); }; if (dom.isEnabledStoreProgress()){ _local1 = SharedObject.getLocal("game_progress"); if (_local1.data.game){ game = new Game(); game.load(); }; }; mcADContainer.visible = false; bn_cancel.visible = false; bn_cancel.addEventListener(MouseEvent.CLICK, onCancelScores); dlg_help.visible = false; dlg_help.bn_close_help.addEventListener(MouseEvent.CLICK, onCloseHelp); dlg_help.txt_site.addEventListener(MouseEvent.CLICK, onGotoGamePage); dlg_noConnect.visible = false; dlg_noConnect.bn_close.addEventListener(MouseEvent.CLICK, onHideDlgNotConnected); dlg_comment.bn_close.addEventListener(MouseEvent.CLICK, onHideDlgComments); dlg_play.visible = false; dlg_play.bn_continue.addEventListener(MouseEvent.CLICK, onContinueGame); dlg_play.bn_new.addEventListener(MouseEvent.CLICK, onNewGame); dlg_play.bn_cancel.addEventListener(MouseEvent.CLICK, onCancelGame); txt_cpr.buttonMode = true; txt_cpr.text.mouseEnabled = false; txt_cpr.addEventListener(MouseEvent.CLICK, onGotoDevSite); enable(); } function showPlayDialog(){ disable(); this["dlg_play"].visible = true; } function onKeyDn(_arg1:KeyboardEvent){ if (_arg1.keyCode == Keyboard.CONTROL){ _isCtrlDn = true; }; } function onCancelScores(_arg1:MouseEvent){ _scores.Cancel(this); bn_cancel.visible = false; gotoAndStop("menu"); Sfx.play(SfxWrong); } function onKeyUp(_arg1:KeyboardEvent){ if (_arg1.keyCode == Keyboard.CONTROL){ _isCtrlDn = false; }; } function onShowScores(_arg1:MouseEvent=null){ gotoAndStop("scores"); bn_cancel.visible = true; _scores.Show(this); Sfx.play(SfxClick); } function onContinueGame(_arg1:MouseEvent){ enable(); addChild(game); this["dlg_play"].visible = false; Sfx.play(SfxClick); } function onCancelGame(_arg1:MouseEvent){ enable(); dlg_play.visible = false; Sfx.play(SfxClick); } function onNewGame(_arg1:MouseEvent){ enable(); if (game){ game.free(); }; game = new Game(); game._soSave.clear(); addChild(game); this["dlg_play"].visible = false; if (_arg1){ Sfx.play(SfxClick); }; } function onShowDlgComments(_arg1:MouseEvent){ disable(); dlg_comment.show(); Sfx.play(SfxClick); } function onShowHelp(_arg1:MouseEvent){ dlg_help.visible = true; Sfx.play(SfxClick); } function disable(){ bn_play.enabled = false; bn_play.removeEventListener(MouseEvent.CLICK, onShowGame); bn_scores.enabled = false; bn_scores.removeEventListener(MouseEvent.CLICK, onShowScores); bn_help.enabled = false; bn_help.removeEventListener(MouseEvent.CLICK, onShowHelp); bn_games.enabled = false; bn_games.removeEventListener(MouseEvent.CLICK, onGotoDevSite); bn_getgame.enabled = false; bn_getgame.removeEventListener(MouseEvent.CLICK, onGetGame); bn_comment.enabled = false; bn_comment.removeEventListener(MouseEvent.CLICK, onShowDlgComments); bn_other.enabled = false; bn_other.removeEventListener(MouseEvent.CLICK, onShowClickAwayAD); _rate.disable(); } public function init(){ _advertise = new Advertise(this, onAdvertisePass, onAdvertiseFail); } public function showDlgNotConnected(){ dlg_noConnect.visible = true; Sfx.play(SfxWrong); } private function onAdvertisePass():void{ _isADpass = true; completeLoading(); } function onHideDlgComments(_arg1:MouseEvent){ enable(); dlg_comment.hide(); Sfx.play(SfxClick); } function enable(){ bn_play.enabled = true; bn_play.addEventListener(MouseEvent.CLICK, onShowGame); bn_scores.enabled = true; bn_scores.addEventListener(MouseEvent.CLICK, onShowScores); bn_help.enabled = true; bn_help.addEventListener(MouseEvent.CLICK, onShowHelp); bn_games.enabled = true; bn_games.addEventListener(MouseEvent.CLICK, onGotoDevSite); bn_getgame.enabled = true; bn_getgame.addEventListener(MouseEvent.CLICK, onGetGame); bn_comment.enabled = true; bn_comment.addEventListener(MouseEvent.CLICK, onShowDlgComments); bn_other.enabled = true; bn_other.addEventListener(MouseEvent.CLICK, onShowClickAwayAD); _rate.enable(); } function onGetGame(_arg1:MouseEvent){ var _local2:URLRequest; _local2 = new URLRequest(_urlGamePack); navigateToURL(_local2); Sfx.play(SfxClick); } function onShowGame(_arg1:MouseEvent){ if (_isCtrlDn){ onNewGame(null); game._level_col_height = 0; } else { if (game){ showPlayDialog(); } else { onNewGame(null); }; }; Sfx.play(SfxClick); } function onLoadingError(){ gotoAndStop("error"); } private function completeLoading():void{ if (((_isLoaded) && (_isADpass))){ gotoAndStop("menu"); }; } private function onCompleteLoading(_arg1:Event):void{ _isLoaded = true; completeLoading(); } function onHideDlgNotConnected(_arg1:MouseEvent){ dlg_noConnect.visible = false; gotoAndStop("menu"); Sfx.play(SfxClick); } static function onGotoMoreGames(_arg1:MouseEvent){ var _local2:URLRequest; _local2 = new URLRequest(_urlMoreGames); navigateToURL(_local2); Sfx.play(SfxClick); } static function onGotoGamePage(_arg1:MouseEvent){ var _local2:URLRequest; _local2 = new URLRequest(_urlGame); navigateToURL(_local2); Sfx.play(SfxClick); } public static function onGotoDevSite(_arg1:MouseEvent){ var _local2:URLRequest; _local2 = new URLRequest(_urlDevSite); navigateToURL(_local2); Sfx.play(SfxClick); } } }//package
Section 38
//MX (MX) package { import flash.display.*; public class MX { public static const rad2deg:Number = (180 / Math.PI); public static const deg2rad:Number = (Math.PI / 180); public static function magnitudeByDeltas(_arg1:Number, _arg2:Number):Number{ return (Math.sqrt(((_arg1 * _arg1) + (_arg2 * _arg2)))); } public static function random(_arg1:Number, _arg2:Number):Number{ return ((_arg1 + (Math.random() * (_arg2 - _arg1)))); } public static function magnitude(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ var _local5:Number; var _local6:Number; _local5 = (_arg3 - _arg1); _local6 = (_arg4 - _arg2); return (Math.sqrt(((_local5 * _local5) + (_local6 * _local6)))); } public static function angleToPos_rad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{ return (Math.atan2((_arg4 - _arg2), (_arg3 - _arg1))); } public static function magnitudeApproxByDO(_arg1:DisplayObject, _arg2:DisplayObject):Number{ var _local3:Number; var _local4:Number; _local3 = Math.abs((_arg2.x - _arg1.x)); _local4 = Math.abs((_arg2.y - _arg1.y)); if (_local3 == 0){ return (_local4); }; if (_local4 == 0){ return (_local3); }; if (_local3 > _local4){ return (((_local4 * 0.41) + (_local3 * 0.941246))); }; return (((_local3 * 0.41) + (_local4 * 0.941246))); } } }//package
Section 39
//ProgressPt (ProgressPt) package { import flash.display.*; public dynamic class ProgressPt extends MovieClip { public function ProgressPt(){ addFrameScript(0, frame1, 49, frame50, 99, frame100); } function frame1(){ stop(); } function frame100(){ stop(); } function frame50(){ stop(); } } }//package
Section 40
//Rating (Rating) package { import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; public dynamic class Rating extends MovieClip { var _isEnabled:Boolean; public var rating:MovieClip; public var bn_rate2:SimpleButton; public var bn_rate4:SimpleButton; public var bn_rate3:SimpleButton; public var bn_rate5:SimpleButton; public var bn_rate1:SimpleButton; public var txt_thanks_voting:TextField; public function Rating(){ get_rating(); _isEnabled = is_rate_enabled(); if (_isEnabled){ txt_thanks_voting.visible = false; enable(); } else { txt_thanks_voting.visible = true; bn_rate1.visible = false; bn_rate2.visible = false; bn_rate3.visible = false; bn_rate4.visible = false; bn_rate5.visible = false; }; } function onRate(_arg1:Event){ var _local2:String; set_rate_cookie(); _local2 = _arg1.target.name; submit_vote(_local2.charAt((_local2.length - 1))); bn_rate1.visible = false; bn_rate2.visible = false; bn_rate3.visible = false; bn_rate4.visible = false; bn_rate5.visible = false; txt_thanks_voting.visible = true; } function onLoadVotes(_arg1:Event){ var _local2:URLLoader; var _local3:String; var _local4:URLVariables; var _local5:Number; var _local6:Number; var _local7:Number; _local2 = URLLoader(_arg1.target); _local2.removeEventListener(Event.COMPLETE, onLoadVotes); _local3 = _local2.data; if (_local3.charAt(0) == "&"){ _local3 = _local3.slice(1, _local3.length); }; _local4 = new URLVariables(_local3); _local5 = _local4.score; _local6 = (_local5 * 11.4); _local7 = (Math.floor(_local5) * (20 - 11.4)); this["rating"]["mc_mask"].width = Math.round((_local6 + _local7)); } function set_rate_cookie(){ var _local1:SharedObject; var _local2:Date; var _local3:int; var _local4:int; var _local5:Number; var _local6:int; var _local7:int; var _local8:int; _local1 = SharedObject.getLocal("rate_me_limit"); _local2 = new Date(); _local3 = _local2.getFullYear(); _local4 = _local2.getMonth(); _local5 = _local2.getDate(); _local6 = _local2.getHours(); _local7 = _local2.getMinutes(); _local8 = _local2.getSeconds(); _local1.data.year = _local3; _local1.data.month = _local4; _local1.data.date = _local5; _local1.data.hour = _local6; _local1.data.min = _local7; _local1.data.sec = _local8; _local1.flush(); } function enable(){ if (_isEnabled){ bn_rate1.addEventListener(MouseEvent.CLICK, onRate); bn_rate1.enabled = true; bn_rate2.addEventListener(MouseEvent.CLICK, onRate); bn_rate2.enabled = true; bn_rate3.addEventListener(MouseEvent.CLICK, onRate); bn_rate3.enabled = true; bn_rate4.addEventListener(MouseEvent.CLICK, onRate); bn_rate4.enabled = true; bn_rate5.addEventListener(MouseEvent.CLICK, onRate); bn_rate5.enabled = true; }; } function get_rating(){ var _local1:URLRequest; var _local2:URLLoader; _local1 = new URLRequest("http://www.mochibot.com/api/api-feedback.html"); _local1.data = ("mochibot_id=" + Main.MOCHIBOT_ID); _local1.method = URLRequestMethod.GET; _local2 = new URLLoader(); _local2.addEventListener(Event.COMPLETE, onLoadVotes); _local2.load(_local1); } function submit_vote(_arg1:String){ var _local2:URLRequest; var _local3:URLLoader; _local2 = new URLRequest("http://www.mochibot.com/api/api-feedback.html"); _local2.data = ("mochibot_id=" + Main.MOCHIBOT_ID); _local2.data = (_local2.data + ("&vote=" + _arg1)); _local2.method = URLRequestMethod.POST; _local3 = new URLLoader(); _local3.addEventListener(Event.COMPLETE, onLoadVotes); _local3.load(_local2); } function is_rate_enabled():Boolean{ var _local1:SharedObject; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Date; var _local9:Date; var _local10:Number; var _local11:Number; _local1 = SharedObject.getLocal("rate_me_limit"); if (_local1.data.year){ _local2 = _local1.data.year; _local3 = _local1.data.month; _local4 = _local1.data.date; _local5 = _local1.data.hour; _local6 = _local1.data.min; _local7 = _local1.data.sec; _local8 = new Date(_local2, _local3, _local4, _local5, _local6, _local7); _local9 = new Date(); _local10 = (_local9.getTime() - _local8.getTime()); _local11 = Math.floor((_local10 / 1000)); return ((_local11 >= 43200)); }; return (true); } function disable(){ if (_isEnabled){ bn_rate1.removeEventListener(MouseEvent.CLICK, onRate); bn_rate1.enabled = false; bn_rate2.removeEventListener(MouseEvent.CLICK, onRate); bn_rate2.enabled = false; bn_rate3.removeEventListener(MouseEvent.CLICK, onRate); bn_rate3.enabled = false; bn_rate4.removeEventListener(MouseEvent.CLICK, onRate); bn_rate4.enabled = false; bn_rate5.removeEventListener(MouseEvent.CLICK, onRate); bn_rate5.enabled = false; }; } } }//package
Section 41
//Scores (Scores) package { import mochi.*; public class Scores { public function Scores(_arg1:Main){ MochiServices.connect("48b35d024989aa9b", _arg1.root); } function submit(_arg1:Main, _arg2:int){ if (MochiServices.connected){ _arg1.gotoAndStop("scores"); MochiScores.showLeaderboard({score:_arg2, boardID:"7af89f35e3d3517f", onClose:_arg1.hideScores, onError:_arg1.hideScores}); } else { _arg1.showDlgNotConnected(); }; } public function Cancel(_arg1:Main){ MochiScores.closeLeaderboard(); } public function Show(_arg1:Main){ if (MochiServices.connected){ MochiScores.showLeaderboard({boardID:"7af89f35e3d3517f", onClose:_arg1.hideScores, onError:_arg1.hideScores}); } else { _arg1.showDlgNotConnected(); }; } } }//package
Section 42
//Sfx (Sfx) package { import flash.media.*; public class Sfx { public static function play(_arg1:Class){ var _local2:Sound; if (BtnMute._isEnable){ _local2 = new (_arg1); _local2.play(); }; } } }//package
Section 43
//SfxBonus (SfxBonus) package { import flash.media.*; public dynamic class SfxBonus extends Sound { } }//package
Section 44
//SfxClick (SfxClick) package { import flash.media.*; public dynamic class SfxClick extends Sound { } }//package
Section 45
//SfxComplete (SfxComplete) package { import flash.media.*; public dynamic class SfxComplete extends Sound { } }//package
Section 46
//SfxGameOver (SfxGameOver) package { import flash.media.*; public dynamic class SfxGameOver extends Sound { } }//package
Section 47
//SfxMegaBonus (SfxMegaBonus) package { import flash.media.*; public dynamic class SfxMegaBonus extends Sound { } }//package
Section 48
//SfxRemove1 (SfxRemove1) package { import flash.media.*; public dynamic class SfxRemove1 extends Sound { } }//package
Section 49
//SfxRemove2 (SfxRemove2) package { import flash.media.*; public dynamic class SfxRemove2 extends Sound { } }//package
Section 50
//SfxRemove3 (SfxRemove3) package { import flash.media.*; public dynamic class SfxRemove3 extends Sound { } }//package
Section 51
//SfxRemove4 (SfxRemove4) package { import flash.media.*; public dynamic class SfxRemove4 extends Sound { } }//package
Section 52
//SfxRemove5 (SfxRemove5) package { import flash.media.*; public dynamic class SfxRemove5 extends Sound { } }//package
Section 53
//SfxRemove6 (SfxRemove6) package { import flash.media.*; public dynamic class SfxRemove6 extends Sound { } }//package
Section 54
//SfxRemove7 (SfxRemove7) package { import flash.media.*; public dynamic class SfxRemove7 extends Sound { } }//package
Section 55
//SfxRemove8 (SfxRemove8) package { import flash.media.*; public dynamic class SfxRemove8 extends Sound { } }//package
Section 56
//SfxRemove9 (SfxRemove9) package { import flash.media.*; public dynamic class SfxRemove9 extends Sound { } }//package
Section 57
//SfxWrong (SfxWrong) package { import flash.media.*; public dynamic class SfxWrong extends Sound { } }//package

Library Items

Symbol 1 Font {Fnt1}Used by:40 44 50 51 52 53 54 55 56 57 58 59 60 61 62 71 72 73 74 75 76 79 90 136 140 159 162 163 164 165 166 167 168 169 179 181 182 185 188 189 190 197 198 201 219 220 221 222
Symbol 2 Sound {SfxClick}Used by:37
Symbol 3 GraphicUsed by:Timeline
Symbol 4 FontUsed by:5
Symbol 5 TextUses:4Used by:11
Symbol 6 ShapeTweeningUsed by:10
Symbol 7 ShapeTweeningUsed by:10
Symbol 8 ShapeTweeningUsed by:10
Symbol 9 GraphicUsed by:10
Symbol 10 MovieClipUses:6 7 8 9Used by:11
Symbol 11 MovieClipUses:5 10Used by:178  Timeline
Symbol 12 GraphicUsed by:22
Symbol 13 FontUsed by:14
Symbol 14 TextUses:13Used by:15
Symbol 15 MovieClipUses:14Used by:18
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:18
Symbol 18 MovieClipUses:15 17Used by:22
Symbol 19 FontUsed by:20
Symbol 20 TextUses:19Used by:22
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClip {linyca_fla.logo_3}Uses:12 18 20 21Used by:Timeline
Symbol 23 Sound {SfxRemove1}Used by:37
Symbol 24 Sound {SfxRemove2}Used by:37
Symbol 25 Sound {SfxRemove3}Used by:37
Symbol 26 Sound {SfxRemove4}Used by:37
Symbol 27 Sound {SfxRemove5}Used by:37
Symbol 28 Sound {SfxRemove6}Used by:37
Symbol 29 Sound {SfxRemove7}Used by:37
Symbol 30 Sound {SfxRemove8}Used by:37
Symbol 31 Sound {SfxRemove9}Used by:37
Symbol 32 Sound {SfxWrong}Used by:37
Symbol 33 Sound {SfxBonus}Used by:37
Symbol 34 Sound {SfxComplete}Used by:37
Symbol 35 Sound {SfxMegaBonus}Used by:37
Symbol 36 Sound {SfxGameOver}Used by:37
Symbol 37 MovieClip {linyca_fla.sounds_7}Uses:2 23 24 25 26 27 28 29 30 31 32 33 34 35 36Used by:Timeline
Symbol 38 GraphicUsed by:65
Symbol 39 GraphicUsed by:43 45 161
Symbol 40 TextUses:1Used by:43
Symbol 41 GraphicUsed by:43 45 161
Symbol 42 GraphicUsed by:43 45 161
Symbol 43 ButtonUses:39 40 41 42Used by:65
Symbol 44 TextUses:1Used by:45
Symbol 45 ButtonUses:39 44 41 42Used by:65
Symbol 46 GraphicUsed by:49
Symbol 47 GraphicUsed by:49
Symbol 48 GraphicUsed by:49
Symbol 49 ButtonUses:46 47 48Used by:65 126 160 183 195 199 218
Symbol 50 TextUses:1Used by:65 183
Symbol 51 TextUses:1Used by:65
Symbol 52 TextUses:1Used by:65
Symbol 53 TextUses:1Used by:65
Symbol 54 EditableTextUses:1Used by:65
Symbol 55 TextUses:1Used by:65
Symbol 56 EditableTextUses:1Used by:65
Symbol 57 TextUses:1Used by:65
Symbol 58 EditableTextUses:1Used by:65
Symbol 59 TextUses:1Used by:65
Symbol 60 EditableTextUses:1Used by:65
Symbol 61 TextUses:1Used by:65
Symbol 62 EditableTextUses:1Used by:65
Symbol 63 FontUsed by:64 202 203 204 205 206 209
Symbol 64 EditableTextUses:63Used by:65
Symbol 65 MovieClip {DlgLevelComplete}Uses:38 43 45 49 50 51 52 53 54 55 56 57 58 59 60 61 62 64Used by:131
Symbol 66 GraphicUsed by:77
Symbol 67 GraphicUsed by:70
Symbol 68 GraphicUsed by:70
Symbol 69 GraphicUsed by:70
Symbol 70 ButtonUses:67 68 69Used by:77
Symbol 71 TextUses:1Used by:77 195 199 218
Symbol 72 TextUses:1Used by:77
Symbol 73 TextUses:1Used by:77
Symbol 74 TextUses:1Used by:77
Symbol 75 EditableTextUses:1Used by:77
Symbol 76 TextUses:1Used by:77
Symbol 77 MovieClip {DlgGameOver}Uses:66 70 71 72 73 74 75 76Used by:131
Symbol 78 GraphicUsed by:126
Symbol 79 TextUses:1Used by:126
Symbol 80 FontUsed by:81
Symbol 81 EditableTextUses:80 146Used by:82
Symbol 82 ButtonUses:81Used by:126
Symbol 83 FontUsed by:84 86
Symbol 84 EditableTextUses:83Used by:85
Symbol 85 MovieClipUses:84Used by:88
Symbol 86 EditableTextUses:83Used by:87
Symbol 87 MovieClipUses:86Used by:88
Symbol 88 MovieClip {linyca_fla.InfoLevelComplete_17}Uses:85 87Used by:126
Symbol 89 GraphicUsed by:126
Symbol 90 EditableTextUses:1Used by:126
Symbol 91 GraphicUsed by:95
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClipUses:92Used by:95 97 99 101 103 105 107 109 111
Symbol 94 GraphicUsed by:95 97 99 101 103 105 107 109 111
Symbol 95 MovieClip {Element1}Uses:91 93 94Used by:126 130 170 175 176 218
Symbol 96 GraphicUsed by:97
Symbol 97 MovieClip {Element2}Uses:96 93 94Used by:126 170 175 176 218
Symbol 98 GraphicUsed by:99
Symbol 99 MovieClip {Element3}Uses:98 93 94Used by:126 170 175 176 218
Symbol 100 GraphicUsed by:101
Symbol 101 MovieClip {Element4}Uses:100 93 94Used by:126 170 175 176 218
Symbol 102 GraphicUsed by:103
Symbol 103 MovieClip {Element5}Uses:102 93 94Used by:126 170 175 176 218
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClip {Element6}Uses:104 93 94Used by:126 170 175 176 218
Symbol 106 GraphicUsed by:107
Symbol 107 MovieClip {Element7}Uses:106 93 94Used by:126 170 175 176 218
Symbol 108 GraphicUsed by:109
Symbol 109 MovieClip {Element8}Uses:108 93 94Used by:126 218
Symbol 110 GraphicUsed by:111
Symbol 111 MovieClip {Element9}Uses:110 93 94Used by:126 218
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClipUses:112Used by:126
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:114Used by:126
Symbol 116 GraphicUsed by:119 121 123
Symbol 117 FontUsed by:118 120 122
Symbol 118 EditableTextUses:117Used by:119
Symbol 119 MovieClipUses:116 118Used by:126
Symbol 120 EditableTextUses:117Used by:121
Symbol 121 MovieClipUses:116 120Used by:126
Symbol 122 EditableTextUses:117Used by:123
Symbol 123 MovieClip {ColorComboInfo}Uses:116 122Used by:126
Symbol 124 GraphicUsed by:126
Symbol 125 GraphicUsed by:126
Symbol 126 MovieClip {Game}Uses:78 49 79 82 88 89 90 95 97 99 101 103 105 107 109 111 113 115 119 121 123 124 125Used by:131
Symbol 127 BitmapUsed by:128
Symbol 128 GraphicUses:127Used by:129
Symbol 129 MovieClipUses:128Used by:130
Symbol 130 MovieClip {ProgressPt}Uses:95 129Used by:131
Symbol 131 MovieClip {linyca_fla.resources_8}Uses:65 77 126 130Used by:Timeline
Symbol 132 GraphicUsed by:Timeline
Symbol 133 FontUsed by:134
Symbol 134 EditableTextUses:133Used by:135
Symbol 135 MovieClip {linyca_fla.TxtCopyright_37}Uses:134Used by:Timeline
Symbol 136 EditableTextUses:1Used by:144
Symbol 137 GraphicUsed by:139 143
Symbol 138 GraphicUsed by:139 143
Symbol 139 ButtonUses:137 138Used by:144
Symbol 140 TextUses:1Used by:144
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:141Used by:143
Symbol 143 MovieClip {linyca_fla.mcRating_40}Uses:137 142 138Used by:144
Symbol 144 MovieClip {Rating}Uses:136 139 140 143Used by:Timeline
Symbol 145 GraphicUsed by:151 158
Symbol 146 FontUsed by:81 147 148 149 150
Symbol 147 TextUses:146Used by:151
Symbol 148 TextUses:146Used by:151
Symbol 149 TextUses:146Used by:151
Symbol 150 TextUses:146Used by:151
Symbol 151 MovieClip {BtnQuality}Uses:145 147 148 149 150Used by:Timeline
Symbol 152 GraphicUsed by:155
Symbol 153 ShapeTweeningUsed by:155
Symbol 154 GraphicUsed by:155
Symbol 155 MovieClip {BtnVolume}Uses:152 153 154Used by:Timeline
Symbol 156 GraphicUsed by:158
Symbol 157 GraphicUsed by:158
Symbol 158 MovieClip {BtnMute}Uses:145 156 157Used by:Timeline
Symbol 159 TextUses:1Used by:160
Symbol 160 MovieClip {linyca_fla.bnCansel_45}Uses:49 159Used by:183  Timeline
Symbol 161 ButtonUses:39 41 42Used by:Timeline
Symbol 162 TextUses:1Used by:Timeline
Symbol 163 TextUses:1Used by:Timeline
Symbol 164 TextUses:1Used by:Timeline
Symbol 165 TextUses:1Used by:Timeline
Symbol 166 TextUses:1Used by:Timeline
Symbol 167 EditableTextUses:1Used by:Timeline
Symbol 168 TextUses:1Used by:Timeline
Symbol 169 TextUses:1Used by:Timeline
Symbol 170 MovieClipUses:95 97 99 103 105 101 107Used by:176
Symbol 171 GraphicUsed by:172
Symbol 172 MovieClipUses:171Used by:176
Symbol 173 GraphicUsed by:174
Symbol 174 MovieClipUses:173Used by:176
Symbol 175 MovieClipUses:99 101 107 103 105 95 97Used by:176
Symbol 176 MovieClipUses:170 172 95 97 99 103 105 101 107 174 175Used by:Timeline
Symbol 177 GraphicUsed by:178
Symbol 178 MovieClipUses:177 11Used by:Timeline
Symbol 179 EditableTextUses:1Used by:Timeline
Symbol 180 GraphicUsed by:183
Symbol 181 TextUses:1Used by:183
Symbol 182 TextUses:1Used by:183
Symbol 183 MovieClip {linyca_fla.DlgPlay_53}Uses:180 181 49 50 182 160Used by:Timeline
Symbol 184 GraphicUsed by:195
Symbol 185 TextUses:1Used by:195
Symbol 186 FontUsed by:187
Symbol 187 EditableTextUses:186Used by:195
Symbol 188 TextUses:1Used by:195
Symbol 189 TextUses:1Used by:195
Symbol 190 TextUses:1Used by:195
Symbol 191 GraphicUsed by:195
Symbol 192 FontUsed by:193 194
Symbol 193 EditableTextUses:192Used by:195
Symbol 194 EditableTextUses:192Used by:195
Symbol 195 MovieClip {DlgComment}Uses:184 185 187 49 71 188 189 190 191 193 194Used by:Timeline
Symbol 196 GraphicUsed by:199
Symbol 197 TextUses:1Used by:199
Symbol 198 TextUses:1Used by:199
Symbol 199 MovieClip {linyca_fla.DlgNotConnectScores_55}Uses:196 197 49 71 198Used by:Timeline
Symbol 200 GraphicUsed by:218
Symbol 201 TextUses:1Used by:218
Symbol 202 TextUses:63Used by:218
Symbol 203 TextUses:63Used by:218
Symbol 204 TextUses:63Used by:218
Symbol 205 TextUses:63Used by:218
Symbol 206 TextUses:63Used by:218
Symbol 207 FontUsed by:208
Symbol 208 EditableTextUses:207Used by:218
Symbol 209 EditableTextUses:63Used by:218
Symbol 210 GraphicUsed by:218
Symbol 211 GraphicUsed by:218
Symbol 212 ShapeTweeningUsed by:215
Symbol 213 ShapeTweeningUsed by:215
Symbol 214 GraphicUsed by:215
Symbol 215 MovieClipUses:212 213 214Used by:218
Symbol 216 GraphicUsed by:217
Symbol 217 MovieClipUses:216Used by:218
Symbol 218 MovieClip {linyca_fla.DlgHelp_56}Uses:200 201 49 71 202 203 204 205 206 208 209 210 101 105 109 97 95 99 103 107 111 211 215 217Used by:Timeline
Symbol 219 TextUses:1Used by:Timeline
Symbol 220 EditableTextUses:1Used by:Timeline
Symbol 221 TextUses:1Used by:Timeline
Symbol 222 TextUses:1Used by:Timeline

Instance Names

"bn_logo"Frame 1Symbol 22 MovieClip {linyca_fla.logo_3}
"txt_cpr"Frame 3Symbol 135 MovieClip {linyca_fla.TxtCopyright_37}
"_rate"Frame 3Symbol 144 MovieClip {Rating}
"bn_mute"Frame 3Symbol 158 MovieClip {BtnMute}
"bn_cancel"Frame 3Symbol 160 MovieClip {linyca_fla.bnCansel_45}
"bn_other"Frame 3Symbol 161 Button
"bn_comment"Frame 3Symbol 161 Button
"bn_getgame"Frame 3Symbol 161 Button
"bn_games"Frame 3Symbol 161 Button
"bn_help"Frame 3Symbol 161 Button
"bn_scores"Frame 3Symbol 161 Button
"txtScores"Frame 3Symbol 167 EditableText
"bn_scores"Frame 3Symbol 161 Button
"bn_play"Frame 3Symbol 161 Button
"mcADContainer"Frame 3Symbol 178 MovieClip
"dlg_play"Frame 3Symbol 183 MovieClip {linyca_fla.DlgPlay_53}
"dlg_comment"Frame 3Symbol 195 MovieClip {DlgComment}
"dlg_noConnect"Frame 3Symbol 199 MovieClip {linyca_fla.DlgNotConnectScores_55}
"dlg_help"Frame 3Symbol 218 MovieClip {linyca_fla.DlgHelp_56}
"bn_play"Symbol 65 MovieClip {DlgLevelComplete} Frame 1Symbol 43 Button
"bn_stop"Symbol 65 MovieClip {DlgLevelComplete} Frame 1Symbol 45 Button
"bn_continue"Symbol 65 MovieClip {DlgLevelComplete} Frame 1Symbol 49 Button
"txt_score"Symbol 65 MovieClip {DlgLevelComplete} Frame 1Symbol 54 EditableText
"txt_fullclear"Symbol 65 MovieClip {DlgLevelComplete} Frame 1Symbol 56 EditableText
"txt_flinecombos"Symbol 65 MovieClip {DlgLevelComplete} Frame 1Symbol 58 EditableText
"txt_hlinecombos"Symbol 65 MovieClip {DlgLevelComplete} Frame 1Symbol 60 EditableText
"txt_colorcombos"Symbol 65 MovieClip {DlgLevelComplete} Frame 1Symbol 62 EditableText
"txt_site"Symbol 65 MovieClip {DlgLevelComplete} Frame 1Symbol 64 EditableText
"bn_menu"Symbol 77 MovieClip {DlgGameOver} Frame 1Symbol 70 Button
"bn_scores"Symbol 77 MovieClip {DlgGameOver} Frame 1Symbol 70 Button
"bn_more_games"Symbol 77 MovieClip {DlgGameOver} Frame 1Symbol 70 Button
"txt_score"Symbol 77 MovieClip {DlgGameOver} Frame 1Symbol 75 EditableText
"bn_menu"Symbol 126 MovieClip {Game} Frame 1Symbol 49 Button
"logo"Symbol 126 MovieClip {Game} Frame 1Symbol 82 Button
"mc_complete"Symbol 126 MovieClip {Game} Frame 1Symbol 88 MovieClip {linyca_fla.InfoLevelComplete_17}
"txt_score"Symbol 126 MovieClip {Game} Frame 1Symbol 90 EditableText
"ind_cc1"Symbol 126 MovieClip {Game} Frame 1Symbol 95 MovieClip {Element1}
"ind_cc2"Symbol 126 MovieClip {Game} Frame 1Symbol 97 MovieClip {Element2}
"ind_cc3"Symbol 126 MovieClip {Game} Frame 1Symbol 99 MovieClip {Element3}
"ind_cc4"Symbol 126 MovieClip {Game} Frame 1Symbol 101 MovieClip {Element4}
"ind_cc5"Symbol 126 MovieClip {Game} Frame 1Symbol 103 MovieClip {Element5}
"ind_cc6"Symbol 126 MovieClip {Game} Frame 1Symbol 105 MovieClip {Element6}
"ind_cc7"Symbol 126 MovieClip {Game} Frame 1Symbol 107 MovieClip {Element7}
"ind_cc8"Symbol 126 MovieClip {Game} Frame 1Symbol 109 MovieClip {Element8}
"ind_cc9"Symbol 126 MovieClip {Game} Frame 1Symbol 111 MovieClip {Element9}
"ind_HalfLineCombo"Symbol 126 MovieClip {Game} Frame 1Symbol 113 MovieClip
"ind_FullLineCombo"Symbol 126 MovieClip {Game} Frame 1Symbol 115 MovieClip
"tooltip_HalfLineCombo"Symbol 126 MovieClip {Game} Frame 1Symbol 119 MovieClip
"tooltip_FullLineCombo"Symbol 126 MovieClip {Game} Frame 1Symbol 121 MovieClip
"tooltip_ColorCombo"Symbol 126 MovieClip {Game} Frame 1Symbol 123 MovieClip {ColorComboInfo}
"text"Symbol 135 MovieClip {linyca_fla.TxtCopyright_37} Frame 1Symbol 134 EditableText
"mc_mask"Symbol 143 MovieClip {linyca_fla.mcRating_40} Frame 1Symbol 142 MovieClip
"txt_thanks_voting"Symbol 144 MovieClip {Rating} Frame 1Symbol 136 EditableText
"bn_rate1"Symbol 144 MovieClip {Rating} Frame 1Symbol 139 Button
"bn_rate2"Symbol 144 MovieClip {Rating} Frame 1Symbol 139 Button
"bn_rate3"Symbol 144 MovieClip {Rating} Frame 1Symbol 139 Button
"bn_rate4"Symbol 144 MovieClip {Rating} Frame 1Symbol 139 Button
"bn_rate5"Symbol 144 MovieClip {Rating} Frame 1Symbol 139 Button
"rating"Symbol 144 MovieClip {Rating} Frame 1Symbol 143 MovieClip {linyca_fla.mcRating_40}
"bn_cancel"Symbol 160 MovieClip {linyca_fla.bnCansel_45} Frame 1Symbol 49 Button
"bn_continue"Symbol 183 MovieClip {linyca_fla.DlgPlay_53} Frame 1Symbol 49 Button
"bn_new"Symbol 183 MovieClip {linyca_fla.DlgPlay_53} Frame 1Symbol 49 Button
"bn_cancel"Symbol 183 MovieClip {linyca_fla.DlgPlay_53} Frame 1Symbol 160 MovieClip {linyca_fla.bnCansel_45}
"bn_close"Symbol 195 MovieClip {DlgComment} Frame 1Symbol 49 Button
"bn_view"Symbol 195 MovieClip {DlgComment} Frame 1Symbol 49 Button
"bn_submit"Symbol 195 MovieClip {DlgComment} Frame 1Symbol 49 Button
"fld_comment"Symbol 195 MovieClip {DlgComment} Frame 1Symbol 193 EditableText
"fld_name"Symbol 195 MovieClip {DlgComment} Frame 1Symbol 194 EditableText
"bn_close"Symbol 199 MovieClip {linyca_fla.DlgNotConnectScores_55} Frame 1Symbol 49 Button
"bn_close_help"Symbol 218 MovieClip {linyca_fla.DlgHelp_56} Frame 1Symbol 49 Button
"txt_site"Symbol 218 MovieClip {linyca_fla.DlgHelp_56} Frame 1Symbol 209 EditableText

Special Tags

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

Labels

"load"Frame 1
"resourses"Frame 2
"menu"Frame 3
"scores"Frame 4
"error"Frame 5
"begin"Symbol 88 MovieClip {linyca_fla.InfoLevelComplete_17} Frame 1
"complete"Symbol 88 MovieClip {linyca_fla.InfoLevelComplete_17} Frame 2
"end"Symbol 88 MovieClip {linyca_fla.InfoLevelComplete_17} Frame 150
"empty"Symbol 130 MovieClip {ProgressPt} Frame 1
"fill"Symbol 130 MovieClip {ProgressPt} Frame 2
"complete"Symbol 130 MovieClip {ProgressPt} Frame 51




http://swfchan.com/15/71918/info.shtml
Created: 9/4 -2019 00:48:15 Last modified: 9/4 -2019 00:48:15 Server time: 26/06 -2024 02:34:27