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

399257445.swf

This is the info page for
Flash #12939

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


Text
000

0:00

000

000

000

v

ActionScript [AS1/AS2]

Frame 65
stop(); Main.main();
Symbol 20 MovieClip [hammer] Frame 1
stop();
Symbol 31 MovieClip [mole] Frame 1
stop();
Symbol 31 MovieClip [mole] Frame 6
stop();
Symbol 31 MovieClip [mole] Frame 12
stop();
Symbol 31 MovieClip [mole] Frame 14
stop();
Symbol 35 MovieClip [star] Frame 10
stop();
Symbol 94 MovieClip [__Packages.Main] Frame 0
class Main extends MovieClip { var __proto__, hit1, hit2, hit3, miss, pop1, pop2, music, bg, attachMovie, getNextHighestDepth, moles, click_to_play, getURL, dialog, box, scoreboard_lv, hammer, star, time, ref_listener, _xmouse, _ymouse, final_score; function Main (base) { super(); base.__proto__ = __proto__; base.__constructor__ = Main; this=base;//parameter overwritten Object.registerClass("mole", mole); hit1 = new Sound(); hit1.attachSound("hit_1"); hit2 = new Sound(); hit2.attachSound("hit_2"); hit3 = new Sound(); hit3.attachSound("hit_3"); miss = new Sound(); miss.attachSound("miss"); pop1 = new Sound(); pop1.attachSound("mole_1"); pop2 = new Sound(); pop2.attachSound("mole_2"); music = new Sound(); music.attachSound("music"); music.start(); music.onSoundComplete = function () { this.start(); }; bg = attachMovie("bg", "bg", getNextHighestDepth()); moles = new Array(); var _local5 = 0; var _local6 = 0; var _local4 = 0; while (_local4 < 9) { var _local3 = attachMovie("mole", "mole" + _local4, getNextHighestDepth()); _local3.addEventListener("mole_hides", mx.utils.Delegate.create(this, setTimeNextMole)); _local3._x = (_local5 * 124) + 80; _local3._y = (_local6 * 98) + 105; _local5++; if (_local5 > 2) { _local5 = 0; _local6++; } moles.push(_local3); _local4++; } playIntro(); } function playIntro() { onIntro = true; click_to_play = attachMovie("play", "click_to_play", getNextHighestDepth()); click_to_play._x = 200; click_to_play._y = 200; click_to_play.btn_play.onRelease = mx.utils.Delegate.create(this, clickedToPlay); click_to_play.btn_links.onRelease = mx.utils.Delegate.create(this, clickedLinks); } function clickedLinks() { (getURL("http://www.gamebrew.com/", "_blank"));// not popped } function highScoreMainMenu() { dialog.removeMovieClip(); box.removeMovieClip(); if (!onIntro) { restart(); } } function highScoreNext10() { page = page + 10; if (page > maxScore) { page = maxScore; } if (page > (maxScore - 20)) { dialog.btn_next10._visible = false; } dialog.btn_last10._visible = true; showScores(); } function highScoreLast10() { page = page - 10; if (page < 0) { page = 0; } if (page < 10) { dialog.btn_last10._visible = false; } dialog.btn_next10._visible = true; showScores(); } function highScoresLoad(success) { trace("cargo hscore" + success); if (success) { if (Boolean(scoreboard_lv.success)) { dialog.btn_next10._visible = true; if (scoreboard_lv.maxScore.length > 0) { maxScore = Number(scoreboard_lv.maxScore); } showScores(); } } } function showScores() { var _local2 = 10; while (_local2 > 0) { var _local5 = scoreboard_lv["name" + (page + _local2)]; var _local4 = scoreboard_lv["score" + (page + _local2)]; var _local3 = dialog[("line" + _local2) + "_mc"]; _local3.rank_txt.text = (page + _local2) + "."; _local3.name_txt.text = (_local5.length ? (_local5.toUpperCase()) : "-"); _local3.score_txt.text = (_local4.length ? (_local4) : "-"); _local3._visible = true; _local2--; } } function clickedToPlay() { click_to_play.removeMovieClip(); startGame(); } function startGame() { game_over = false; onIntro = false; var _local2; _local2 = Math.floor(Math.random() * 9); var _local3; _local3 = (Math.random() * 500) + 500; moles[_local2].setAppearTime(_local3); _local2 = Math.floor(Math.random() * 9); _local3 = (Math.random() * 1000) + 1000; while (moles[_local2].getIsSetToAppear()) { _local2 = Math.floor(Math.random() * 9); } moles[_local2].setAppearTime(_local3); _local2 = Math.floor(Math.random() * 9); _local3 = (Math.random() * 1500) + 1000; while (moles[_local2].getIsSetToAppear()) { _local2 = Math.floor(Math.random() * 9); } moles[_local2].setAppearTime(_local3); _local2 = Math.floor(Math.random() * 9); _local3 = (Math.random() * 1000) + 2000; while (moles[_local2].getIsSetToAppear()) { _local2 = Math.floor(Math.random() * 9); } moles[_local2].setAppearTime(_local3); hammer = attachMovie("hammer", "hammer", getNextHighestDepth()); star = attachMovie("star", "star", getNextHighestDepth()); star._visible = false; Mouse.hide(); time = new com.sismostudio.timer.timer(1000, "time_out", 30); ref_listener = mx.utils.Delegate.create(this, updateTime); time.addEventListener("time_out", ref_listener); bg.txt_time.text = "0:30"; bg.txt_hit.text = 0; } function onMouseDown() { var _local3 = false; if (!game_over) { hammer.play(); var _local2 = 0; while (_local2 < moles.length) { if (moles[_local2].getVisible() && (!moles[_local2].getWhacked())) { if (hammer.hit_area.hitTest(moles[_local2].hit_area)) { moles[_local2].setWhacked(true); hits++; bg.txt_hit.text = hits; star._x = hammer._x - 25; star._y = hammer._y; star._visible = true; star.play(); _local3 = true; } } _local2++; } if (_local3) { var _local4 = Math.ceil(Math.random() * 3); this["hit" + _local4].start(); } else { misses++; miss.start(); } } } function onMouseMove() { if (!game_over) { hammer._x = _xmouse; hammer._y = _ymouse; } } function setTimeNextMole(evtObject) { var _local2; var _local3; if (!game_over) { _local2 = Math.floor(Math.random() * 9); _local3 = (Math.random() * 2500) + 500; while (moles[_local2].getIsSetToAppear()) { _local2 = Math.floor(Math.random() * 9); } moles[_local2].setAppearTime(_local3); } } function updateTime(objEvent) { var _local3 = objEvent.tick; var _local4; var _local2; if (objEvent.message == "tick") { _local4 = Math.floor(_local3 / 60).toString(); _local2 = (_local3 % 60).toString(); if (_local2.length < 2) { _local2 = "0" + _local2; } bg.txt_time.text = (_local4 + ":") + _local2; } else { bg.txt_time.text = "0:00"; game_over = true; Mouse.show(); gameOver(); } } function gameOver() { var _local2 = 0; while (_local2 < moles.length) { moles[_local2].stopMole(); _local2++; } time.removeEventListener("time_out", ref_listener); final_score = attachMovie("final_score", "final_score", getNextHighestDepth()); final_score._x = 200; final_score._y = 200; final_score.txt_hits.text = hits; final_score.txt_miss.text = misses; score = hits - misses; final_score.txt_score.text = score; final_score.btn_enter.onRelease = mx.utils.Delegate.create(this, sendAndRestart); } function sendAndRestart() { name = final_score.txt_name.text; delete final_score.btn_enter.onRelease; final_score.removeMovieClip(); restart(); } function restart() { hits = 0; misses = 0; score = 0; name = ""; page = 0; delete time; hammer.removeMovieClip(); star.removeMovieClip(); playIntro(); } static function main() { var _local2 = new Main(_root); } var page = 0; var maxScore = 100; var name = ""; var hits = 0; var misses = 0; var game_over = true; var score = 0; var onIntro = false; }
Symbol 95 MovieClip [__Packages.com.sismostudio.timer.timer] Frame 0
class com.sismostudio.timer.timer { var tipo_evento, nolimit, ticks, timeInt, dispatchEvent; function timer (len, tipo, ticks) { mx.events.EventDispatcher.initialize(this); tipo_evento = tipo; if (ticks == -1) { nolimit = true; this.ticks = 0; } else { this.ticks = ticks; } timeInt = setInterval(mx.utils.Delegate.create(this, handleTimer), len); } function handleTimer() { if (!onPause) { var _local2; if (nolimit) { ticks++; } else { ticks--; if (ticks > 0) { _local2 = "tick"; } else if (ticks == 0) { _local2 = "timeout"; clearInterval(timeInt); } } dispatchEvent({type:tipo_evento, target:this, message:_local2, tick:ticks, time:getTimer()}); } } function setOnPause(onPause) { this.onPause = onPause; } var onPause = false; }
Symbol 96 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var _local4 = queue.length; var _local1; _local1 = 0; while (_local1 < _local4) { var _local2 = queue[_local1]; if (_local2 == handler) { queue.splice(_local1, 1); return(undefined); } _local1++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var _local7 = "__q_" + eventObj.type; var _local4 = queueObj[_local7]; if (_local4 != undefined) { var _local5; for (_local5 in _local4) { var _local1 = _local4[_local5]; var _local3 = typeof(_local1); if ((_local3 == "object") || (_local3 == "movieclip")) { if (_local1.handleEvent != undefined) { _local1.handleEvent(eventObj); } if (_local1[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { _local1[eventObj.type](eventObj); } } } else { _local1.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var _local3 = "__q_" + event; if (this[_local3] == undefined) { this[_local3] = new Array(); } _global.ASSetPropFlags(this, _local3, 1); _removeEventListener(this[_local3], event, handler); this[_local3].push(handler); } function removeEventListener(event, handler) { var _local2 = "__q_" + event; _removeEventListener(this[_local2], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }
Symbol 97 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object { var func; function Delegate (f) { super(); func = f; } static function create(obj, func) { var _local2 = function () { var _local2 = arguments.callee.target; var _local3 = arguments.callee.func; return(_local3.apply(_local2, arguments)); }; _local2.target = obj; _local2.func = func; return(_local2); } function createDelegate(obj) { return(create(obj, func)); } }
Symbol 98 MovieClip [__Packages.mole] Frame 0
class mole extends MovieClip { var appear_interval, gotoAndPlay, disappear_interval, dispatchEvent, _name, gotoAndStop; function mole () { super(); mx.events.EventDispatcher.initialize(this); trace("anda el trace"); } function appear() { clearInterval(appear_interval); visible = true; (gotoAndPlay("appears"));// not popped var _local3; _local3 = (Math.random() * 1000) + 500; disappear_interval = setInterval(this, "disappear", _local3); var _local4 = Math.ceil(Math.random() * 2); _root["pop" + _local4].start(); } function disappear() { clearInterval(disappear_interval); (gotoAndPlay("disappears"));// not popped visible = false; isSetToAppear = false; whacked = false; dispatchEvent({type:"mole_hides", mole:_name}); } function setAppearTime(time) { if (!visible) { appear_interval = setInterval(this, "appear", time); isSetToAppear = true; } } function getVisible() { return(visible); } function getIsSetToAppear() { return(isSetToAppear); } function getWhacked() { return(whacked); } function setWhacked(whacked) { clearInterval(disappear_interval); this.whacked = whacked; (gotoAndPlay("whacked"));// not popped disappear_interval = setInterval(this, "disappear", 500); } function stopMole() { clearInterval(disappear_interval); clearInterval(appear_interval); visible = false; isSetToAppear = false; whacked = false; (gotoAndStop("stop"));// not popped } var visible = false; var whacked = false; var isSetToAppear = false; }

Library Items

Symbol 1 Sound [music]
Symbol 2 Sound [mole_2]
Symbol 3 Sound [mole_1]
Symbol 4 Sound [miss]
Symbol 5 Sound [hit_3]
Symbol 6 Sound [hit_2]
Symbol 7 Sound [hit_1]
Symbol 8 BitmapUsed by:9
Symbol 9 GraphicUses:8Used by:13
Symbol 10 FontUsed by:11 12 38 39 40
Symbol 11 EditableTextUses:10Used by:13
Symbol 12 EditableTextUses:10Used by:13
Symbol 13 MovieClip [bg]Uses:9 11 12
Symbol 14 BitmapUsed by:15
Symbol 15 GraphicUses:14Used by:20
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:20
Symbol 18 BitmapUsed by:19
Symbol 19 GraphicUses:18Used by:20
Symbol 20 MovieClip [hammer]Uses:15 17 19
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:21Used by:31
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:31
Symbol 25 BitmapUsed by:26
Symbol 26 GraphicUses:25Used by:31
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:31
Symbol 29 BitmapUsed by:30
Symbol 30 GraphicUses:29Used by:31
Symbol 31 MovieClip [mole]Uses:22 24 26 28 30
Symbol 32 BitmapUsed by:33
Symbol 33 GraphicUses:32Used by:34
Symbol 34 MovieClipUses:33Used by:35
Symbol 35 MovieClip [star]Uses:34
Symbol 36 BitmapUsed by:37
Symbol 37 GraphicUses:36Used by:46
Symbol 38 EditableTextUses:10Used by:46
Symbol 39 EditableTextUses:10Used by:46
Symbol 40 EditableTextUses:10Used by:46
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:45
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:45
Symbol 45 ButtonUses:42 44Used by:46
Symbol 46 MovieClip [final_score]Uses:37 38 39 40 45
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:60
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:54
Symbol 51 BitmapUsed by:52
Symbol 52 GraphicUses:51Used by:54
Symbol 53 GraphicUsed by:54 59
Symbol 54 ButtonUses:50 52 53Used by:60
Symbol 55 BitmapUsed by:56
Symbol 56 GraphicUses:55Used by:59
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:59
Symbol 59 ButtonUses:56 58 53Used by:60
Symbol 60 MovieClip [play]Uses:48 54 59
Symbol 61 BitmapUsed by:62
Symbol 62 GraphicUses:61Used by:83
Symbol 63 FontUsed by:64 65 66
Symbol 64 EditableTextUses:63Used by:67
Symbol 65 EditableTextUses:63Used by:67
Symbol 66 EditableTextUses:63Used by:67
Symbol 67 MovieClipUses:64 65 66Used by:83
Symbol 68 BitmapUsed by:69
Symbol 69 GraphicUses:68Used by:72
Symbol 70 BitmapUsed by:71
Symbol 71 GraphicUses:70Used by:72
Symbol 72 ButtonUses:69 71Used by:83
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:77
Symbol 75 BitmapUsed by:76
Symbol 76 GraphicUses:75Used by:77
Symbol 77 ButtonUses:74 76Used by:83
Symbol 78 BitmapUsed by:79
Symbol 79 GraphicUses:78Used by:82
Symbol 80 BitmapUsed by:81
Symbol 81 GraphicUses:80Used by:82
Symbol 82 ButtonUses:79 81Used by:83
Symbol 83 MovieClip [high_score_box]Uses:62 67 72 77 82
Symbol 84 GraphicUsed by:93
Symbol 85 GraphicUsed by:86
Symbol 86 MovieClipUses:85Used by:93
Symbol 87 GraphicUsed by:88
Symbol 88 MovieClipUses:87Used by:93
Symbol 89 GraphicUsed by:90
Symbol 90 MovieClipUses:89Used by:93
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:93
Symbol 93 MovieClipUses:84 86 88 90 92 SS1Used by:Timeline
Symbol 94 MovieClip [__Packages.Main]
Symbol 95 MovieClip [__Packages.com.sismostudio.timer.timer]
Symbol 96 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 97 MovieClip [__Packages.mx.utils.Delegate]
Symbol 98 MovieClip [__Packages.mole]
Streaming Sound 1Used by:Symbol 93 MovieClip

Instance Names

"txt_hit"Symbol 13 MovieClip [bg] Frame 1Symbol 11 EditableText
"txt_time"Symbol 13 MovieClip [bg] Frame 1Symbol 12 EditableText
"hit_area"Symbol 20 MovieClip [hammer] Frame 1Symbol 17 MovieClip
"hit_area"Symbol 31 MovieClip [mole] Frame 1Symbol 22 MovieClip
"txt_hits"Symbol 46 MovieClip [final_score] Frame 1Symbol 38 EditableText
"txt_miss"Symbol 46 MovieClip [final_score] Frame 1Symbol 39 EditableText
"txt_score"Symbol 46 MovieClip [final_score] Frame 1Symbol 40 EditableText
"btn_enter"Symbol 46 MovieClip [final_score] Frame 1Symbol 45 Button
"btn_links"Symbol 60 MovieClip [play] Frame 1Symbol 54 Button
"btn_play"Symbol 60 MovieClip [play] Frame 1Symbol 59 Button
"rank_txt"Symbol 67 MovieClip Frame 1Symbol 64 EditableText
"name_txt"Symbol 67 MovieClip Frame 1Symbol 65 EditableText
"score_txt"Symbol 67 MovieClip Frame 1Symbol 66 EditableText
"line1_mc"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 67 MovieClip
"line2_mc"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 67 MovieClip
"line3_mc"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 67 MovieClip
"line4_mc"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 67 MovieClip
"line5_mc"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 67 MovieClip
"line6_mc"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 67 MovieClip
"line7_mc"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 67 MovieClip
"line8_mc"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 67 MovieClip
"line9_mc"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 67 MovieClip
"line10_mc"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 67 MovieClip
"btn_last10"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 72 Button
"btn_next10"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 77 Button
"btn_mainmenu"Symbol 83 MovieClip [high_score_box] Frame 1Symbol 82 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "music"
ExportAssets (56)Timeline Frame 1Symbol 2 as "mole_2"
ExportAssets (56)Timeline Frame 1Symbol 3 as "mole_1"
ExportAssets (56)Timeline Frame 1Symbol 4 as "miss"
ExportAssets (56)Timeline Frame 1Symbol 5 as "hit_3"
ExportAssets (56)Timeline Frame 1Symbol 6 as "hit_2"
ExportAssets (56)Timeline Frame 1Symbol 7 as "hit_1"
ExportAssets (56)Timeline Frame 1Symbol 13 as "bg"
ExportAssets (56)Timeline Frame 1Symbol 20 as "hammer"
ExportAssets (56)Timeline Frame 1Symbol 31 as "mole"
ExportAssets (56)Timeline Frame 1Symbol 35 as "star"
ExportAssets (56)Timeline Frame 1Symbol 46 as "final_score"
ExportAssets (56)Timeline Frame 1Symbol 60 as "play"
ExportAssets (56)Timeline Frame 1Symbol 83 as "high_score_box"
ExportAssets (56)Timeline Frame 1Symbol 94 as "__Packages.Main"
ExportAssets (56)Timeline Frame 1Symbol 95 as "__Packages.com.sismostudio.timer.timer"
ExportAssets (56)Timeline Frame 1Symbol 96 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 97 as "__Packages.mx.utils.Delegate"
ExportAssets (56)Timeline Frame 1Symbol 98 as "__Packages.mole"

Labels

"stop"Symbol 31 MovieClip [mole] Frame 1
"appears"Symbol 31 MovieClip [mole] Frame 2
"disappears"Symbol 31 MovieClip [mole] Frame 8
"whacked"Symbol 31 MovieClip [mole] Frame 14




http://swfchan.com/3/12939/info.shtml
Created: 5/6 -2019 10:06:12 Last modified: 5/6 -2019 10:06:12 Server time: 22/12 -2024 10:37:34