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

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

clickfast.swf

This is the info page for
Flash #846

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


ActionScript [AS3]
Section 1
//ESprite (display.ESprite) package display { import flash.display.*; import flash.geom.*; public class ESprite extends Sprite { public var basket:Object; public function ESprite(){ basket = new Object(); super(); } public function set location(_arg1:Point):void{ this.x = _arg1.x; this.y = _arg1.y; } } }//package display
Section 2
//FXFade (display.FXFade) package display { import flash.events.*; import flash.utils.*; public class FXFade extends EventDispatcher { private var _target:ESprite; public function FXFade(_arg1:ESprite){ _target = _arg1; } public function start(_arg1:int):void{ var timer:Timer; var delta:Number; var tick:Function; var complete:Function; var duration = _arg1; tick = function (_arg1:TimerEvent):void{ _target.alpha = (_target.alpha - delta); }; complete = function (_arg1:TimerEvent):void{ dispatchEvent(new Event(Event.COMPLETE)); _target.alpha = 0; }; timer = new Timer(10, duration); timer.addEventListener(TimerEvent.TIMER, tick); timer.addEventListener(TimerEvent.TIMER_COMPLETE, complete); delta = (duration / 10000); timer.start(); } } }//package display
Section 3
//MochiAd (display.MochiAd) package display { import flash.events.*; import flash.display.*; import flash.utils.*; import flash.net.*; import flash.system.*; public class MochiAd { public static function getVersion():String{ return ("2.1"); } public static function showTimedAd(_arg1:Object):void{ _slot1.showInterLevelAd(_arg1); } 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 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 f:Function; 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 = _slot1._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = _slot1.getVersion(); clip = options.clip; if (!_slot1._isNetworkAvailable()){ return (null); }; if (clip._mochiad_loaded){ return (null); }; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, "_mochiad", depth); wh = _slot1._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; lv.lc = name; lv.st = getTimer(); loader = new Loader(); f = function (_arg1:Object):void{ mc._mochiad_ctr_failed = true; }; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f); g = function (_arg1:Object):void{ _slot1.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 sendHighScore(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{ var _local4:MovieClip; _local4 = _slot1._loadCommunicator({clip:_arg1.clip, id:_arg1.id}); if (!_local4){ return (false); }; _local4.doSend(["sendHighScore", _arg1], _arg2, _arg3); return (true); } 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]; }; }; _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++; }; }; return (_local3); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; _arg1.removeChild(_arg1._mochiad); 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{ this.clip.stop(); }, ad_finished:function ():void{ this.clip.play(); }}; options = _slot1._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 (!_slot1.load(options)){ options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ options.ad_finished(); }; wh = _slot1._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; _local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { _slot1.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ _slot1.unload(clip); }; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; chk["onEnterFrame"] = function ():void{ var _local1:Object; var _local2:Number; var _local3:Boolean; var _local4:Number; _local1 = this.parent._mochiad_ctr; _local2 = (getTimer() - this.started); _local3 = false; if (!chk.showing){ _local4 = _local1.loaderInfo.bytesTotal; if ((((_local4 > 0)) || (("number" == "undefined")))){ chk.showing = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ _local3 = true; }; }; }; if ((((_local2 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){ _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 _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 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 _loadCommunicator(_arg1:Object):MovieClip{ var DEFAULTS:Object; var clip:Object; var clipname:String; var server:String; var depth:Number; var mc:MovieClip; var lv:URLVariables; var k:String; var lc:LocalConnection; var name:String; var req:URLRequest; var loader:Loader; var options = _arg1; DEFAULTS = {com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; options = _slot1._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = _slot1.getVersion(); clip = options.clip; clipname = ("_mochiad_com_" + options.id); if (!_slot1._isNetworkAvailable()){ return (null); }; if (clip[clipname]){ return (clip[clipname]); }; server = (options.com_server + options.id); _slot1._allowDomains(server); delete options.id; delete options.com_server; depth = options.depth; delete options.depth; mc = createEmptyMovieClip(clip, clipname, depth); lv = new URLVariables(); for (k in options) { lv[k] = options[k]; }; 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.name = name; mc.lc = lc; lv.lc = name; mc._id = 0; mc._queue = []; mc.rpcResult = function (_arg1:Object):void{ var _local3:Array; var _local4:Array; var _local5:Number; var _local6:Object; var _local7:Object; _arg1 = parseInt(_arg1.toString()); _local3 = mc._callbacks[_arg1]; if (typeof(_local3) == "undefined"){ return; }; delete mc._callbacks[_arg1]; _local4 = []; _local5 = 2; while (_local5 < _local3.length) { _local4.push(_local3[_local5]); _local5++; }; _local5 = 1; while (_local5 < arguments.length) { _local4.push(arguments[_local5]); _local5++; }; _local6 = _local3[1]; _local7 = _local3[0]; if (((_local7) && ((typeof(_local6) == "string")))){ _local6 = _local7[_local6]; }; if (typeof(_local6) == "function"){ _local6.apply(_local7, _local4); }; }; mc._didConnect = function (_arg1:String):void{ var _local2:Array; var _local3:Function; var _local4:Number; var _local5:Array; mc._endpoint = _arg1; _local2 = mc._queue; delete mc._queue; _local3 = mc.doSend; _local4 = 0; while (_local4 < _local2.length) { _local5 = _local2[_local4]; _local3.apply(this, _local5); _local4++; }; }; mc.doSend = function (_arg1:Array, _arg2:Object, _arg3:Object):void{ var _local5:Number; var _local6:LocalConnection; var _local7:Array; var _local8:Number; if (mc._endpoint == null){ _local7 = []; _local8 = 0; while (_local8 < arguments.length) { _local7.push(arguments[_local8]); _local8++; }; mc._queue.push(_local7); return; }; mc._id = (mc._id + 1); _local5 = mc._id; mc._callbacks[_local5] = [_arg2, ((_arg3) || (_arg2))]; _local6 = new LocalConnection(); _local6.send(mc._endpoint, "rpc", _local5, _arg1); }; mc._callbacks = {}; mc._callbacks[0] = [mc, "_didConnect"]; lv.st = getTimer(); req = new URLRequest((server + ".swf")); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader = new Loader(); loader.load(req); mc.addChild(loader); mc._mochiad_com = loader; return (mc); } 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 r:MovieClip; var options = _arg1; DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, ad_started:function ():void{ this.clip.stop(); }, ad_finished:function ():void{ this.clip.play(); }}; options = _slot1._parseOptions(options, DEFAULTS); clip = options.clip; trace("MochiLoadStart"); clip.lock = true; ad_msec = 11000; ad_timeout = options.ad_timeout; delete options.ad_timeout; fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!_slot1.load(options)){ options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ var fn:Function; fn = function ():void{ options.ad_finished(); trace("MochiLoadEnd"); options.clip.lock = false; }; setTimeout(fn, 100); }; wh = _slot1._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); 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 { _slot1.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; f = function (_arg1:Event):void{ complete = true; if (unloaded){ _slot1.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){ _slot1.unload(clip); }; }; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object; _local2 = mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; 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.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; _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); if (!chk.showing){ _local11 = _local2.loaderInfo.bytesTotal; if ((((_local11 > 0)) || (("number" == "undefined")))){ chk.showing = true; chk.started = getTimer(); } else { if (_local3 > chk.ad_timeout){ _local4 = true; }; }; }; if ((((_local3 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){ _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{ _slot1.showPreGameAd(_arg1); } public static function fetchHighScores(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{ var _local4:MovieClip; _local4 = _slot1._loadCommunicator({clip:_arg1.clip, id:_arg1.id}); if (!_local4){ return (false); }; _local4.doSend(["fetchHighScores", _arg1], _arg2, _arg3); return (true); } 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 { mc.removeEventListener(Event.ENTER_FRAME, f); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package display
Section 4
//BitmapAsset (mx.core.BitmapAsset) package mx.core { import flash.display.*; public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject { mx_internal static const VERSION:String = "2.0.1.0"; public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){ super(_arg1, _arg2, _arg3); } public function get measuredWidth():Number{ if (bitmapData){ return (bitmapData.width); }; return (0); } public function get measuredHeight():Number{ if (bitmapData){ return (bitmapData.height); }; return (0); } public function setActualSize(_arg1:Number, _arg2:Number):void{ width = _arg1; height = _arg2; } public function move(_arg1:Number, _arg2:Number):void{ this.x = _arg1; this.y = _arg2; } } }//package mx.core
Section 5
//FlexBitmap (mx.core.FlexBitmap) package mx.core { import flash.display.*; import mx.utils.*; public class FlexBitmap extends Bitmap { mx_internal static const VERSION:String = "2.0.1.0"; public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){ var bitmapData = _arg1; var pixelSnapping = _arg2; var smoothing = _arg3; super(bitmapData, pixelSnapping, smoothing); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 6
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 7
//IFlexDisplayObject (mx.core.IFlexDisplayObject) package mx.core { import flash.events.*; import flash.display.*; public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher { function get name():String; function set width(_arg1:Number):void; function get measuredHeight():Number; function set height(_arg1:Number):void; function get scaleY():Number; function move(_arg1:Number, _arg2:Number):void; function get scaleX():Number; function set mask(_arg1:DisplayObject):void; function set scaleX(_arg1:Number):void; function set name(_arg1:String):void; function set scaleY(_arg1:Number):void; function get visible():Boolean; function get measuredWidth():Number; function set visible(_arg1:Boolean):void; function get alpha():Number; function get height():Number; function get width():Number; function get parent():DisplayObjectContainer; function get mask():DisplayObject; function set x(_arg1:Number):void; function setActualSize(_arg1:Number, _arg2:Number):void; function set y(_arg1:Number):void; function get x():Number; function get y():Number; function set alpha(_arg1:Number):void; } }//package mx.core
Section 8
//IRepeaterClient (mx.core.IRepeaterClient) package mx.core { public interface IRepeaterClient { function set instanceIndices(_arg1:Array):void; function get isDocument():Boolean; function get repeaters():Array; function get instanceIndices():Array; function set repeaters(_arg1:Array):void; function initializeRepeaterArrays(_arg1:IRepeaterClient):void; function set repeaterIndices(_arg1:Array):void; function get repeaterIndices():Array; } }//package mx.core
Section 9
//mx_internal (mx.core.mx_internal) package mx.core { public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal"; }//package mx.core
Section 10
//NameUtil (mx.utils.NameUtil) package mx.utils { import flash.display.*; import mx.core.*; import flash.utils.*; public class NameUtil { mx_internal static const VERSION:String = "2.0.1.0"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var _local2:String; var _local3:DisplayObject; var _local4:String; var _local5:Array; _local3 = _arg1; while (_local3 != null) { if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){ break; }; _local4 = _local3.name; if ((_local3 is IRepeaterClient)){ _local5 = IRepeaterClient(_local3).instanceIndices; if (_local5){ _local4 = (_local4 + (("[" + _local5.join("][")) + "]")); }; }; _local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2); _local3 = _local3.parent; }; return (_local2); } public static function createUniqueName(_arg1:Object):String{ var _local2:String; var _local3:int; var _local4:int; if (!_arg1){ return (null); }; _local2 = getQualifiedClassName(_arg1); _local3 = _local2.indexOf("::"); if (_local3 != -1){ _local2 = _local2.substr((_local3 + 2)); }; _local4 = _local2.charCodeAt((_local2.length - 1)); if ((((_local4 >= 48)) && ((_local4 <= 57)))){ _local2 = (_local2 + "_"); }; return ((_local2 + counter++)); } } }//package mx.utils
Section 11
//clickfast (clickfast) package { import flash.events.*; import flash.display.*; import flash.geom.*; import display.*; import mx.core.*; import flash.text.*; import flash.utils.*; import flash.net.*; public class clickfast extends MovieClip { private var size:Point; private var againBmp:Bitmap; private var keyspace:String;// = "HPjpy1RVAfGBl_uTUMbqaZ287zin63FQWd0J5YwkN9KeSmcXt4DLorIvhgCO.Esx" private var _lock:Boolean;// = true public var _mochiad:Object; public var _mochiad_loaded:Boolean; private var btnSprite:Sprite; public var hoverCls:Class; private var _send:Bitmap; private var p:Point; private var btnAry:Array; public var sendCls:Class; private var randData1:String;// = "jgfrkjdfbv054re+å0uw3ä.gdsj34w09" private var timerField:TextField; private var randData2:String;// = "äpo5re4095rjbdvfdlnwa<-cviwpijvf" private var time:Number;// = 1 private var _background:Sprite; private var points:Number;// = 0 private var it:int;// = 0 private var hover:Bitmap; private var timer:Timer; public var clip:Object; private var btnB:Bitmap; private var btnR:Bitmap; public var startCls:Class; private var hoverPos:Point; private var done:Boolean;// = false private var level:int;// = 1 private var loadAry:Array; public var againCls:Class; public var btnrCls:Class; private var startBmp:Bitmap; public var btnbCls:Class; private var toClick:int;// = 0 private var levelField:TextField; private var pointsField:TextField; public function clickfast(){ var _local1:String; var _local2:String; var _local3:String; btnrCls = clickfast_btnrCls; btnbCls = clickfast_btnbCls; againCls = clickfast_againCls; hoverCls = clickfast_hoverCls; sendCls = clickfast_sendCls; startCls = clickfast_startCls; btnAry = new Array(); loadAry = new Array(); it = 0; points = 0; time = 1; level = 1; p = new Point(10, 40); size = new Point(80, 80); btnSprite = new Sprite(); toClick = 0; done = false; hoverPos = new Point(130, 370); _background = new Sprite(); _lock = true; keyspace = "HPjpy1RVAfGBl_uTUMbqaZ287zin63FQWd0J5YwkN9KeSmcXt4DLorIvhgCO.Esx"; randData1 = "jgfrkjdfbv054re+å0uw3ä.gdsj34w09"; randData2 = "äpo5re4095rjbdvfdlnwa<-cviwpijvf"; super(); stage.scaleMode = "noScale"; _local1 = "HPjpy1RVAfGBl_uTUMbqaZ287zin63FQWd0J5YwkN9KeSmcXt4DLorIvhgCO.Esx"; _local2 = "jgfrkjdfbv054re+å0uw3ä.gdsj34w09"; _local3 = "äpo5re4095rjbdvfdlnwa<-cviwpijvf"; loadComplete(); } private function loaded(_arg1:Event):void{ it++; trace("loaded", _arg1.target.content, it, loadAry.length); if (it == loadAry.length){ loadComplete(); }; } private function loadComplete():void{ var _local1:BitmapAsset; addChild(_background); _background.graphics.beginFill(0xFF0000, 1); trace(stage.width); _background.graphics.drawRect(0, 0, 500, 500); _background.graphics.endFill(); _background.alpha = 0; trace("LoadComplete"); _local1 = new btnbCls(); btnB = new Bitmap(_local1.bitmapData); _local1 = new btnrCls(); btnR = new Bitmap(_local1.bitmapData); _local1 = new hoverCls(); hover = new Bitmap(_local1.bitmapData); _local1 = new startCls(); startBmp = new Bitmap(_local1.bitmapData); _local1 = new againCls(); againBmp = new Bitmap(_local1.bitmapData); _local1 = new sendCls(); _send = new Bitmap(_local1.bitmapData); timerField = new TextField(); timerField.defaultTextFormat = new TextFormat("Arial", 25, 0); timerField.x = 150; timerField.y = 430; timerField.width = 300; timerField.selectable = false; addChild(timerField); pointsField = new TextField(); pointsField.defaultTextFormat = new TextFormat("Arial", 25, 0); pointsField.x = 250; pointsField.y = 10; pointsField.selectable = false; pointsField.width = 300; pointsField.text = "Points: 0"; addChild(pointsField); levelField = new TextField(); levelField.defaultTextFormat = new TextFormat("Arial", 25, 0); levelField.x = 10; levelField.y = 10; levelField.width = 300; levelField.text = "Level: 1"; levelField.selectable = false; addChild(levelField); start(); MochiAd.showPreGameAd({clip:root, id:"c6df0a4bfb75bccd", res:"500x500"}); } private function start():void{ var tick:Function; var timerComplete:Function; var h:Sprite; var hov:Function; var mouseOut:Function; tick = function (_arg1:TimerEvent):void{ _background.alpha = (1 - time); time = (time - 0.001); timerField.text = ("Time left: " + String((Math.floor((time * 1000)) / 1000))); }; timerComplete = function (_arg1:TimerEvent):void{ trace("END"); btnSprite.parent.removeChild(btnSprite); timerField.text = "Time left: 0.000"; done = true; end(); }; hov = function (_arg1:MouseEvent):void{ trace(_lock, "Lukitus"); if (!_lock){ h.addChild(startBmp); h.addEventListener(MouseEvent.MOUSE_OUT, mouseOut); }; }; mouseOut = function (_arg1:MouseEvent):void{ removeChild(h); create(); timer.start(); }; time = 0.7; timer = new Timer(1, Math.floor((1000 * time))); timer.addEventListener(TimerEvent.TIMER, tick); timer.addEventListener(TimerEvent.TIMER_COMPLETE, timerComplete); h = new Sprite(); h.addChild(new Bitmap(hover.bitmapData)); h.x = hoverPos.x; h.y = hoverPos.y; h.addEventListener(MouseEvent.MOUSE_OVER, hov); addChild(h); } public function set lock(_arg1:Boolean):void{ trace("LOCK"); this._lock = _arg1; } private function B(_arg1:String, _arg2:String):String{ var _local3:*; var _local4:*; var _local5:*; var _local6:*; var _local7:*; var _local8:*; var _local9:*; var _local10:*; var _local11:*; var _local12:*; _local6 = ""; _local11 = _arg2.length; _local12 = 0; do { var _temp1 = _local12; _local12 = (_local12 + 1); _local3 = _arg2.charCodeAt(_temp1); var _temp2 = _local12; _local12 = (_local12 + 1); _local7 = _arg2.charCodeAt(_temp2); var _temp3 = _local12; _local12 = (_local12 + 1); _local8 = _arg2.charCodeAt(_temp3); _local9 = (_local3 >> 2); _local4 = (((_local3 & 3) << 4) | (_local7 >> 4)); _local5 = (((_local7 & 15) << 2) | (_local8 >> 6)); _local10 = (_local8 & 63); if (isNaN(_local7)){ _local10 = 64; _local5 = _local10; } else { if (isNaN(_local8)){ _local10 = 64; }; }; _local6 = (_local6 + (((_arg1.charAt(_local9) + _arg1.charAt(_local4)) + _arg1.charAt(_local5)) + _arg1.charAt(_local10))); } while (_local12 < _local11); return (_local6); } private function btnClick(_arg1:MouseEvent):void{ var targ:ESprite; var fade:FXFade; var fadeComp:Function; var event = _arg1; trace(done, event.currentTarget.basket.click); if (((!(done)) && (!(event.currentTarget.basket.clicked)))){ event.currentTarget.basket.clicked = true; if (event.currentTarget.basket.click){ fadeComp = function (_arg1:Event):void{ targ.parent.removeChild(targ); }; points = (points + Math.round((this.time * 1000))); pointsField.text = ("Points: " + String(points)); targ = (event.currentTarget as ESprite); fade = new FXFade(targ); fade.addEventListener(Event.COMPLETE, fadeComp); fade.start(500); toClick--; if (toClick == 0){ timer.stop(); level++; levelField.text = ("Level: " + String(level)); btnSprite.parent.removeChild(btnSprite); start(); }; } else { timer.stop(); timer.dispatchEvent(new TimerEvent(TimerEvent.TIMER_COMPLETE)); }; }; } private function end():void{ var endSpriteSize:Point; var endSprite:Sprite; var endField:TextField; var againPos:Point; var again:ESprite; var againClick:Function; var sendPos:Point; var send:ESprite; againClick = function (_arg1:MouseEvent):void{ removeChild(endSprite); level = 1; points = 0; done = false; toClick = 0; start(); }; endSpriteSize = new Point(stage.width, 200); endSprite = new ESprite(); endSprite.y = ((stage.height / 2.5) - (endSpriteSize.y / 2)); endSprite.x = 0; endSprite.graphics.beginFill(0x666666, 1); endSprite.graphics.drawRect(0, 0, endSpriteSize.x, endSpriteSize.y); endSprite.graphics.endFill(); addChild(endSprite); endField = new TextField(); endField.defaultTextFormat = new TextFormat("Arial", 24); endField.selectable = false; endField.width = 400; endField.height = 100; endField.x = 10; endField.y = 10; endField.text = (("You got " + String(points)) + " points."); endSprite.addChild(endField); againPos = new Point(10, 150); again = new ESprite(); again.location = againPos; again.addChild(new Bitmap(againBmp.bitmapData)); again.addEventListener(MouseEvent.CLICK, againClick); endSprite.addChild(again); if (this.points > 10000){ sendPos = new Point(10, 100); send = new ESprite(); send.location = sendPos; send.addChild(new Bitmap(_send.bitmapData)); send.addEventListener(MouseEvent.CLICK, sendScore); endSprite.addChild(send); }; } private function create():void{ var _local1:Array; var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:ESprite; if (btnSprite.parent != null){ btnSprite.parent.removeChild(btnSprite); }; btnSprite = new Sprite(); _local1 = new Array(); _local2 = 0; while (_local2 < level) { _local1.push(_local2); _local2++; }; _local3 = 1; if (level > _local3){ _local5 = 0; while (_local5 < Math.round(((level - _local3) * 0.32))) { _local6 = randint((_local1.length - 1)); trace(_local1.splice(_local6, 1)); _local5++; }; }; _local4 = 0; while (_local4 < level) { _local7 = new ESprite(); if (_local1.indexOf(_local4) != -1){ _local7.addChild(new Bitmap(btnR.bitmapData)); _local7.basket = {click:true, clicked:false}; toClick++; } else { _local7.addChild(new Bitmap(btnB.bitmapData)); _local7.basket = {click:false, clicked:false}; }; _local7.x = (p.x + ((_local4 % 6) * size.x)); _local7.y = (p.y + (size.y * Math.floor((_local4 / 6)))); _local7.addEventListener(MouseEvent.CLICK, btnClick); btnSprite.addChild(_local7); _local4++; }; addChild(btnSprite); } public function get lock():Boolean{ return (_lock); } private function randint(_arg1:int):int{ return (Math.round((_arg1 * Math.random()))); } private function sendScore(_arg1:MouseEvent):void{ var _local2:URLRequest; _arg1.currentTarget.parent.removeChild(_arg1.currentTarget); trace("sendScore"); _local2 = new URLRequest(("http://servut.us/akx/cf/dpost.php?z=" + B(this.keyspace, ((this.randData1 + String(this.points)) + this.randData2)))); navigateToURL(_local2, "_self"); } } }//package
Section 12
//clickfast_againCls (clickfast_againCls) package { import mx.core.*; public class clickfast_againCls extends BitmapAsset { } }//package
Section 13
//clickfast_btnbCls (clickfast_btnbCls) package { import mx.core.*; public class clickfast_btnbCls extends BitmapAsset { } }//package
Section 14
//clickfast_btnrCls (clickfast_btnrCls) package { import mx.core.*; public class clickfast_btnrCls extends BitmapAsset { } }//package
Section 15
//clickfast_hoverCls (clickfast_hoverCls) package { import mx.core.*; public class clickfast_hoverCls extends BitmapAsset { } }//package
Section 16
//clickfast_sendCls (clickfast_sendCls) package { import mx.core.*; public class clickfast_sendCls extends BitmapAsset { } }//package
Section 17
//clickfast_startCls (clickfast_startCls) package { import mx.core.*; public class clickfast_startCls extends BitmapAsset { } }//package

Library Items

Symbol 1 Bitmap {clickfast_sendCls}
Symbol 2 Bitmap {clickfast_btnbCls}
Symbol 3 Bitmap {clickfast_startCls}
Symbol 4 Bitmap {clickfast_btnrCls}
Symbol 5 Bitmap {clickfast_againCls}
Symbol 6 Bitmap {clickfast_hoverCls}

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1459 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
SerialNumber (41)Timeline Frame 1

Labels

"clickfast"Frame 1




http://swfchan.com/1/846/info.shtml
Created: 18/6 -2019 02:01:28 Last modified: 18/6 -2019 02:01:28 Server time: 22/12 -2024 22:42:04