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

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

MyStudentSpace2.swf

This is the info page for
Flash #129154

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


Text
START

START

START

START

ActionScript [AS1/AS2]

Frame 1
setup = function () { firing = false; fireRate = 10; enemyTime = 0; enemyRate = 30; score = 0; score_txt.text = score; counter = 20; counter_txt.text = counter; ship.onMouseDown = function () { firing = true; repeatTime = 0; }; ship.onMouseUp = function () { firing = false; }; ship.onEnterFrame = function () { this.destx = _xmouse; var _local3 = this.destx - this._x; this._x = this._x + (_local3 * 0.15); if (firing && (repeatTime == 0)) { createProjectile("bullet", this._x, this._y - 5, 0, -15); } repeatTime++; repeatTime = repeatTime % fireRate; if (enemyTime == 0) { var _local2 = (Math.random() * 100) + 80; createEnemy("bob", _local2, -30); createEnemy("bob", 200, -30); createEnemy("bob", 400 - _local2, -30); } enemyTime++; enemyTime = enemyTime % 30; }; doCounter = function () { counter--; counter_txt.text = counter; if (counter == 0) { delete ship.onEnterFrame; delete bgscroller.onEnterFrame; enemyLayer.removeMovieClip(); projectileLayer.removeMovieClip(); startButton._visible = true; clearInterval(countID); } }; countID = setInterval(doCounter, 1000); _root.createEmptyMovieClip("projectileLayer", 99); projectileCount = 0; _root.createEmptyMovieClip("enemyLayer", 98); enemyCount = 0; ship.swapDepths(100); ship.gotoAndStop(1); bgscroller.onEnterFrame = function () { if (this._y >= 500) { this._y = 0; } this._y = this._y + 5; }; }; createProjectile = function (type, x, y, dx, dy) { var _local4 = "proj" + projectileCount; projectileLayer.attachMovie(type, _local4, projectileCount); projectileLayer[_local4]._x = x; projectileLayer[_local4]._y = y; projectileLayer[_local4].dx = dx; projectileLayer[_local4].dy = dy; projectileLayer[_local4].onEnterFrame = function () { this._x = this._x + this.dx; this._y = this._y + this.dy; if (this._y < 0) { this.removeMovieClip(); } var _local2 = 0; while (_local2 < 10) { var _local3 = "enemy" + _local2; if (this.hitTest(enemyLayer[_local3]) && (enemyLayer[_local3]._currentframe == 1)) { enemyLayer[_local3].play(); score++; score_txt.text = score; this.removeMovieClip(); } _local2++; } }; projectileCount++; projectileCount = projectileCount % 10; }; createEnemy = function (type, x, y) { var _local2 = "enemy" + enemyCount; enemyLayer.attachMovie(type, _local2, enemyCount); enemyLayer[_local2]._x = x; enemyLayer[_local2].xline = x; enemyLayer[_local2]._y = y; enemyLayer[_local2].dy = (Math.random() * 3) + 10; enemyLayer[_local2].t = Math.random() * 6.28; enemyLayer[_local2].onEnterFrame = function () { this._x = this.xline + (Math.sin(this.t) * 100); this._y = this._y + this.dy; this.t = this.t + 0.1; if ((this._currentframe == 1) && (ship.hitTest(this._x, this._y, true))) { counter = 1; doCounter(); ship.play(); } if (this._y > 500) { this.removeMovieClip(); } }; enemyCount++; enemyCount = enemyCount % 10; }; startButton.onRelease = function () { this._visible = false; setup(); };
Symbol 7 MovieClip [bob] Frame 1
stop();
Symbol 7 MovieClip [bob] Frame 15
this.removeMovieClip();
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 11
stop();

Library Items

Symbol 1 GraphicUsed by:7
Symbol 2 ShapeTweeningUsed by:7
Symbol 3 ShapeTweeningUsed by:7
Symbol 4 ShapeTweeningUsed by:7
Symbol 5 ShapeTweeningUsed by:7
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClip [bob]Uses:1 2 3 4 5 6
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClip [bullet]Uses:8
Symbol 10 BitmapUsed by:11
Symbol 11 GraphicUses:10Used by:12
Symbol 12 MovieClipUses:11Used by:Timeline
Symbol 13 GraphicUsed by:18
Symbol 14 GraphicUsed by:18
Symbol 15 GraphicUsed by:18
Symbol 16 ShapeTweeningUsed by:18
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:13 14 15 16 17Used by:Timeline
Symbol 19 FontUsed by:20 21 22 23
Symbol 20 EditableTextUses:19Used by:24
Symbol 21 EditableTextUses:19Used by:24
Symbol 22 EditableTextUses:19Used by:24
Symbol 23 EditableTextUses:19Used by:24
Symbol 24 ButtonUses:20 21 22 23Used by:Timeline
Symbol 25 FontUsed by:26 27
Symbol 26 EditableTextUses:25Used by:Timeline
Symbol 27 EditableTextUses:25Used by:Timeline

Instance Names

"bgscroller"Frame 1Symbol 12 MovieClip
"ship"Frame 1Symbol 18 MovieClip
"startButton"Frame 1Symbol 24 Button
"score_txt"Frame 1Symbol 26 EditableText
"counter_txt"Frame 1Symbol 27 EditableText

Special Tags

ExportAssets (56)Timeline Frame 1Symbol 7 as "bob"
ExportAssets (56)Timeline Frame 1Symbol 9 as "bullet"




http://swfchan.com/26/129154/info.shtml
Created: 23/2 -2019 11:22:53 Last modified: 23/2 -2019 11:22:53 Server time: 11/05 -2024 04:30:31