ࡱ> Root Entryp|YrRASH0x  *Contents5Page 1e Symbol 9% " 1! #$%&'2346789:;<=>?Root Entryp|YrRASHp4x *ContentsPage 1e Symbol 9% " 0! #$%&'(*+,-./)Symbol 8Symbol 4Symbol 3@Symbol 1) CDocumentPagePage 1Scene 1|@-b@Symbol 9Symbol 9 sRK@Symbol 9sRK@Symbol 8Symbol 8|1@Symbol 8Symbol 10fG|1@Symbol 4enemyZ@enemySymbol 4fx`@Symbol 3bullet&@bulletSymbol 3RK@Symbol 1heroSymbol 8Symbol 4Symbol 3@Symbol 1 54 !"#$&'()*+,-./01236789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdtghijklmnopqrsuvwxyz{|}~}DVerdana(restart?rk Layer 1OCPicPage CPicLayer CPicFrame CPicShape&3f333WeB,;48ol;8P Z4ji8@* H8n8Ao4zv-~4 }4LV_PT7 i T)2TU-L4ؾ8(wTۀ4~"W< v4*{W4DiTKJT[W2 Ӏ+Ԁ(p"$Qr. g[p%A&G&}.: {܎ Ԁ "U U3#%܀Z܀a%Za#?JI Layer 1OCPicPage CPicLayer CPicFrame CPicSprite  Z?mstop(); P ?&.gotoAndStop(1); this.reset(); _root.score+=50; Layer 1OCPicPage CPicLayer CPicFrame CPicShapes:X 0 00CPicText @heroSymbol 1-b@ *phhhhh CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ffffWERi%  T^?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdtghijklmnopqrsuvwxyz{|}~4nWC(܀W/4BwK%& 4J2 qCe?I_root.fire=false; Layer 1OCPicPage CPicLayer CPicFrame CPicSprCPicPage CPicLayer CPicFrame CPicShape/P7<?0 Layer 1Ofx`@ite:6 :6 d0hero?? / heroOCPicText ` Verdana"(Score:  >  scoreVerdana"(0U.0 0U0.?T   3 Verdana"(Game Over CPicButtont tGgon(release){ gotoAndStop(1); }  ` Verdana"(Score:  >  scoreVerdana"(0U.0 <*U0.?f borderOO  d*fonClipEvent (load) { function reset() { this._x = 550; this._y = math.random()*300; enemySpeed = (math.random()*6)+1; } reset(); } onCCPicPage CPicLayer CPicFrame?g CPicShapeW^      PTu4uS7PQ?Z&%YڀZBQj*j*j8ii\VW``ys8PZ@yq?J, ~).LKCPicPage CPicLayer CPicFrame2Υ##\2? Layer 1OCPicPage CPicLayer CPicFrame CPicSpr  ( n "h8nD  %?l=&2%._4T_8J"g7$$@+BFiFrp р?,W&u4uS7PT      PP?Z&%YڀZBQ?r W&u4uS7PT      PP?Z&%YڀZBQ?Ri Layer 2OO;fff^  scoreVerdana"(0U.0 0U0.?Z   3 Verdana"(Game Over CPicButtont t&on(release){ gotoAndStop(1); }  ` Verdana"(Score:  >  scoreVerdana"(0U.0 <*U0.?A borderOO  d.onClipEvent (load) { function reset() { this._x = 550; this._y = math.random()*300; enemySpeed = (math.random()*6)+1; } reset(); } onClipEvent (enterFrame) { this._x -= enemySpeed; if (this._x<-22) { reset(); } if (this.hitTest(_root.hero)) { _root.gotoAndStop(2); } } enemy1? stop(); var numEnemy = 3; _root.score = 0; var fire = false; function moveHero(speed) { //check if key is down if (Key.isDown(Key.UP)) { _root.hero._y -= speed; } else if (Key.isDown(Key.LEFT)) { _root.hero._x -= speed; } else if (Key.isDown(Key.DOWN)) { _root.hero._y += speed; } else if (Key.isDown(Key.RIGHT)) { _root.hero._x += speed; } if (Key.isDown(Key.SPACE)) { if (fire == false) { fireBullets(); } } } var i = 1; function fireBullets() { i++; fire = true; _root.hero.gotoAndPlay(2); var newname = "bullet"+i; _root.attachMovie("bullet", newname, i+100); _root[newname]._y = _root.hero._y+13; _root[newname]._x = _root.hero._x+55; _root[newname].onEnterFrame = function() { var bullet_speed = 9; this._x += bullet_speed; if (this._x>555) { this.removeMovieClip(); } for (var h = 1; h<=numEnemy; h++) { if (this.hitTest(_root["enemy"+h])) { this.removeMovieClip(); _root["enemy"+h].play(); //trace("enemy"+h); } } }; } function Enemys() { for (j=2; j<=numEnemy; j++) { var name = "enemy"+j; _root.enemy1.duplicateMovieClip(name, j); } } Enemys(); _root.onEnterFrame = function() { moveHero(8); }; ? actions3 3CH 3F` 3Hx f0 f30 ff(0 f5H f<` f@x  3330  3 33x f3d0 3]H 3Z` 3Xx 33 3330 3f3PPH 33Px` 33Px 33P f30 f33PP7<?0 Layer 1Ofx`@ite:6 :6 dhero?#HlipEvent (enterFrame) { this._x -= enemySpeed; if (this._x<-22) { reset(); } if (this.hitTest(_root.hero)) { _root.gotoAndStop(2); } } enemy1?8Nstop(); var numEnemy = 3; _root.score = 0; var fire = false; function moveHero(speed) { //check if key is down if (Key.isDown(Key.UP)) { _root.hero._y -= speed; } else if (Key.isDown(Key.LEFT)) { _root.hero._x -= speed; } else if (Key.isDown(Key.DOWN)) { _root.hero._y += speed; } else if (Key.isDown(Key.RIGHT)) { _root.hero._x += speed; } if (Key.isDown(Key.SPACE)) { if (fire == false) { fireBullets(); } } } var i = 1; function fireBullets() { i++; fire = true; _root.hero.gotoAndPlay(2); var newname = "bullet"+i; _root.attachMovie("bullet", newname, i*100); _root[newname]._y = _root.hero._y+13; _root[newname]._x = _root.hero._x+55; _root[newname].onEnterFrame = function() { var bullet_speed = 9; this._x += bullet_speed; if (this._x>555) { this.removeMovieClip(); } for (var h = 1; h<=numEnemy; h++) { if (this.hitTest(_root["enemy"+h])) { this.removeMovieClip(); _root["enemy"+h].play(); //trace("enemy"+h); } } }; } function Enemys() { for (j=2; j<=numEnemy; j++) { var name = "enemy"+j; _root.enemy1.duplicateMovieClip(name, j); } } Enemys(); _root.onEnterFrame = function() { moveHero(8); }; ?z actions3 3CH 3F` 3Hx f0 f30 ff(0 f5H f<` f@x  3330  3 33x f3d0 3]H 3Z` 3Xx 33 3330 3f3PPH 33Px` 33Px 33P f30 f33P) CDocumentPagePage 1Scene 1|@Jf@Symbol 9Symbol 9 sRK@Symbol 9sRK@Symbol 8Symbol 8|1@Symbol 8|1@Symbol 4enemyZ@enemySymbol 4fx`@Symbol 3bullet&@bulletSymbol 3RK@Symbol 1hero@heroSymbol 1-b@ *phhhhh CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]~Ih