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

four-remaining.swf

This is the info page for
Flash #109758

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


ActionScript [AS1/AS2]
Combined Code
movieClip 3 { } // unknown tag 88 length 115 button 8 { on (release) { getURL('http://www.gimme5games.com?ref=four-remaining_SPLASH', '_blank'); } } movieClip 10 { } movieClip 12 { } movieClip 14 { } movieClip 16 { } movieClip 18 { } movieClip 20 { } movieClip 22 { } movieClip 25 { } button 27 { on (release) { _parent.nextFrame(); } } movieClip 28 { frame 110 { stop(); } } movieClip 32 { } movieClip 34 { } movieClip 36 { } movieClip 38 { } movieClip 39 { } movieClip 40 { frame 60 { _root.play(); stop(); } } // unknown tag 88 length 45 button 44 { on (release) { getURL('http://www.bacon-games.com/', '_blank'); } } movieClip 45 loader_noads { frame 1 { _root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; txtPercent.text = int(PercentLoaded) + ' % loaded'; } else { gotoAndPlay('loaded'); } } frame 2 { gotoAndPlay(1); } frame 75 { removeMovieClip(adBox); stop(); } } movieClip 47 { } movieClip 48 loader_ads { frame 1 { _root.stop(); if (ini != 1) { var CPMStarContentSpotID = '2802QBC58BD9D'; System.security.allowDomain('server.cpmstar.com'); adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID); ini = 1; } PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; txtPercent.text = int(PercentLoaded) + ' % loaded'; } else { gotoAndPlay('loaded'); } } frame 2 { gotoAndPlay(1); } frame 75 { removeMovieClip(adBox); stop(); } } // unknown tag 88 length 83 movieClip 51 { } movieClip 52 eb50 { frame 1 { _parent._parent._parent._parent.sounds.gotoAndPlay('tonleiter2'); } frame 14 { stop(); } } movieClip 54 { } movieClip 55 eb100 { frame 1 { _parent._parent._parent._parent.sounds.gotoAndPlay('reward1'); } frame 14 { stop(); } } movieClip 57 { } movieClip 58 row_ended { frame 1 { _parent._parent._parent._parent.sounds.gotoAndPlay('reward3'); } frame 14 { stop(); } } movieClip 60 { } movieClip 61 row_broken { frame 1 { _parent._parent._parent._parent.sounds.gotoAndPlay('fail'); } frame 14 { stop(); } } movieClip 63 { } movieClip 64 row_started { frame 1 { _parent._parent._parent._parent.sounds.gotoAndPlay('row_start'); } frame 14 { stop(); } } movieClip 66 { } movieClip 67 mp1 { frame 1 { _parent._parent._parent._parent.sounds.gotoAndPlay('tonleiter2'); } frame 14 { stop(); } } movieClip 69 { } movieClip 70 mp2 { frame 1 { _parent._parent._parent._parent.sounds.gotoAndPlay('tonleiter3'); } frame 14 { stop(); } } movieClip 72 { } movieClip 73 mp3 { frame 1 { _parent._parent._parent._parent.sounds.gotoAndPlay('tonleiter4'); } frame 14 { stop(); } } movieClip 75 { } movieClip 76 mp4 { frame 1 { _parent._parent._parent._parent.sounds.gotoAndPlay('tonleiter5'); } frame 14 { stop(); } } movieClip 78 { } movieClip 79 mp5 { frame 1 { _parent._parent._parent._parent.sounds.gotoAndPlay('reward2'); } frame 14 { stop(); } } movieClip 81 { } movieClip 82 eb15 { frame 1 { _parent._parent._parent._parent.sounds.gotoAndStop('tonleiter1'); } frame 14 { stop(); } } movieClip 88 { } movieClip 89 { } // unknown tag 88 length 96 // unknown tag 88 length 96 movieClip 97 { } movieClip 100 { } movieClip 103 { } // unknown tag 88 length 96 // unknown tag 88 length 96 movieClip 110 { } // unknown tag 88 length 96 movieClip 112 { } movieClip 113 { } movieClip 115 { } movieClip 118 { } // unknown tag 88 length 96 // unknown tag 88 length 493 // unknown tag 88 length 493 movieClip 124 { } movieClip 126 { } movieClip 127 ZattikkaHiScores { #initclip Object.registerClass('ZattikkaHiScores', ZattikkaHiScores); #endinitclip } frame 1 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('4fc3bebe', this, 10301, true); __com_mochibot__('9ccf67e0', this, 10301, true); } frame 1 { function sitelock(urls_allowed) { lock = true; domain_parts = _url.split('://'); real_domain = domain_parts[1].split('/'); domain.text = real_domain[0]; for (x in urls_allowed) { if (urls_allowed[x] == real_domain[0]) { lock = false; } } if (lock) { trace('attach with ads'); attachMovie('loader_ads', 'loader_ads1', 5); } else { trace('attach no ads'); attachMovie('loader_noads', 'loader_noads1', 5); } } urls_allowed = ['bacon-games.com', 'www.bacon-games.com', 'assets.zattikka.com', 'assets.staging.zattikka.com', 'cdn.kaisergames.de', 'addictinggames.com']; sitelock(urls_allowed); _quality = 'HIGH'; local_data = SharedObject.getLocal('user_data'); stop(); mute = 1; } movieClip 83 __Packages.mx.core.UIObject { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIObject) { var v1 = function () { super(); this.constructObject(); }; mx.core.UIObject = v1; mx.core.UIObject extends MovieClip; var v2 = v1.prototype; v2.__get__width = function () { return this._width; }; v2.__get__height = function () { return this._height; }; v2.__get__left = function () { return this._x; }; v2.__get__x = function () { return this._x; }; v2.__get__top = function () { return this._y; }; v2.__get__y = function () { return this._y; }; v2.__get__right = function () { return this._parent.width - (this._x + this.__get__width()); }; v2.__get__bottom = function () { return this._parent.height - (this._y + this.__get__height()); }; v2.getMinHeight = function (Void) { return this._minHeight; }; v2.setMinHeight = function (h) { this._minHeight = h; }; v2.__get__minHeight = function () { return this.getMinHeight(); }; v2.__set__minHeight = function (h) { this.setMinHeight(h); return this.__get__minHeight(); }; v2.getMinWidth = function (Void) { return this._minWidth; }; v2.setMinWidth = function (w) { this._minWidth = w; }; v2.__get__minWidth = function () { return this.getMinWidth(); }; v2.__set__minWidth = function (w) { this.setMinWidth(w); return this.__get__minWidth(); }; v2.setVisible = function (x, noEvent) { if (x != this._visible) { this._visible = x; if (noEvent != true) { this.dispatchEvent({'type': x ? 'reveal' : 'hide'}); } } }; v2.__get__visible = function () { return this._visible; }; v2.__set__visible = function (x) { this.setVisible(x, false); return this.__get__visible(); }; v2.__get__scaleX = function () { return this._xscale; }; v2.__set__scaleX = function (x) { this._xscale = x; return this.__get__scaleX(); }; v2.__get__scaleY = function () { return this._yscale; }; v2.__set__scaleY = function (y) { this._yscale = y; return this.__get__scaleY(); }; v2.doLater = function (obj, fn) { if (this.methodTable == undefined) { this.methodTable = new Array(); } this.methodTable.push({'obj': obj, 'fn': fn}); this.onEnterFrame = this.doLaterDispatcher; }; v2.doLaterDispatcher = function (Void) { delete this.onEnterFrame; if (this.invalidateFlag) { this.redraw(); } var v3 = this.methodTable; this.methodTable = new Array(); if (v3.length > 0) { var v2; v2 = v3.shift(); while (v2 != undefined) { v2.obj[v2.fn](); } } }; v2.cancelAllDoLaters = function (Void) { delete this.onEnterFrame; this.methodTable = new Array(); }; v2.invalidate = function (Void) { this.invalidateFlag = true; this.onEnterFrame = this.doLaterDispatcher; }; v2.invalidateStyle = function (Void) { this.invalidate(); }; v2.redraw = function (bAlways) { if (this.invalidateFlag || bAlways) { this.invalidateFlag = false; var v2; for (v2 in this.tfList) { this.tfList[v2].draw(); } this.draw(); this.dispatchEvent({'type': 'draw'}); } }; v2.draw = function (Void) {}; v2.move = function (x, y, noEvent) { var v3 = this._x; var v2 = this._y; this._x = x; this._y = y; if (noEvent != true) { this.dispatchEvent({'type': 'move', 'oldX': v3, 'oldY': v2}); } }; v2.setSize = function (w, h, noEvent) { var v3 = this.__width; var v2 = this.__height; this.__width = w; this.__height = h; this.size(); if (noEvent != true) { this.dispatchEvent({'type': 'resize', 'oldWidth': v3, 'oldHeight': v2}); } }; v2.size = function (Void) { this._width = this.__width; this._height = this.__height; }; v2.drawRect = function (x1, y1, x2, y2) { this.moveTo(x1, y1); this.lineTo(x2, y1); this.lineTo(x2, y2); this.lineTo(x1, y2); this.lineTo(x1, y1); }; v2.createLabel = function (name, depth, text) { this.createTextField(name, depth, 0, 0, 0, 0); var v2 = this[name]; v2._color = mx.core.UIObject.textColorList; v2._visible = false; v2.__text = text; if (this.tfList == undefined) { this.tfList = new Object(); } this.tfList[name] = v2; v2.invalidateStyle(); this.invalidate(); v2.styleName = this; return v2; }; v2.createObject = function (linkageName, id, depth, initobj) { return this.attachMovie(linkageName, id, depth, initobj); }; v2.createClassObject = function (className, id, depth, initobj) { var v3 = className.symbolName == undefined; if (v3) { Object.registerClass(className.symbolOwner.symbolName, className); } var v4 = mx.core.UIObject(this.createObject(className.symbolOwner.symbolName, id, depth, initobj)); if (v3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return v4; }; v2.createEmptyObject = function (id, depth) { return this.createClassObject(mx.core.UIObject, id, depth); }; v2.destroyObject = function (id) { var v2 = this[id]; if (v2.getDepth() < 0) { var v4 = this.buildDepthTable(); var v5 = this.findNextAvailableDepth(0, v4, 'up'); var v3 = v5; v2.swapDepths(v3); } v2.removeMovieClip(); delete this[id]; }; v2.getSkinIDName = function (tag) { return this.idNames[tag]; }; v2.setSkin = function (tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return this.createObject(linkageName, this.getSkinIDName(tag), tag, initObj); }; v2.createSkin = function (tag) { var v2 = this.getSkinIDName(tag); this.createEmptyObject(v2, tag); return this[v2]; }; v2.createChildren = function (Void) {}; v2._createChildren = function (Void) { this.createChildren(); this.childrenCreated = true; }; v2.constructObject = function (Void) { if (this._name == undefined) { return undefined; } this.init(); this._createChildren(); this.createAccessibilityImplementation(); this._endInit(); if (this.validateNow) { this.redraw(true); } else { this.invalidate(); } }; v2.initFromClipParameters = function (Void) { var v4 = false; var v2; for (v2 in this.clipParameters) { if (this.hasOwnProperty(v2)) { v4 = true; this['def_' + v2] = this[v2]; delete this[v2]; } } if (v4) { for (v2 in this.clipParameters) { var v3 = this['def_' + v2]; if (v3 != undefined) { this[v2] = v3; } } } }; v2.init = function (Void) { this.__width = this._width; this.__height = this._height; if (this.initProperties == undefined) { this.initFromClipParameters(); } else { this.initProperties(); } if (_global.cascadingStyles == true) { this.stylecache = new Object(); } }; v2.getClassStyleDeclaration = function (Void) { var v4 = this; var v3 = this.className; while (v3 != undefined) { if (this.ignoreClassStyleDeclaration[v3] == undefined) { if (_global.styles[v3] != undefined) { return _global.styles[v3]; } } v4 = v4.__proto__; v3 = v4.className; } }; v2.setColor = function (color) {}; v2.__getTextFormat = function (tf, bAll) { var v8 = this.stylecache.tf; if (v8 != undefined) { var v3; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { tf[v3] = v8[v3]; } } } return false; } var v6 = false; for (v3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v3]) { if (tf[v3] == undefined) { var v5 = this._tf[v3]; if (v5 != undefined) { tf[v3] = v5; } else { if (v3 == 'font' && this.fontFamily != undefined) { tf[v3] = this.fontFamily; } else { if (v3 == 'size' && this.fontSize != undefined) { tf[v3] = this.fontSize; } else { if (v3 == 'color' && this.color != undefined) { tf[v3] = this.color; } else { if (v3 == 'leftMargin' && this.marginLeft != undefined) { tf[v3] = this.marginLeft; } else { if (v3 == 'rightMargin' && this.marginRight != undefined) { tf[v3] = this.marginRight; } else { if (v3 == 'italic' && this.fontStyle != undefined) { tf[v3] = this.fontStyle == v3; } else { if (v3 == 'bold' && this.fontWeight != undefined) { tf[v3] = this.fontWeight == v3; } else { if (v3 == 'align' && this.textAlign != undefined) { tf[v3] = this.textAlign; } else { if (v3 == 'indent' && this.textIndent != undefined) { tf[v3] = this.textIndent; } else { if (v3 == 'underline' && this.textDecoration != undefined) { tf[v3] = this.textDecoration == v3; } else { if (v3 == 'embedFonts' && this.embedFonts != undefined) { tf[v3] = this.embedFonts; } else { v6 = true; } } } } } } } } } } } } } } } if (v6) { var v9 = this.styleName; if (v9 != undefined) { if (typeof v9 != 'string') { v6 = v9.__getTextFormat(tf, true, this); } else { if (_global.styles[v9] != undefined) { v6 = _global.styles[v9].__getTextFormat(tf, true, this); } } } } if (v6) { var v10 = this.getClassStyleDeclaration(); if (v10 != undefined) { v6 = v10.__getTextFormat(tf, true, this); } } if (v6) { if (_global.cascadingStyles) { if (this._parent != undefined) { v6 = this._parent.__getTextFormat(tf, false); } } } if (v6) { v6 = _global.style.__getTextFormat(tf, true, this); } return v6; }; v2._getTextFormat = function (Void) { var v2 = this.stylecache.tf; if (v2 != undefined) { return v2; } v2 = new TextFormat(); this.__getTextFormat(v2, true); this.stylecache.tf = v2; if (this.enabled == false) { var v3 = this.getStyle('disabledColor'); v2.color = v3; } return v2; }; v2.getStyleName = function (Void) { var v2 = this.styleName; if (v2 != undefined) { if (typeof v2 != 'string') { return v2.getStyleName(); } else { return v2; } } if (this._parent != undefined) { return this._parent.getStyleName(); } else { return undefined; } }; v2.getStyle = function (styleProp) { var v3; ++_global.getStyleCounter; if (this[styleProp] != undefined) { return this[styleProp]; } var v6 = this.styleName; if (v6 != undefined) { if (typeof v6 != 'string') { v3 = v6.getStyle(styleProp); } else { var v7 = _global.styles[v6]; v3 = v7.getStyle(styleProp); } } if (v3 != undefined) { return v3; } v7 = this.getClassStyleDeclaration(); if (v7 != undefined) { v3 = v7[styleProp]; } if (v3 != undefined) { return v3; } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || mx.styles.StyleManager.isColorStyle(styleProp)) { var v5 = this.stylecache; if (v5 != undefined) { if (v5[styleProp] != undefined) { return v5[styleProp]; } } if (this._parent != undefined) { v3 = this._parent.getStyle(styleProp); } else { v3 = _global.style[styleProp]; } if (v5 != undefined) { v5[styleProp] = v3; } return v3; } } if (v3 == undefined) { v3 = _global.style[styleProp]; } return v3; }; v1.mergeClipParameters = function (o, p) { for (var v3 in p) { o[v3] = p[v3]; } return true; }; v1.symbolName = 'UIObject'; v1.symbolOwner = mx.core.UIObject; v1.version = '2.0.2.127'; v1.textColorList = {'color': 1, 'disabledColor': 1}; v2.invalidateFlag = false; v2.lineWidth = 1; v2.lineColor = 0; v2.tabEnabled = false; v2.clipParameters = {'visible': 1, 'minHeight': 1, 'minWidth': 1, 'maxHeight': 1, 'maxWidth': 1, 'preferredHeight': 1, 'preferredWidth': 1}; v2.addProperty('bottom', v2.__get__bottom, function () {}); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('left', v2.__get__left, function () {}); v2.addProperty('minHeight', v2.__get__minHeight, v2.__set__minHeight); v2.addProperty('minWidth', v2.__get__minWidth, v2.__set__minWidth); v2.addProperty('right', v2.__get__right, function () {}); v2.addProperty('scaleX', v2.__get__scaleX, v2.__set__scaleX); v2.addProperty('scaleY', v2.__get__scaleY, v2.__set__scaleY); v2.addProperty('top', v2.__get__top, function () {}); v2.addProperty('visible', v2.__get__visible, v2.__set__visible); v2.addProperty('width', v2.__get__width, function () {}); v2.addProperty('x', v2.__get__x, function () {}); v2.addProperty('y', v2.__get__y, function () {}); ASSetPropFlags(mx.core.UIObject.prototype, null, 1); } #endinitclip } movieClip 84 __Packages.mx.core.UIComponent { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.core) { _global.mx.core = new Object(); } if (!_global.mx.core.UIComponent) { var v1 = function () { super(); }; mx.core.UIComponent = v1; mx.core.UIComponent extends mx.core.UIObject; var v2 = v1.prototype; v2.__get__width = function () { return this.__width; }; v2.__get__height = function () { return this.__height; }; v2.setVisible = function (x, noEvent) { super.setVisible(x, noEvent); }; v2.enabledChanged = function (id, oldValue, newValue) { this.setEnabled(newValue); this.invalidate(); delete this.stylecache.tf; return newValue; }; v2.setEnabled = function (enabled) { this.invalidate(); }; v2.getFocus = function () { var selFocus = Selection.getFocus(); return (selFocus === null) ? null : eval(selFocus); }; v2.setFocus = function () { Selection.setFocus(this); }; v2.getFocusManager = function () { var v2 = this; while (v2 != undefined) { if (v2.focusManager != undefined) { return v2.focusManager; } v2 = v2._parent; } return undefined; }; v2.onKillFocus = function (newFocus) { this.removeEventListener('keyDown', this); this.removeEventListener('keyUp', this); this.dispatchEvent({'type': 'focusOut'}); this.drawFocus(false); }; v2.onSetFocus = function (oldFocus) { this.addEventListener('keyDown', this); this.addEventListener('keyUp', this); this.dispatchEvent({'type': 'focusIn'}); if ((this.getFocusManager()).bDrawFocus != false) { this.drawFocus(true); } }; v2.findFocusInChildren = function (o) { if (o.focusTextField != undefined) { return o.focusTextField; } if (o.tabEnabled == true) { return o; } return undefined; }; v2.findFocusFromObject = function (o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return undefined; } if (o._parent.tabEnabled == true) { o = o._parent; return o; } if (o._parent.tabChildren) { o = this.findFocusInChildren(o._parent); return o; } o = this.findFocusFromObject(o._parent); } return o; }; v2.pressFocus = function () { var v3 = this.findFocusFromObject(this); var v2 = this.getFocus(); if (v3 != v2) { v2.drawFocus(false); if ((this.getFocusManager()).bDrawFocus != false) { v3.drawFocus(true); } } }; v2.releaseFocus = function () { var v2 = this.findFocusFromObject(this); if (v2 != this.getFocus()) { v2.setFocus(); } }; v2.isParent = function (o) { while (o != undefined) { if (o == this) { return true; } o = o._parent; } return false; }; v2.size = function () {}; v2.init = function () { super.init(); this._xscale = 100; this._yscale = 100; this._focusrect = _global.useFocusRect == false; this.watch('enabled', this.enabledChanged); if (this.enabled == false) { this.setEnabled(false); } }; v2.dispatchValueChangedEvent = function (value) { this.dispatchEvent({'type': 'valueChanged', 'value': value}); }; v1.symbolName = 'UIComponent'; v1.symbolOwner = mx.core.UIComponent; v1.version = '2.0.2.127'; v1.kStretch = 5000; v2.focusEnabled = true; v2.tabEnabled = true; v2.origBorderStyles = {'themeColor': 16711680}; v2.clipParameters = {}; v1.mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); v2.addProperty('height', v2.__get__height, function () {}); v2.addProperty('width', v2.__get__width, function () {}); ASSetPropFlags(mx.core.UIComponent.prototype, null, 1); } #endinitclip } movieClip 85 __Packages.ZattikkaHiScores { #initclip if (!_global.ZattikkaHiScores) { var v1 = function () { super(); this.debug('[ZattikkaHiScores VERSION ' + ZattikkaHiScores.VERSION_NUM + ']'); this._visible = false; }; _global.ZattikkaHiScores = v1; _global.ZattikkaHiScores extends mx.core.UIComponent; var v2 = v1.prototype; v2.setDetails = function (gameId, levelId, gameCode, gameKey, lowIsBest, score, msg1, msg2, testMode) { this.debug('[ZattikkaHiScores::setDetails], gameId = ' + gameId + ', levelId = ' + levelId + ', gameCode = ' + gameCode + ', lowIsBest = ' + lowIsBest + ', score = ' + score + ', testMode = ' + testMode); this.initServerURL(testMode); this.entryScreen = this.movEntryScreen; this.infoScreen = this.movInfoScreen; this.entryScreen._visible = false; this.infoScreen._visible = false; this.gameId = gameId; this.levelId = levelId; this.gameCode = gameCode; this.gameKey = gameKey; this.lowIsBest = lowIsBest; this.score = score; this.msg1 = msg1; this.msg2 = msg2; if (!this.userManuallySet) { try { this.grabG5User(); if (!this.g5UserExists) { this.grabFacebookUser(); } } catch (v0) { if (Error(v0) != null) { var err = Error(v0); } else { throw v0; } } } var self = this; this.btnGFTP.onRelease = function () { self.btn_GFTP(); }; this.entryScreen.btnSubmit.onRelease = function () { self.btn_submitScore(); }; this.entryScreen.btnTwitter.onRelease = function () { self.btn_twitterTweet(); }; this.entryScreen.btnFacebook.onRelease = function () { self.btn_facebookFeed(); }; this.infoScreen.btnView.onRelease = function () { self.btn_viewScore(); }; this.infoScreen.btnBack.onRelease = function () { self.btn_back(); }; if (this.fbUserExists) { this.btn_submitScore(); } else { this.showEntryScreen(); } this._visible = true; }; v2.getHiScores = function (caller, gameId, levelId, numRows, lowIsBest, testMode) { this.debug('[ZattikkaHiScores::getHiScores] gameId = ' + gameId + ', levelId = ' + levelId + ', numRows = ' + numRows + ', lowIsBest = ' + lowIsBest + ', testMode = ' + testMode); this.initServerURL(testMode); this.caller = caller; var v2 = new LoadVars(); v2.gameId = gameId; v2.levelId = levelId; v2.platformId = 0; v2.viewPlatformId = 0; v2.userId = ''; v2.numRows = numRows; v2.lowIsBest = lowIsBest; this.hitServer(ZattikkaHiScores.HS_ACTION, ZattikkaHiScores.EVENT_GET_HI_SCORES, v2); }; v2.viewHiScores = function (gameId, testMode) { this.debug('[ZattikkaHiScores::viewHiScores] gameId = ' + gameId + ', testMode = ' + testMode); this.initServerURL(testMode); var v2 = ZattikkaHiScores.SERVER_URL + ZattikkaHiScores.HS_ACTION + ZattikkaHiScores.EVENT_VIEW_HI_SCORES; v2 += '&gameId=' + gameId; this.getURL(v2, '_blank'); }; v2.initServerURL = function (testMode) { if (testMode != undefined && testMode) { ZattikkaHiScores.SERVER_URL = ZattikkaHiScores.TEST_SERVER_URL; } else { try { if (_root.svrUrl != null && _root.svrUrl.length > 0) { ZattikkaHiScores.SERVER_URL = String(_root.svrUrl); } } catch (v0) { if (Error(v0) != null) { var err = Error(v0); } else { throw v0; } } } this.debug('[ZattikkaHiScores::initServerURL] SERVER_URL = ' + ZattikkaHiScores.SERVER_URL); }; v2.setG5User = function (userId, userName) { this.g5User = new Array(userId, userName); this.userManuallySet = true; this.debug('[ZattikkaHiScores::setG5User] userId = ' + this.g5User[0] + ', userName = ' + this.g5User[1]); }; v2.setFacebookUser = function (userId, userName, sessionKey) { this.fbUser = new Array(userId, userName); this.fbSessionKey = sessionKey; this.userManuallySet = true; this.debug('[ZattikkaHiScores::setFacebookUser] userId = ' + this.fbUser[0] + ', userName = ' + this.fbUser[1]); }; v2.grabG5User = function () { this.g5User = flash.external.ExternalInterface.call('getG5User'); this.g5UserExists = (this.g5User == null) ? false : !isNaN(this.g5User[0]); this.debug('[ZattikkaHiScores::grabG5User] ' + (this.g5UserExists ? 'userId = ' + this.g5User[0] + ', userName = ' + this.g5User[1] : 'g5User is empty')); }; v2.grabFacebookUser = function () { this.fbUser = flash.external.ExternalInterface.call('getFBUser'); this.fbUserExists = (this.fbUser == null) ? false : !isNaN(this.fbUser[0]); this.fbSessionKey = flash.external.ExternalInterface.call('getFBSessionKey'); this.debug('[ZattikkaHiScores::grabFacebookUser] ' + (this.fbUserExists ? 'userId = ' + this.fbUser[0] + ', userName = ' + this.fbUser[1] + ', sessionKey = ' + this.fbSessionKey : 'fbUser is empty')); }; v2.showEntryScreen = function () { this.entryScreen.txtMsgLine1.text = this.msg1; this.entryScreen.txtMsgLine2.text = this.msg2; this.entryScreen.movNameAuto._visible = this.g5UserExists || this.fbUserExists; this.entryScreen.movNameManual._visible = !this.g5UserExists && !this.fbUserExists; this.entryScreen.movNameAuto.txtName.text = this.g5UserExists ? this.g5User[1] : (this.fbUserExists ? this.fbUser[1] : ''); this.entryScreen.movNameManual.txtName.text = ''; this.entryScreen._visible = true; this.infoScreen._visible = false; }; v2.showInfoMessage = function (msg, error) { this.infoScreen.txtInfo.text = msg; this.infoScreen.btnBack._visible = error; this.infoScreen.btnView._visible = !error && !this.fbUserExists; this.infoScreen._visible = true; this.entryScreen._visible = false; }; v2.btn_GFTP = function () { this.getURL(ZattikkaHiScores.GFTP_URL, '_blank'); }; v2.btn_submitScore = function () { if (!this.g5UserExists && !this.fbUserExists && this.entryScreen.movNameManual.txtName.text.length == 0) { this.showInfoMessage(ZattikkaHiScores.MSG_PLEASE_ENTER_NICKNAME, true); } else { this.submitScore(); } }; v2.btn_twitterTweet = function () { if (!this.g5UserExists && !this.fbUserExists && this.entryScreen.movNameManual.txtName.text.length == 0) { this.showInfoMessage(ZattikkaHiScores.MSG_PLEASE_ENTER_NICKNAME, true); } else { this.twitterTweet(); } }; v2.btn_facebookFeed = function () { if (this.fbUserExists) { this.facebookFeed(); } else { this.facebookFeedExternal(); } }; v2.btn_viewScore = function () { this.viewScore(); }; v2.btn_back = function () { this.setDetails(this.gameId, this.levelId, this.gameCode, this.gameKey, this.lowIsBest, this.score, this.msg1, this.msg2); }; v2.submitScore = function () { this.showInfoMessage(ZattikkaHiScores.MSG_SUBMITTING_DETAILS, false); this.infoScreen._visible = true; this.entryScreen._visible = false; var v9 = this.fbUserExists ? ZattikkaHiScores.HS_PLATFORM_FACEBOOK : ZattikkaHiScores.HS_PLATFORM_WEB; var v5 = ''; var v7 = ''; if (this.fbUserExists) { v7 = this.fbUser[0]; v5 = this.fbUser[1]; } else { if (this.g5UserExists) { v7 = this.g5User[0]; v5 = this.g5User[1]; } else { v5 = this.entryScreen.movNameManual.txtName.text; } } var v8 = String((new Date()).getTime()); var v10 = v8.split(''); v10.reverse(); var v6 = this.xor(v10.join(''), this.gameKey, false); var v2 = ''; v2 += this.gameId + ','; v2 += this.levelId + ','; v2 += v9 + ','; v2 += this.score + ','; v2 += v7 + ','; v2 += this.replaceAll(v5, ',', '') + ','; v2 += ','; v2 += String(this.lowIsBest); var v4 = this.xor(v2, v6, false); this.debug('key [' + v6.length + '] = ' + v6); this.debug('plain [' + v2.length + '] = ' + v2); this.debug('cipher [' + v4.length + '] = ' + v4); v4 = this.getRandomString(5) + v4 + this.getRandomString(5); var v3 = new LoadVars(); v3.gameId = this.gameId; v3.platformId = v9; v3.time = v8; v3.data = v4; v3.returnMessage = true; this.hitServer(ZattikkaHiScores.HS_ACTION, ZattikkaHiScores.EVENT_SUBMIT_HI_SCORE, v3); }; v2.twitterTweet = function () { var v2 = ZattikkaHiScores.SERVER_URL + ZattikkaHiScores.TW_ACTION + ZattikkaHiScores.EVENT_POST_TWEET; v2 += '&gameId=' + this.gameId; v2 += '&levelId=' + this.levelId; v2 += '&score=' + this.score; this.getURL(v2, '_blank'); this.submitScore(); }; v2.facebookFeed = function () { var v2 = new LoadVars(); v2.gameId = this.gameId; v2.levelId = this.levelId; v2.score = this.score; v2.sessionKey = this.fbSessionKey; v2.returnMessage = true; this.hitServer(ZattikkaHiScores.FB_ACTION, ZattikkaHiScores.EVENT_PUBLISH_HI_SCORE_FEED, v2); }; v2.facebookFeedExternal = function () { var v2 = ZattikkaHiScores.SERVER_URL + ZattikkaHiScores.FB_ACTION + ZattikkaHiScores.EVENT_PUBLISH_HI_SCORE_FEED_EXTERNAL; v2 += '&gameId=' + this.gameId; v2 += '&levelId=' + this.levelId; v2 += '&score=' + this.score; this.getURL(v2, '_blank'); }; v2.hitServer = function (stripesAction, stripesEvent, vars) { this.debug('[ZattikkaHiScores::hitServer] url = ' + ZattikkaHiScores.SERVER_URL + stripesAction + stripesEvent); var self = this; var v2 = new XML(); vars.addRequestHeader(['Content-Type', 'application/x-www-form-urlencoded; charset=utf-8']); vars.sendAndLoad(ZattikkaHiScores.SERVER_URL + stripesAction + stripesEvent, v2, 'POST'); v2.onLoad = function (success) { self.loadHandler(stripesEvent, success, this); }; }; v2.viewScore = function () { var v2 = ZattikkaHiScores.SERVER_URL + ZattikkaHiScores.HS_ACTION + ZattikkaHiScores.EVENT_VIEW_HI_SCORE; v2 += '&gameId=' + this.gameId; v2 += '&levelId=' + this.levelId; v2 += '&platformId=' + ZattikkaHiScores.HS_PLATFORM_WEB; v2 += '&gameCode=' + this.gameCode; if (this.g5UserExists) { v2 += '&userId=' + this.g5User[0]; } else { v2 += '&name=' + this.entryScreen.movNameManual.txtName.text; } this.getURL(v2, '_blank'); }; v2.loadHandler = function (stripesEvent, success, xml) { this.debug('[ZattikkaHiScores::loadHandler] stripesEvent = ' + stripesEvent + ', success = ' + success + ', xml = ' + xml.toString()); if (!success) { if (stripesEvent == ZattikkaHiScores.EVENT_GET_HI_SCORES) { this.caller.getHiScores_Error(); } else { this.showInfoMessage(ZattikkaHiScores.MSG_SERVER_ERROR, true); } } else { var v3 = xml.firstChild; var v2 = v3.attributes.code; switch (stripesEvent) { case ZattikkaHiScores.EVENT_SUBMIT_HI_SCORE: this.showInfoMessage(v3.attributes.msg, v2 == -1); if (this.fbUserExists && (v2 == 1 || v2 == 2)) { try { flash.external.ExternalInterface.call('refreshFBHiScores', this.score, this.levelId); flash.external.ExternalInterface.call('streamPublish_FBConnect', this.msg1, this.levelId); } catch (stripesEvent) { if (Error(stripesEvent) != null) { var err = Error(stripesEvent); } else { throw stripesEvent; } } } break; case ZattikkaHiScores.EVENT_PUBLISH_HI_SCORE_FEED: this.submitScore(); break; case ZattikkaHiScores.EVENT_GET_HI_SCORES: this.caller.getHiScores_Callback(xml); } } }; v2.xor = function (plain, key, traceChar) { var v7 = ''; var v4 = 0; var v2 = 0; while (v4 < plain.length) { if (v2 >= key.length) { v2 = 0; } var v3 = (plain.charCodeAt(v4) ^ key.charCodeAt(v2)) + 1; if (traceChar) { this.debug('charCode = ' + v3 + ' = ' + String.fromCharCode(v3)); } v7 += String.fromCharCode(v3); v4++; v2++; } return v7; }; v2.getRandom = function (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }; v2.getRandomString = function (len) { var v3 = ''; var v2 = 0; while (v2 < len) { v3 += String.fromCharCode(this.getRandom(48, 122)); ++v2; } return v3; }; v2.replaceAll = function (str, toReplace, replaceWith) { var v3 = ''; var v1 = 0; while (v1 < str.length) { if (str.charAt(v1) == toReplace) { v3 += replaceWith; } else { v3 += str.charAt(v1); } ++v1; } return v3; }; v2.debug = function (msg) { trace(msg); com.hexagonstar.util.debug.Debug.trace(msg); }; v1.VERSION_NUM = '1.0.16 (AS2)'; v1.LIVE_SERVER_URL = 'http://api.zattikka.com'; v1.TEST_SERVER_URL = 'http://api.staging.zattikka.com'; v1.SERVER_URL = ZattikkaHiScores.LIVE_SERVER_URL; v1.GFTP_URL = 'http://www.gamesfortheplanet.com'; v1.HS_PLATFORM_WEB = 0; v1.HS_PLATFORM_FACEBOOK = 1; v1.HS_ACTION = '/HiScore.action?'; v1.EVENT_SUBMIT_HI_SCORE = 'SubmitHiScore='; v1.EVENT_VIEW_HI_SCORE = 'ViewHiScore='; v1.EVENT_VIEW_HI_SCORES = 'ViewHiScores='; v1.EVENT_GET_HI_SCORES = 'GetHiScores='; v1.FB_ACTION = '/Facebook.action?'; v1.EVENT_PUBLISH_HI_SCORE_FEED = 'PublishHiScoreFeed='; v1.EVENT_PUBLISH_HI_SCORE_FEED_EXTERNAL = 'PublishHiScoreFeedExternal='; v1.TW_ACTION = '/Twitter.action?'; v1.EVENT_POST_TWEET = 'PostTweet='; v1.MSG_PLEASE_ENTER_NICKNAME = 'Please enter your nickname.'; v1.MSG_SUBMITTING_DETAILS = 'Submitting hi-score details to the server, please wait.'; v1.MSG_SERVER_ERROR = 'Could not contact server, please try again in a few minutes.'; v2.entryScreen = null; v2.infoScreen = null; v1.symbolName = 'ZattikkaHiScores'; v1.symbolOwner = ZattikkaHiScores; v2.className = 'ZattikkaHiScores'; v2.userManuallySet = false; ASSetPropFlags(_global.ZattikkaHiScores.prototype, null, 1); } #endinitclip } movieClip 128 __Packages.mx.skins.SkinElement { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.skins) { _global.mx.skins = new Object(); } if (!_global.mx.skins.SkinElement) { var v1 = function () { super(); }; mx.skins.SkinElement = v1; mx.skins.SkinElement extends MovieClip; var v2 = v1.prototype; v1.registerElement = function (name, className) { Object.registerClass(name, (className == undefined) ? mx.skins.SkinElement : className); _global.skinRegistry[name] = true; }; v2.__set__visible = function (visible) { this._visible = visible; }; v2.move = function (x, y) { this._x = x; this._y = y; }; v2.setSize = function (w, h) { this._width = w; this._height = h; }; ASSetPropFlags(mx.skins.SkinElement.prototype, null, 1); } #endinitclip } movieClip 129 __Packages.mx.styles.CSSTextStyles { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSTextStyles) { var v1 = function () {}; mx.styles.CSSTextStyles = v1; var v2 = v1.prototype; v1.addTextStyles = function (o, bColor) { o.addProperty('textAlign', function () { return this._tf.align; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty('fontWeight', function () { return (this._tf.bold != undefined) ? (this._tf.bold ? 'bold' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == 'bold'; }); if (bColor) { o.addProperty('color', function () { return this._tf.color; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty('fontFamily', function () { return this._tf.font; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty('textIndent', function () { return this._tf.indent; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty('fontStyle', function () { return (this._tf.italic != undefined) ? (this._tf.italic ? 'italic' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == 'italic'; }); o.addProperty('marginLeft', function () { return this._tf.leftMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty('marginRight', function () { return this._tf.rightMargin; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty('fontSize', function () { return this._tf.size; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty('textDecoration', function () { return (this._tf.underline != undefined) ? (this._tf.underline ? 'underline' : 'none') : undefined; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == 'underline'; }); o.addProperty('embedFonts', function () { return this._tf.embedFonts; }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); }; ASSetPropFlags(mx.styles.CSSTextStyles.prototype, null, 1); } #endinitclip } movieClip 130 __Packages.mx.styles.StyleManager { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.StyleManager) { var v1 = function () {}; mx.styles.StyleManager = v1; var v2 = v1.prototype; v1.registerInheritingStyle = function (styleName) { mx.styles.StyleManager.inheritingStyles[styleName] = true; }; v1.isInheritingStyle = function (styleName) { return mx.styles.StyleManager.inheritingStyles[styleName] == true; }; v1.registerColorStyle = function (styleName) { mx.styles.StyleManager.colorStyles[styleName] = true; }; v1.isColorStyle = function (styleName) { return mx.styles.StyleManager.colorStyles[styleName] == true; }; v1.registerColorName = function (colorName, colorValue) { mx.styles.StyleManager.colorNames[colorName] = colorValue; }; v1.isColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName] != undefined; }; v1.getColorName = function (colorName) { return mx.styles.StyleManager.colorNames[colorName]; }; v1.inheritingStyles = {'color': true, 'direction': true, 'fontFamily': true, 'fontSize': true, 'fontStyle': true, 'fontWeight': true, 'textAlign': true, 'textIndent': true}; v1.colorStyles = {'barColor': true, 'trackColor': true, 'borderColor': true, 'buttonColor': true, 'color': true, 'dateHeaderColor': true, 'dateRollOverColor': true, 'disabledColor': true, 'fillColor': true, 'highlightColor': true, 'scrollTrackColor': true, 'selectedDateColor': true, 'shadowColor': true, 'strokeColor': true, 'symbolBackgroundColor': true, 'symbolBackgroundDisabledColor': true, 'symbolBackgroundPressedColor': true, 'symbolColor': true, 'symbolDisabledColor': true, 'themeColor': true, 'todayIndicatorColor': true, 'shadowCapColor': true, 'borderCapColor': true, 'focusColor': true}; v1.colorNames = {'black': 0, 'white': 16777215, 'red': 16711680, 'green': 65280, 'blue': 255, 'magenta': 16711935, 'yellow': 16776960, 'cyan': 65535, 'haloGreen': 8453965, 'haloBlue': 2881013, 'haloOrange': 16761344}; v1.TextFormatStyleProps = {'font': true, 'size': true, 'color': true, 'leftMargin': false, 'rightMargin': false, 'italic': true, 'bold': true, 'align': true, 'indent': true, 'underline': false, 'embedFonts': false}; v1.TextStyleMap = {'textAlign': true, 'fontWeight': true, 'color': true, 'fontFamily': true, 'textIndent': true, 'fontStyle': true, 'lineHeight': true, 'marginLeft': true, 'marginRight': true, 'fontSize': true, 'textDecoration': true, 'embedFonts': true}; ASSetPropFlags(mx.styles.StyleManager.prototype, null, 1); } #endinitclip } movieClip 131 __Packages.mx.styles.CSSStyleDeclaration { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.styles) { _global.mx.styles = new Object(); } if (!_global.mx.styles.CSSStyleDeclaration) { var v1 = function () {}; mx.styles.CSSStyleDeclaration = v1; var v2 = v1.prototype; v2.__getTextFormat = function (tf, bAll) { var v5 = false; if (this._tf != undefined) { var v2; for (v2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || mx.styles.StyleManager.TextFormatStyleProps[v2]) { if (tf[v2] == undefined) { var v3 = this._tf[v2]; if (v3 != undefined) { tf[v2] = v3; } else { v5 = true; } } } } return v5; } v5 = true; return v5; }; v2.getStyle = function (styleProp) { var v2 = this[styleProp]; var v3 = mx.styles.StyleManager.getColorName(v2); return (v3 == undefined) ? v2 : v3; }; v1.classConstruct = function () { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return true; }; v1.classConstructed = mx.styles.CSSStyleDeclaration.classConstruct(); v1.CSSTextStylesDependency = mx.styles.CSSTextStyles; ASSetPropFlags(mx.styles.CSSStyleDeclaration.prototype, null, 1); } #endinitclip } movieClip 132 __Packages.com.hexagonstar.util.debug.Debug { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.hexagonstar) { _global.com.hexagonstar = new Object(); } if (!_global.com.hexagonstar.util) { _global.com.hexagonstar.util = new Object(); } if (!_global.com.hexagonstar.util.debug) { _global.com.hexagonstar.util.debug = new Object(); } if (!_global.com.hexagonstar.util.debug.Debug) { var v1 = function () {}; com.hexagonstar.util.debug.Debug = v1; var v2 = v1.prototype; v1.trace = function () { var v2 = (arguments[1] != undefined) ? arguments[1] : 1; if (v2 >= com.hexagonstar.util.debug.Debug._filterLevel && v2 < 7) { com.hexagonstar.util.debug.Debug.send('onData', arguments[0], v2, 0); } }; v1.traceObj = function (obj, depth, level) { if (!depth) { depth = 64; } if (!level) { level = 1; } if (level >= com.hexagonstar.util.debug.Debug._filterLevel && level < 7) { com.hexagonstar.util.debug.Debug.send('onData', obj, level, depth); } }; v1.inspect = function (obj) { com.hexagonstar.util.debug.Debug.send('onInspect', obj, 1, -1); }; v1.hexDump = function (obj) { com.hexagonstar.util.debug.Debug.send('onHexDump', obj, 0, 0); }; v1.clear = function () { com.hexagonstar.util.debug.Debug.trace('[%CLR%]', 5); }; v1.delimiter = function () { com.hexagonstar.util.debug.Debug.trace('[%DLT%]', 5); }; v1.pause = function () { com.hexagonstar.util.debug.Debug.trace('[%PSE%]', 5); }; v1.time = function () { com.hexagonstar.util.debug.Debug.trace('[%TME%]', 5); }; v1.monitor = function (stage, topFPS, pollInterval) { if (com.hexagonstar.util.debug.Debug._isPollingFPS) { com.hexagonstar.util.debug.Debug.stop(); } if (com.hexagonstar.util.debug.Debug._isEnabled && !com.hexagonstar.util.debug.Debug._fpsMeter) { com.hexagonstar.util.debug.Debug._isPollingFPS = true; com.hexagonstar.util.debug.Debug._topFPS = topFPS; com.hexagonstar.util.debug.Debug._stage = stage; com.hexagonstar.util.debug.Debug._fpsMeter = new com.hexagonstar.util.debug.FPSMeter(com.hexagonstar.util.debug.Debug._stage, pollInterval); com.hexagonstar.util.debug.Debug._fpsMeter.start(); } }; v1.mark = function (color) { if (!color) { color = 16711935; } com.hexagonstar.util.debug.Debug.send('onMarker', color, 1, -1); }; v1.stop = function () { if (com.hexagonstar.util.debug.Debug._fpsMeter) { com.hexagonstar.util.debug.Debug._isPollingFPS = false; com.hexagonstar.util.debug.Debug._fpsMeter.stop(); com.hexagonstar.util.debug.Debug._fpsMeter = null; com.hexagonstar.util.debug.Debug._stage = null; } }; v1.timerStart = function (title) { if (com.hexagonstar.util.debug.Debug._isEnabled) { if (!com.hexagonstar.util.debug.Debug._stopWatch) { com.hexagonstar.util.debug.Debug._stopWatch = new com.hexagonstar.util.debug.StopWatch(); } com.hexagonstar.util.debug.Debug._stopWatch.start(title); } }; v1.timerStop = function () { if (com.hexagonstar.util.debug.Debug._stopWatch) { com.hexagonstar.util.debug.Debug._stopWatch.stop(); } }; v1.timerReset = function () { if (com.hexagonstar.util.debug.Debug._stopWatch) { com.hexagonstar.util.debug.Debug._stopWatch.reset(); } }; v1.timerInMilliSeconds = function () { if (com.hexagonstar.util.debug.Debug._stopWatch) { com.hexagonstar.util.debug.Debug.trace(com.hexagonstar.util.debug.Debug._stopWatch.__get__timeInMilliSeconds() + 'ms'); } }; v1.timerInSeconds = function () { if (com.hexagonstar.util.debug.Debug._stopWatch) { com.hexagonstar.util.debug.Debug.trace(com.hexagonstar.util.debug.Debug._stopWatch.__get__timeInSeconds() + 's'); } }; v1.timerToString = function () { if (com.hexagonstar.util.debug.Debug._stopWatch) { com.hexagonstar.util.debug.Debug.trace(com.hexagonstar.util.debug.Debug._stopWatch.toString()); } }; v1.timerStopToString = function (reset) { if (com.hexagonstar.util.debug.Debug._stopWatch) { com.hexagonstar.util.debug.Debug._stopWatch.stop(); com.hexagonstar.util.debug.Debug.trace(com.hexagonstar.util.debug.Debug._stopWatch.toString()); if (reset) { com.hexagonstar.util.debug.Debug._stopWatch.reset(); } } }; v1.__get__filterLevel = function () { return com.hexagonstar.util.debug.Debug._filterLevel; }; v1.__set__filterLevel = function (v) { if (v >= 0 && v < 5) { com.hexagonstar.util.debug.Debug._filterLevel = v; } return com.hexagonstar.util.debug.Debug.__get__filterLevel(); }; v1.__get__enabled = function () { return com.hexagonstar.util.debug.Debug._isEnabled; }; v1.__set__enabled = function (v) { com.hexagonstar.util.debug.Debug._isEnabled = v; return com.hexagonstar.util.debug.Debug.__get__enabled(); }; v1.onFPSUpdate = function () { com.hexagonstar.util.debug.Debug.send('onFPS', com.hexagonstar.util.debug.Debug._fpsMeter.__get__fps() + ',' + com.hexagonstar.util.debug.Debug._topFPS + ',' + com.hexagonstar.util.debug.Debug._fpsMeter.__get__frt() + ',0'); }; v1.onStatus = function () {}; v1.send = function (m, d, l, r) { if (com.hexagonstar.util.debug.Debug._isEnabled) { if (!com.hexagonstar.util.debug.Debug._isConnected) { com.hexagonstar.util.debug.Debug._isConnected = true; com.hexagonstar.util.debug.Debug._connection = new LocalConnection(); } if (r == undefined) { r = 0; } var v2 = 0; if (typeof d == 'string') { v2 = (String(d)).length; } else { if (typeof d == 'object') { } } if (v2 > 39000) { com.hexagonstar.util.debug.Debug.storeDataLSO(m, d); m = 'onLargeData'; d = null; } var v4 = com.hexagonstar.util.debug.Debug._connection.send('_alcon_lc', m, d, l, r, ''); if (!v4) { com.hexagonstar.util.debug.Debug.trace('[%ERR%]'); } } }; v1.storeDataLSO = function (m, d) { var v1 = SharedObject.getLocal('alcon', '/'); v1.data.alconMethod = m; v1.data.alconData = d; try { var v2 = String(v1.flush()); if (v2 == 'pending') { return undefined; } } catch (v0) { if (Error(v0) != null) { var e = Error(v0); } else { throw v0; } } }; v1.LEVEL_DEBUG = 0; v1.LEVEL_INFO = 1; v1.LEVEL_WARN = 2; v1.LEVEL_ERROR = 3; v1.LEVEL_FATAL = 4; v1._filterLevel = 0; v1._isConnected = false; v1._isPollingFPS = false; v1._isEnabled = true; v1._topFPS = 25; v1.addProperty('enabled', v1.__get__enabled, v1.__set__enabled); v1.addProperty('filterLevel', v1.__get__filterLevel, v1.__set__filterLevel); ASSetPropFlags(com.hexagonstar.util.debug.Debug.prototype, null, 1); } #endinitclip } movieClip 133 __Packages.com.hexagonstar.util.debug.FPSMeter { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.hexagonstar) { _global.com.hexagonstar = new Object(); } if (!_global.com.hexagonstar.util) { _global.com.hexagonstar.util = new Object(); } if (!_global.com.hexagonstar.util.debug) { _global.com.hexagonstar.util.debug = new Object(); } if (!_global.com.hexagonstar.util.debug.FPSMeter) { var v1 = function (stage, pollInterval) { this._stage = stage; this._pollInterval = !pollInterval ? 500 : pollInterval; this.reset(); }; com.hexagonstar.util.debug.FPSMeter = v1; var v2 = v1.prototype; v2.start = function () { if (!this._isRunning) { this._isRunning = true; var ref = this; this._intervalID = setInterval(function () { com.hexagonstar.util.debug.Debug.onFPSUpdate(); }, this._pollInterval); this._stage.onEnterFrame = function () { var v1 = getTimer(); ++ref._delay; if (ref._delay >= ref._delayMax) { ref._delay = 0; ref._fps = 1000 * ref._delayMax / (v1 - ref._prev); ref._prev = v1; } ref._frt = v1 - ref._ms; ref._ms = v1; }; } }; v2.stop = function () { if (this._isRunning) { clearInterval(this._intervalID); this.reset(); } }; v2.reset = function () { this._fps = 0; this._frt = 0; this._ms = 0; this._isRunning = false; }; v2.__get__fps = function () { return this._fps; }; v2.__get__frt = function () { return this._frt; }; v2._delayMax = 10; v2.addProperty('fps', v2.__get__fps, function () {}); v2.addProperty('frt', v2.__get__frt, function () {}); ASSetPropFlags(com.hexagonstar.util.debug.FPSMeter.prototype, null, 1); } #endinitclip } movieClip 134 __Packages.com.hexagonstar.util.debug.StopWatch { #initclip if (!_global.com) { _global.com = new Object(); } if (!_global.com.hexagonstar) { _global.com.hexagonstar = new Object(); } if (!_global.com.hexagonstar.util) { _global.com.hexagonstar.util = new Object(); } if (!_global.com.hexagonstar.util.debug) { _global.com.hexagonstar.util.debug = new Object(); } if (!_global.com.hexagonstar.util.debug.StopWatch) { var v1 = function () { this.reset(); }; com.hexagonstar.util.debug.StopWatch = v1; var v2 = v1.prototype; v2.start = function (title) { if (!this._started) { this._title = title ? title : ''; this._started = true; this._startTimeKeys.push(getTimer()); } }; v2.stop = function () { if (this._started) { var v2 = getTimer(); this._stopTimeKeys[this._startTimeKeys.length - 1] = v2; this._started = false; } }; v2.reset = function () { this._startTimeKeys = []; this._stopTimeKeys = []; this._started = false; }; v2.toString = function () { var v5 = '\n ********************* [STOPWATCH] *********************'; if (this._title != '') { v5 += '\n * ' + this._title; } var v2 = 0; v2 = 0; while (v2 < this._startTimeKeys.length) { var v4 = this._startTimeKeys[v2]; var v3 = this._stopTimeKeys[v2]; v5 += '\n * started [' + this.format(v4) + 'ms] stopped [' + this.format(v3) + 'ms] time [' + this.format(v3 - v4) + 'ms]'; ++v2; } if (v2 == 0) { v5 += '\n * never started.'; v5 += '\n *******************************************************'; return v5; } v5 += '\n * total runnning time: ' + this.__get__timeInSeconds() + 's'; v5 += '\n *******************************************************'; return v5; }; v2.__get__started = function () { return this._started; }; v2.__get__timeInMilliSeconds = function () { if (this._started) { this._stopTimeKeys[this._startTimeKeys.length - 1] = getTimer(); } var v3 = 0; var v2 = 0; while (v2 < this._startTimeKeys.length) { v3 += this._stopTimeKeys[v2] - this._startTimeKeys[v2]; ++v2; } return v3; }; v2.__get__timeInSeconds = function () { return this.__get__timeInMilliSeconds() / 1000; }; v2.format = function (v) { var v2 = ''; var v3 = (v.toString()).length; var v1 = 0; while (v1 < 5 - v3) { v2 += '0'; ++v1; } return v2 + v; }; v2._started = false; v2.addProperty('started', v2.__get__started, function () {}); v2.addProperty('timeInMilliSeconds', v2.__get__timeInMilliSeconds, function () {}); v2.addProperty('timeInSeconds', v2.__get__timeInSeconds, function () {}); ASSetPropFlags(com.hexagonstar.util.debug.StopWatch.prototype, null, 1); } #endinitclip } frame 2 { removeMovieClip(loader_noads1); removeMovieClip(loader_ads1); stop(); } movieClip 137 { } movieClip 139 { } movieClip 140 { frame 1 { _visible = false; stop(); } } movieClip 152 { } movieClip 154 { } movieClip 156 { } movieClip 158 { } movieClip 160 { } movieClip 161 { frame 46 { stop(); } } movieClip 162 { frame 1 { if (_root.effects == false) { _visible = false; } } frame 145 { stop(); _parent.gotoAndStop(1); } } movieClip 164 { } movieClip 165 { frame 60 { stop(); } } movieClip 167 { frame 61 { stop(); } } movieClip 168 { frame 60 { stop(); } } movieClip 169 { frame 60 { stop(); } } movieClip 170 { frame 61 { stop(); } } movieClip 171 { frame 60 { stop(); } } movieClip 172 { } movieClip 173 { frame 1 { if (_root.effects == false) { _visible = false; } } frame 155 { stop(); _parent.gotoAndStop(1); } } movieClip 175 { } movieClip 176 { } movieClip 177 { frame 60 { stop(); } } movieClip 178 { frame 1 { if (_root.effects == false) { _visible = false; } } frame 155 { stop(); _parent.gotoAndStop(1); } } movieClip 180 { frame 1 { if (_root.effects == false) { _visible = false; } } frame 155 { stop(); _parent.gotoAndStop(1); } } movieClip 181 { frame 1 { stop(); } frame 5 { gotoAndStop(1); } frame 14 { gotoAndStop(1); } frame 24 { gotoAndStop(1); } frame 34 { gotoAndStop(1); } frame 42 { gotoAndStop(1); } frame 50 { gotoAndStop(1); } frame 58 { gotoAndStop(1); } frame 66 { gotoAndStop(1); } frame 74 { gotoAndStop(1); } frame 82 { stop(); } frame 90 { stop(); } frame 98 { stop(); } frame 106 { gotoAndStop(1); } frame 113 { gotoAndStop(1); } frame 124 { stop(); } } // unknown tag 88 length 88 button 186 { on (release) { getURL('http://www.bacon-games.com', '_blank'); } } button 190 { on (release) { getURL('http://xjordanx.newgrounds.com/', '_blank'); } } button 197 { on (release) { getURL('http://www.facebook.com/BaconGames?v=app_4949752878', '_blank'); } } // unknown tag 88 length 145 movieClip 201 { frame 1 { stop(); } } movieClip 203 { } movieClip 204 { } movieClip 205 { frame 1 { stop(); } } movieClip 207 { } button 209 { on (release) { gotoAndStop('play'); } } button 212 { on (release) { gotoAndStop('options'); } } button 215 { on (release) { gotoAndStop('instructions'); } } button 218 { on (release) { getURL('http://www.gimme5games.com?ref=four-remaining_MOREGAMES', '_blank'); } } button 220 { on (release) { getURL('http://www.gimme5games.com/hi-scores/four-remaining', '_blank'); } } button 222 { on (release) { getURL('http://www.gimme5games.com?ref=four-remaining_TITLE', '_blank'); } } button 228 { on (release) { _root.gotoAndStop('play'); } } button 231 { on (release) { _root.goto_hs = true; _root.gotoAndStop('play'); } } button 234 { on (release) { gotoAndStop(1); } } button 236 { on (release) { _root.resume_lvl = true; _root.gotoAndStop('play'); } } movieClip 238 { } movieClip 248 { } button 250 { on (release) { nextFrame(); } } movieClip 254 { } movieClip 256 { } movieClip 261 { } button 264 { on (release) { if (_parent._parent.mute == 1) { trace('mute'); _parent._parent.music.song.stop(); _parent._parent.mute = 0; } else { _parent._parent.music.song.play(); _parent._parent.mute = 1; trace('unmute'); } nextFrame(); } } button 266 { on (release) { if (_parent._parent.mute == 1) { trace('mute'); _parent._parent.music.song.stop(); _parent._parent.mute = 0; } else { _parent._parent.music.song.play(); _parent._parent.mute = 1; trace('unmute'); } nextFrame(); } } movieClip 267 { frame 1 { stop(); } frame 3 { gotoAndStop(1); } } button 270 { on (release) { nextFrame(); } } movieClip 275 { frame 1 { stop(); _quality = 'BEST'; } frame 2 { _quality = 'MEDIUM'; } frame 3 { _quality = 'LOW'; } frame 4 { gotoAndStop(1); } } button 278 { on (release) { nextFrame(); } } movieClip 281 { frame 1 { stop(); _root.effects = true; } frame 2 { _root.effects = false; } frame 3 { gotoAndStop(1); } } movieClip 282 { frame 1 { stop(); } frame 6 { lvl_to_go = _root.local_data.data.lvl_to_go; if (lvl_to_go > 1) { resume._visible = true; resume_fake._visible = false; } else { resume._visible = false; resume_fake._visible = true; } } instance info of movieClip 248 { onClipEvent (release) { this._visible = false; } } instance info of movieClip 261 { onClipEvent (release) { this._visible = false; } } } movieClip 283 { frame 1 { _visible = false; } } movieClip 285 { } movieClip 286 { frame 1 { stop(); } frame 2 { _root.restart.gotoAndPlay(1); } } movieClip 287 { frame 1 { _alpha = 0; } } movieClip 289 { } movieClip 291 { } movieClip 292 { frame 1 { stop(); } } movieClip 294 { frame 1 { _alpha = 0; } } movieClip 295 { frame 1 { _alpha = 0; } } movieClip 296 { frame 1 { stop(); } } movieClip 298 { frame 1 { _alpha = 0; } } movieClip 300 { } movieClip 301 { frame 1 { stop(); } frame 2 { _root.restart.gotoAndPlay(1); } } movieClip 302 { frame 1 { stop(); } frame 2 { _root.restart.gotoAndPlay(1); } } movieClip 304 { } movieClip 305 { frame 1 { stop(); } } movieClip 307 { frame 1 { stop(); } frame 50 { _parent.nextFrame(); } } movieClip 308 { } movieClip 310 { frame 17 { stop(); } } movieClip 314 { frame 1 { stop(); _parent.swapDepths(my_depth); } frame 2 { stop(); my_depth = _parent.getDepth(); _parent.swapDepths(1000); } } movieClip 315 { frame 1 { ++_parent.todo; b1.onPress = function () { if (_parent.row_ini != 1) { _parent.row_end = _parent.todo / 4; _parent.row_ini = 1; } if (_parent.prev_one == 0) { --_parent.todo; _parent._parent.score += 1; nextFrame(); _parent.prev_one = 1; } else { if (_parent.prev_one == 1) { if (hitTest(_parent.hit1_1) or hitTest(_parent.hit1_2)) { trace('hit'); --_parent.todo; _parent._parent.score += 1; nextFrame(); _parent.prev_one = 2; } else { _parent.hit1_2.play(); _parent.hit1_1.play(); } } else { _parent._parent.hud.mistake.play(); } } }; b1.onRollOver = function () { if (_parent.prev_one == 0) { ani.gotoAndStop(2); } else { if (hitTest(_parent.hit1_1) or hitTest(_parent.hit1_2) and _parent.prev_one == 1) { ani.gotoAndStop(2); } } }; b1.onRollOut = function () { if (hitTest(_parent.hit1_1) or hitTest(_parent.hit1_2) and _parent.prev_one == 1 or _parent.prev_one == 0) { ani.gotoAndStop(1); } }; stop(); } frame 2 { _parent.hit1_1._x = _x; _parent.hit1_1._y = _y; _parent.hit1_2._x = _x; _parent.hit1_2._y = _y; _parent.lvl_started = 1; removeMovieClip(this); } } movieClip 316 { } movieClip 318 { frame 17 { stop(); } } movieClip 322 { frame 1 { stop(); _parent.swapDepths(my_depth); } frame 2 { stop(); my_depth = _parent.getDepth(); _parent.swapDepths(1000); } } movieClip 323 { frame 1 { ++_parent.todo; b3.onPress = function () { if (hitTest(_parent.hit1_1) or hitTest(_parent.hit1_2)) { trace('hit'); if (_parent.prev_one == 2) { --_parent.todo; _parent._parent.score += 2; nextFrame(); _parent.prev_one = 3; } else { _parent._parent.hud.mistake.play(); } } else { if (_parent.prev_one == 2) { _parent.hit1_2.play(); _parent.hit1_1.play(); } else { _parent._parent.hud.mistake.play(); } } }; b3.onRollOver = function () { if (hitTest(_parent.hit1_1 or hitTest(_parent.hit1_2)) and _parent.prev_one == 2) { ani.gotoAndStop(2); } }; b3.onRollOut = function () { if (hitTest(_parent.hit1_1 or hitTest(_parent.hit1_2)) and _parent.prev_one == 2) { ani.gotoAndStop(1); } }; stop(); } frame 2 { _parent.hit2_1._x = _x; _parent.hit2_1._y = _y; _parent.hit2_2._x = _x; _parent.hit2_2._y = _y; _parent.hit1_1._x = -500; _parent.hit1_1._y = -500; _parent.hit1_2._x = -500; _parent.hit1_2._y = -500; removeMovieClip(this); } } movieClip 324 { } movieClip 326 { frame 17 { stop(); } } movieClip 331 { frame 1 { stop(); _parent.swapDepths(my_depth); } frame 2 { stop(); my_depth = _parent.getDepth(); _parent.swapDepths(1000); } } movieClip 348 { frame 1 { stop(); _xscale = _parent._parent.level_xscale; _rotation = -_parent._parent.level_rotation; if (_parent._parent.do_row == 0) { _visible = false; } } } movieClip 349 { frame 1 { ++_parent.todo; onEnterFrame = function () { if (random(100) < 25) { my_item = _parent.my_item; my_item_mc.gotoAndStop(my_item); ++_parent.my_item; onEnterFrame = function () {}; } }; b4.onPress = function () { if (hitTest(_parent.hit2_1) or hitTest(_parent.hit2_2) or hitTest(_parent.hit3_1) or hitTest(_parent.hit3_2)) { if (_parent.prev_one == 3) { _parent._parent.score += 4; --_parent.todo; nextFrame(); _parent.prev_one = 0; if ((my_item == 9 or my_item > 9) and _parent.do_row == 1 and _parent.row_broken != 1) { if (my_item == 9) { _parent.row_collected = my_item - 1; trace('row started'); _parent.row_started = 1; _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('row_started', 'row_started_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; } _parent.extra_bonus = 0; _parent.multi_bonus = 0; if (my_item == _parent.row_collected + 1) { trace('row mytime = ' + my_item + ' end ' + _parent.row_end); if (my_item != _parent.row_end and my_item != 9) { _parent._parent.sounds.gotoAndStop('tonleiter' + (my_item - 8)); } if (my_item == _parent.row_end) { trace('row end'); _parent._parent.score += 500; _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; _parent._parent.i += 2; _parent._parent.hud.logo.logger._y += 18; _parent._parent.hud.logo.logger.attachMovie('row_ended', 'row_ended_' + i, 1000 + i, {'_x': 0, '_y': -18 * (i + 1)}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; _parent.row_started = 0; } } else { _parent.row_broken = 1; trace('row bonus broken'); _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('row_broken', 'row_broken_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; } _parent.row_collected = my_item; } else { if ((my_item == 1 or my_item > 1 and my_item < 4) and _parent.do_row == 1) { ++_parent.extra_bonus; _parent.multi_bonus = 0; if (_parent.row_started == 1) { _parent.row_started = 0; _parent.row_broken = 1; trace('row bonus broken'); _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('row_broken', 'row_broken_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; } trace('extra bonus = ' + _parent.extra_bonus); switch (_parent.extra_bonus) { case 1: trace('extra bonus = 1'); _parent._parent.score += 15; _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('eb15', 'eb15_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; break; case 2: trace('extra bonus = 2'); _parent._parent.score += 50; _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('eb50', 'eb50_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; break; case 3: trace('end of extra bonus'); _parent._parent.score += 100; _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('eb100', 'eb100_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; } } else { if ((my_item == 4 or my_item > 4 and my_item < 9) and _parent.do_row == 1) { ++_parent.multi_bonus; _parent.extra_bonus = 0; if (_parent.row_started == 1) { _parent.row_started = 0; _parent.row_broken = 1; trace('row bonus broken'); _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('row_broken', 'row_broken_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; } trace('multi bonus = ' + _parent.multi_bonus); switch (_parent.multi_bonus) { case 1: trace('multi bonus = 1'); _parent._parent.score *= 1; _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('mp1', 'mp2_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; break; case 2: trace('multi bonus = 2 '); _parent._parent.score *= 2; _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('mp2', 'mp2_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; break; case 3: trace('multi bonus = 3'); _parent._parent.score *= 3; _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('mp3', 'mp3_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; break; case 4: trace('multi bonus = 4'); _parent._parent.score *= 4; _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('mp4', 'mp4_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; break; case 5: trace('end of multi bonus'); _parent._parent.score *= 5; _parent._parent.hud.logo.gotoAndStop('log'); i = _parent._parent.i; ++_parent._parent.i; _parent._parent.hud.logo.logger.attachMovie('mp5', 'mp5_' + i, 1000 + i, {'_x': 0, '_y': -18 * i}); trace('i = ' + i); _parent._parent.hud.logo.logger._y += 18; } } else { if (_parent.do_row == 0 and _parent.todo >= 2 and _parent.lvl_started == 1) { trace('ein feld ohne boni ???'); _parent._parent.sounds.gotoAndStop('tonleiter1'); } else { trace('ein totes rowfeld ? oder das letzte feld ohne boni'); } } } } } else { _parent._parent.hud.mistake.play(); } } else { if (_parent.prev_one == 3 and (my_item == _parent.collected + 1 or _parent.do_row == 0)) { trace('argh'); _parent.hit2_2.play(); _parent.hit2_1.play(); _parent.hit3_2.play(); _parent.hit3_1.play(); } else { _parent._parent.hud.mistake.play(); } } }; b4.onRollOver = function () { if ((hitTest(_parent.hit2_1) or hitTest(_parent.hit2_2) or hitTest(_parent.hit3_1) or hitTest(_parent.hit3_2)) and my_item == _parent.collected + 1) { ani.gotoAndStop(2); } }; b4.onRollOut = function () { if ((hitTest(_parent.hit2_1) or hitTest(_parent.hit2_2) or hitTest(_parent.hit3_1) or hitTest(_parent.hit3_2)) and my_item == _parent.collected + 1) { ani.gotoAndStop(1); } }; stop(); } frame 2 { _parent.collected = my_item; _parent.hit3_1._x = -500; _parent.hit3_1._y = -500; _parent.hit3_2._x = -500; _parent.hit3_2._y = -500; _parent.hit2_1._x = -500; _parent.hit2_1._y = -500; _parent.hit2_2._x = -500; _parent.hit2_2._y = -500; _parent.hit1_1._x = -500; _parent.hit1_1._y = -500; _parent.hit1_2._x = -500; _parent.hit1_2._y = -500; removeMovieClip(this); } } movieClip 354 { frame 1 { onEnterFrame = function () { if (_parent.prev_one == 0) { gotoAndStop(1); } else { if (_parent.prev_one == 1) { gotoAndStop(2); } else { if (_parent.prev_one == 2) { gotoAndStop(3); } else { if (_parent.prev_one == 3) { gotoAndStop(4); } } } } }; } } movieClip 359 { frame 1 { onEnterFrame = function () { if (_parent.prev_one == 0) { gotoAndStop(1); } else { if (_parent.prev_one == 1) { gotoAndStop(2); } else { if (_parent.prev_one == 2) { gotoAndStop(3); } else { if (_parent.prev_one == 3) { gotoAndStop(4); } } } } }; } } movieClip 360 { } movieClip 362 { frame 17 { stop(); } } movieClip 367 { frame 1 { stop(); _parent.swapDepths(my_depth); } frame 2 { stop(); my_depth = _parent.getDepth(); _parent.swapDepths(1000); } } movieClip 368 { frame 1 { ++_parent.todo; b3.onPress = function () { if (hitTest(_parent.hit1_1) or hitTest(_parent.hit1_2)) { trace('hit'); if (_parent.prev_one == 2) { --_parent.todo; _parent._parent.score += 2; nextFrame(); _parent.prev_one = 3; } else { _parent._parent.hud.mistake.play(); } } else { if (_parent.prev_one == 2) { _parent.hit1_2.play(); _parent.hit1_1.play(); } else { _parent._parent.hud.mistake.play(); } } }; b3.onRollOver = function () { if (hitTest(_parent.hit1_1) or hitTest(_parent.hit1_2)) { ani.gotoAndStop(2); } }; b3.onRollOut = function () { if (hitTest(_parent.hit1_1) or hitTest(_parent.hit1_2)) { ani.gotoAndStop(1); } }; stop(); } frame 2 { _parent.hit3_1._x = _x; _parent.hit3_1._y = _y; _parent.hit3_2._x = _x; _parent.hit3_2._y = _y; _parent.hit1_1._x = -500; _parent.hit1_1._y = -500; _parent.hit1_2._x = -500; _parent.hit1_2._y = -500; removeMovieClip(this); } } movieClip 376 { } movieClip 379 { } button 383 { on (release) { _parent.gotoAndStop(2); } } movieClip 384 { frame 1 { function resetLevel_vars() { if (this._currentframe < 26) { _root.local_data.data.lvl_to_go = this._currentframe; } _root.local_data.flush(); lvl_started = 0; _parent.score = 0; _parent.i = 1; _parent.hud.logo.gotoAndStop(1); row_ini = 0; row_end = 0; row_collected = 0; row_started = 0; row_broken = 0; extra_bonus = 0; multi_bonus = 0; my_item = 1; collected = 0; prev_one = 0; my_timer = 0; _parent.hud.timer_container.gotoAndStop(1); todo = 0; manip_lvl = random(100); if (manip == 0) { manip_lvl = 99; } if (manip_lvl < 25) { trace('<25'); level_xscale = -100; level_rotation = 0; } else { if (manip_lvl < 50) { trace('<50'); level_rotation = 180; level_xscale = 100; } else { if (manip_lvl < 75) { trace('<75'); level_rotation = 180; level_xscale = -100; } else { trace('<100'); level_xscale = 100; level_rotation = 0; } } } _xscale = level_xscale; _rotation = level_rotation; } lvl_started = 0; onEnterFrame = function () { if (todo <= 0 and lvl_started == 1) { trace('won'); next_lvl.play(); my_timer = 0; _parent.hud.timer_container.gotoAndStop(1); if (_parent.sounds._currentframe == 1) { _parent.sounds.gotoAndStop('next_lvl'); } lvl_started = 0; } }; if (_root.goto_hs == true) { gotoAndStop('highscore_lvl'); _root.goto_hs = false; } else { if (_root.resume_lvl == true) { frame_to_go = _root.local_data.data.lvl_to_go; if (frame_to_go != 1) { gotoAndStop(frame_to_go); } _root.resume_lvl = false; } else { play(); } } } frame 2 { manip = 0; do_row = 0; resetLevel_vars(); stop(); } instance info of movieClip 248 { onClipEvent (release) { this._visible = false; } } frame 3 { manip = 0; do_row = 0; resetLevel_vars(); nextFrame(); } frame 5 { manip = 0; do_row = 0; resetLevel_vars(); nextFrame(); } frame 7 { manip = 0; do_row = 0; resetLevel_vars(); nextFrame(); } frame 9 { manip = 0; do_row = 0; resetLevel_vars(); nextFrame(); } frame 11 { manip = 1; do_row = 0; resetLevel_vars(); nextFrame(); } frame 13 { manip = 0; do_row = 1; resetLevel_vars(); nextFrame(); } instance info of movieClip 261 { onClipEvent (release) { this._visible = false; } } frame 15 { manip = 0; do_row = 1; resetLevel_vars(); nextFrame(); } frame 17 { manip = 0; do_row = 1; resetLevel_vars(); nextFrame(); } frame 19 { manip = 1; do_row = 1; resetLevel_vars(); nextFrame(); } frame 21 { manip = 0; resetLevel_vars(); stop(); } instance info of movieClip 376 { onClipEvent (release) { _parent.manip = 0; _parent.do_row = 1; _parent.resetLevel_vars(); _parent.my_timer = 30; _parent.nextFrame(); } } frame 23 { manip = 1; do_row = 1; resetLevel_vars(); my_timer = 35; trace('my_timer reset'); nextFrame(); } frame 25 { manip = 0; do_row = 0; resetLevel_vars(); } instance info of movieClip 379 { onClipEvent (release) { _parent.nextFrame(); } } frame 26 { manip = 1; do_row = 1; resetLevel_vars(); my_timer = 100; trace('my_timer reset'); onEnterFrame = function () { if (todo <= 0 and lvl_started == 1) { trace('won'); nextFrame(); final_score = _parent.score + _parent.mytime * 10; my_timer = 0; _parent.hud.timer_container.gotoAndStop(1); lvl_started = 0; } }; nextFrame(); } frame 28 { manip = 0; do_row = 0; resetLevel_vars(); if (_parent.sounds._currentframe == 1) { _parent.sounds.gotoAndStop('next_lvl'); } hiScores.setDetails(456, 0, 'four-remaining', 'zWqyJDPsPHbPbAW', false, final_score, final_score, 'points!', true); } instance hiScores of movieClip 127 ZattikkaHiScores { onClipEvent (construct) { enabled = true; visible = true; minHeight = 0; minWidth = 0; } } frame 32 { resetLevel_vars(); stop(); _yscale = 50; _xscale = 50; } } movieClip 387 { } movieClip 392 { } movieClip 393 { frame 1 { stop(); } frame 2 { _root.restart.gotoAndPlay(1); } } movieClip 397 { frame 1 { if (timeini != 1) { current_time = 0; thistime = 0; lasttime = getTimer() / 1000; timeini = 1; } thistime = getTimer() / 1000; delta_time = thistime - lasttime; current_time += delta_time; mytime = Math.round(current_time * 100) / 100; lasttime = thistime; play(); } frame 2 { gotoAndPlay(1); } } movieClip 399 { } movieClip 400 { frame 74 { stop(); } } button 403 { on (release) { trace('click'); } } button 408 { on (release) { togo = _parent._parent._parent.all._currentframe - 1; trace(togo); _parent._parent._parent.all.gotoAndPlay(togo); } } movieClip 409 { frame 1 { if (timeini != 1) { current_time = _parent._parent._parent.all.my_timer; thistime = 0; lasttime = getTimer() / 1000; timeini = 1; } thistime = getTimer() / 1000; delta_time = thistime - lasttime; current_time -= delta_time; mytime = Math.round(current_time); _parent._parent._parent.mytime = mytime; lasttime = thistime; if (mytime <= 0) { gotoAndStop('time_over'); } } frame 2 { gotoAndPlay(1); } } movieClip 410 { frame 1 { if (_parent._parent.all.my_timer == 1) { trace('timer is on'); gotoAndStop(3); } else { if (_parent._parent.all.my_timer > 1) { gotoAndStop(4); } else { gotoAndStop(2); } } } } movieClip 414 { } button 416 { on (release) { if (_parent.mute == 1) { trace('mute'); _parent.music.song.stop(); _parent.mute = 0; } else { _parent.music.song.play(); _parent.mute = 1; trace('unmute'); } } } button 419 { on (release) { _parent.gotoAndStop(2); } } button 422 { on (release) { _parent.all.hit3_1._x = -500; _parent.all.hit3_1._y = -500; _parent.all.hit3_2._x = -500; _parent.all.hit3_2._y = -500; _parent.all.hit2_1._x = -500; _parent.all.hit2_1._y = -500; _parent.all.hit2_2._x = -500; _parent.all.hit2_2._y = -500; _parent.all.hit1_1._x = -500; _parent.all.hit1_1._y = -500; _parent.all.hit1_2._x = -500; _parent.all.hit1_2._y = -500; togo = _parent.all._currentframe - 1; trace(togo); _parent.all.gotoAndPlay(togo); } } button 425 { on (release) { getURL('http://www.gimme5games.com?ref=four-remaining_INGAMELOGO', '_blank'); } } movieClip 426 { } movieClip 429 { frame 1 { _visible = false; } } movieClip 430 { } movieClip 432 { } movieClip 433 { frame 1 { stop(); } frame 10 { gradi.swapDepths(2000); } } movieClip 437 { frame 1 { onEnterFrame = function () { to_collect = _parent.all.collected + 1 - 8; if (to_collect < 2 or _parent.all.row_broken == 1) { to_collect = ''; } if (_parent.all.prev_one <= 1) { gotoAndStop(1); } else { if (_parent.all.prev_one == 2) { gotoAndStop(2); } else { if (_parent.all.prev_one == 3) { gotoAndStop(3); } } } }; } } movieClip 439 { } movieClip 440 { frame 60 { stop(); } } movieClip 442 { }




http://swfchan.com/22/109758/info.shtml
Created: 14/3 -2019 04:20:28 Last modified: 14/3 -2019 04:20:28 Server time: 22/12 -2024 13:37:45