Wednesday, May 16, 2012

스크리이이이이이이이이이이이이이이이이이입트

stop(); stage.focus = stage; stage.removeEventListener(Event.ENTER_FRAME,cloud01); import flash.media.Sound; import flash.media.SoundChannel; import flash.events.Event; import flash.events.MouseEvent; game_complete.visible = false;// '성공!' 글자 일단 안보이게 gameOver.visible = false;// '게임오바' 글자 일단 안보이게 regame.visible = false;// 'regame' 글자 일단 안보이게 toMain.visible = false; ////////////////////////////////////////////////////////////////////////////////////글자들 var snd_1:Sound = new bgm(); var channel_1:SoundChannel = new SoundChannel();//게임 배경음악 var snd_2:Sound = new bgm_2(); var channel_2:SoundChannel = new SoundChannel();//성공했을때 나오는 음악 var snd_3:Sound = new yelling(); var channel_3:SoundChannel = new SoundChannel();//새랑 닿았을때 나오는 효과음 /////////////////////////////////////////////////////////////////////////////////////음악들 mainChannel_1.stop(); /////////메인 배경음악 끄고; channel_1 = snd_1.play();/////게임 배경음악 시작 var normalSpeed = -5 var backSpeed = normalSpeed;////////////내려오는 속도 addEventListener(Event.ENTER_FRAME, moveOn); function moveOn(evt:Event) { back.y = back.y + backSpeed; if (back.y <= -2122) { back.y = -2122.75; egg.y += 8; //trace(egg.y); if ( (egg.y>= 746) && (game_complete.visible ==false)) { egg.y = 746; stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); channel_1.stop(); channel_2 = snd_2.play(); game_complete.visible = true; egg.gotoAndPlay("success"); } if (egg.y >= 746) { egg.y = 746; } } //////////////////////////////////새랑 부딪칠때!! if (egg.egg_02.hitTestObject(back.red_bird_01) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame); regame.buttonMode = true; function reGame(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu); toMain.buttonMode = true; function toMainMenu(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } gameOver.visible = true; //부딪치면 나오는 버튼 egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }/////////////////////////////////////////////////////////////////////////////////////새1 if (egg.egg_02.hitTestObject(back.red_bird_02) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame02); regame.buttonMode = true; function reGame02(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu02); toMain.buttonMode = true; function toMainMenu02(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////////새2 if (egg.egg_02.hitTestObject(back.red_bird_03) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame03); regame.buttonMode = true; function reGame03(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu03); toMain.buttonMode = true; function toMainMenu03(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }/////////////////////////////////////////////////////////////////////////////새3 if (egg.egg_02.hitTestObject(back.red_bird_04) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame04); regame.buttonMode = true; function reGame04(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu04); toMain.buttonMode = true; function toMainMenu04(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; back.removeEventListener(Event.ENTER_FRAME, back.red_birdMove_04); back.red_bird_04.x = -1000; back.red_bird_04.visible = false; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }/////////////////////////////////////////////////////////////////////////////새4 ///////////////////////////////////////////////////////////////////////////새7 if (egg.egg_02.hitTestObject(back.red_bird_08) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame08); regame.buttonMode = true; function reGame08(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu08); toMain.buttonMode = true; function toMainMenu08(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////새8 if (egg.egg_02.hitTestObject(back.red_bird_09) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame09); regame.buttonMode = true; function reGame09(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu09); toMain.buttonMode = true; function toMainMenu09(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////새9 if (egg.egg_02.hitTestObject(back.red_bird_10) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame10); regame.buttonMode = true; function reGame10(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu10); toMain.buttonMode = true; function toMainMenu10(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = normalSpeed; }///////////////////////////////////////////////////////////////////////////새10 if (egg.egg_02.hitTestObject(back.red_bird_11) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame11); regame.buttonMode = true; function reGame11(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu11); toMain.buttonMode = true; function toMainMenu11(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////새11 if (egg.egg_02.hitTestObject(back.bird_01) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame12); regame.buttonMode = true; function reGame12(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu12); toMain.buttonMode = true; function toMainMenu12(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새1 if (egg.egg_02.hitTestObject(back.bird_02) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame13); regame.buttonMode = true; function reGame13(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu13); toMain.buttonMode = true; function toMainMenu13(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새2 if (egg.egg_02.hitTestObject(back.bird_03) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame14); regame.buttonMode = true; function reGame14(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu14); toMain.buttonMode = true; function toMainMenu14(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새3 if (egg.egg_02.hitTestObject(back.bird_04) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame15); regame.buttonMode = true; function reGame15(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu15); toMain.buttonMode = true; function toMainMenu15(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새4 /* if (egg.egg_02.hitTestObject(back.bird_05) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame16); regame.buttonMode = true; function reGame16(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu16); toMain.buttonMode = true; function toMainMenu16(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새5 if (egg.egg_02.hitTestObject(back.bird_06) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame17); regame.buttonMode = true; function reGame17(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu17); toMain.buttonMode = true; function toMainMenu17(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새6 if (egg.egg_02.hitTestObject(back.bird_07) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame18); regame.buttonMode = true; function reGame18(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu18); toMain.buttonMode = true; function toMainMenu18(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; } */ ///////////////////////////////////////////////////////////////////////////파란새6 if (egg.egg_02.hitTestObject(back.bird_08) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame19); regame.buttonMode = true; function reGame19(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu19); toMain.buttonMode = true; function toMainMenu19(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새8 if (egg.egg_02.hitTestObject(back.bird_09) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame20); regame.buttonMode = true; function reGame20(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu20); toMain.buttonMode = true; function toMainMenu20(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새9 if (egg.egg_02.hitTestObject(back.bird_10) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame21); regame.buttonMode = true; function reGame21(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu21); toMain.buttonMode = true; function toMainMenu21(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새10 if (egg.egg_02.hitTestObject(back.bird_11) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame22); regame.buttonMode = true; function reGame22(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu22); toMain.buttonMode = true; function toMainMenu22(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새11 if (egg.egg_02.hitTestObject(back.bird_12) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame23); regame.buttonMode = true; function reGame23(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu23); toMain.buttonMode = true; function toMainMenu23(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새12 if (egg.egg_02.hitTestObject(back.bird_13) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame24); regame.buttonMode = true; function reGame24(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu24); toMain.buttonMode = true; function toMainMenu24(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새13 if (egg.egg_02.hitTestObject(back.bird_14) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame25); regame.buttonMode = true; function reGame25(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu25); toMain.buttonMode = true; function toMainMenu25(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새14 if (egg.egg_02.hitTestObject(back.bird_15) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame26); regame.buttonMode = true; function reGame26(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu26); toMain.buttonMode = true; function toMainMenu26(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////파란새15 if (egg.egg_02.hitTestObject(back.bird_31) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame27); regame.buttonMode = true; function reGame27(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu27); toMain.buttonMode = true; function toMainMenu27(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////31 if (egg.egg_02.hitTestObject(back.bird_41) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame28); regame.buttonMode = true; function reGame28(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu28); toMain.buttonMode = true; function toMainMenu28(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////41 if (egg.egg_02.hitTestObject(back.bird_42) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame29); regame.buttonMode = true; function reGame29(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu29); toMain.buttonMode = true; function toMainMenu29(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////42 if (egg.egg_02.hitTestObject(back.bird_52) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame31); regame.buttonMode = true; function reGame31(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu31); toMain.buttonMode = true; function toMainMenu31(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////52 if (egg.egg_02.hitTestObject(back.bird_53) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame32); regame.buttonMode = true; function reGame32(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu32); toMain.buttonMode = true; function toMainMenu32(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////53 if (egg.egg_02.hitTestObject(back.bird_62) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame34); regame.buttonMode = true; function reGame34(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu34); toMain.buttonMode = true; function toMainMenu34(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////62 if (egg.egg_02.hitTestObject(back.bird_63) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame35); regame.buttonMode = true; function reGame35(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu35); toMain.buttonMode = true; function toMainMenu35(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////63 if (egg.egg_02.hitTestObject(back.bird_73) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame39); regame.buttonMode = true; function reGame39(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu39); toMain.buttonMode = true; function toMainMenu39(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////73 if (egg.egg_02.hitTestObject(back.bird_76) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame42); regame.buttonMode = true; function reGame42(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu42); toMain.buttonMode = true; function toMainMenu42(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////76 if (egg.egg_02.hitTestObject(back.bird_77) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame43); regame.buttonMode = true; function reGame43(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu43); toMain.buttonMode = true; function toMainMenu43(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////77 if (egg.egg_02.hitTestObject(back.bird_78) == true) { //부딪치면 나오는 버튼 regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame44); regame.buttonMode = true; function reGame44(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu44); toMain.buttonMode = true; function toMainMenu44(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } //부딪치면 나오는 버튼 gameOver.visible = true; egg.gotoAndPlay("yelling"); channel_3 = snd_3.play();/////비명소리 stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.removeEventListener( KeyboardEvent.KEY_UP, onKeyReleased); backSpeed = 0; }///////////////////////////////////////////////////////////////////////////77 ////////////////////////////////////////////////////////////////////앉아있다 날아가는 새들 back.bird_31.x = -224.45; back.bird_31.y = 1111.25; if(back.y <= -550){ var t_16 = 0; addEventListener(Event.ENTER_FRAME, bird_rotate_16); function bird_rotate_16(evt:Event) { t_16 += 2; back.bird_31.x += 5*Math.cos(t_16*Math.PI/180) back.bird_31.y -= 3 } } ///////////////////////////////////////////////////////////////////////맨위에 back.bird_41.x = 145.75; back.bird_41.y = 1436.65; back.bird_42.x = 96.65; back.bird_42.y = 1436.45; if(back.y <= -850){ var t_17 = 0; addEventListener(Event.ENTER_FRAME, bird_rotate_17); function bird_rotate_17(evt:Event) { t_17 += 2; back.bird_41.x += 5*Math.cos(t_16*Math.PI/180) back.bird_41.y -= 3 back.bird_42.x -= 6*Math.cos(t_16*Math.PI/180) back.bird_42.y -= 4 } } /////////////////////////////////////두번째 back.bird_52.x = -243.45; back.bird_52.y = 1699.75; back.bird_53.x = -335.35; back.bird_53.y = 1700.40; if (back.y <= -1100) { var t_18 = 30; addEventListener(Event.ENTER_FRAME, bird_rotate_18); function bird_rotate_18(evt:Event) { t_18 += 2; back.bird_52.x += 14*Math.cos(t_18*Math.PI/180); back.bird_52.y -= 1; back.bird_53.x -= 8*Math.cos(t_18*3*Math.PI/180); back.bird_53.y -= 5; } } ////////////////////////////////////////////////////////세번째 back.bird_62.x = 173; back.bird_62.y = 2133.8; back.bird_63.x = 219.85; back.bird_63.y = 2130.60; if (back.y <= -1500) { var t_19 = 30; addEventListener(Event.ENTER_FRAME, bird_rotate_19); function bird_rotate_19(evt:Event) { t_19 += 2; back.bird_62.x -= 9*Math.cos(t_18*Math.PI/300); back.bird_62.y -= 4; back.bird_63.x -= 18*Math.cos(t_18*Math.PI/240); back.bird_63.y -= 5; } } ////////////////////////////////////////////////////////네번째 back.bird_73.x = -246; back.bird_73.y = 2485.05; back.bird_76.x = -271.75; back.bird_76.y = 2664.90; back.bird_77.x = -239.85; back.bird_77.y = 2664.30; back.bird_78.x = -202.45; back.bird_78.y = 2664.90; if (back.y <= -1800) { var t_20 = 30; addEventListener(Event.ENTER_FRAME, bird_rotate_20); function bird_rotate_20(evt:Event) { t_20 += 90; back.bird_73.x += 18*Math.cos(t_18*Math.PI/240); back.bird_73.y -= 13; back.bird_76.x -= 11*Math.cos(2*t_18*Math.PI/180); back.bird_76.y -= 6; back.bird_77.x -= 11*Math.cos(3*t_18*Math.PI/180); back.bird_77.y -= 7; back.bird_78.x -= 11*Math.cos(4*t_18*Math.PI/180); back.bird_78.y -= 8; } } } stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyPressed); stage.addEventListener(KeyboardEvent.KEY_UP, onKeyReleased); function onKeyPressed(evt:KeyboardEvent) { if (evt.keyCode == Keyboard.LEFT) { egg.x -= 45; if (egg.x <= 10) { egg.x = 780; }//왼쪽 화면으로 나가면 오른쪽에서 나타나고 } else if ( evt.keyCode == Keyboard.RIGHT ) { egg.x += 45; if (egg.x >= 790) { egg.x = 0; }//오른쪽 화면으로 나가면 왼쪽에서 나타나도록 } /* else if ( evt.keyCode == Keyboard.UP ) { egg.y -= 25; if (egg.y <= 90.7) { egg.y = 90.7; }//아래로 나가지 않도록 trace(egg.y); } else if ( evt.keyCode == Keyboard.DOWN ) { egg.y += 25; if (egg.y >= 915.7) { egg.y = 915.7;//위로 나가지 않도록 } trace(egg.y); } */ if (evt.keyCode == Keyboard.SPACE) { if (egg.currentLabel != "fast") { egg.gotoAndPlay("fast"); backSpeed = -45; } } } function onKeyReleased(evt:KeyboardEvent) { backSpeed = normalSpeed; egg.gotoAndPlay(1); } //sec.visible = false; //a.visible = false; var timer = 0; a.text = timer; var timeCheck = setInterval(timeGoes, 1000); function timeGoes() { timer = timer + 1; a.text = timer; if (game_complete.visible == true||gameOver.visible == true ) { clearInterval(timeCheck); //a.visible = true; //sec.visible = true; regame.visible = true; toMain.visible = true; regame.addEventListener(MouseEvent.MOUSE_DOWN, reGame01); regame.buttonMode = true; function reGame01(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("regame"); } toMain.addEventListener(MouseEvent.MOUSE_DOWN, toMainMenu01); toMain.buttonMode = true; function toMainMenu01(evt:MouseEvent) { channel_1.stop(); gotoAndPlay("main"); } } } stop(); var mainSnd_1:Sound = new mainBgm(); var mainChannel_1:SoundChannel = new SoundChannel(); mainChannel_1 = mainSnd_1.play();//배경음악 시작 main_start.addEventListener(MouseEvent.MOUSE_DOWN, To_Game); main_start.buttonMode = true; function To_Game(evt:MouseEvent) { //gotoAndPlay(7);//<-- 이렇게 해도 되지만, mainChannel_1.stop(); gotoAndPlay("game");//<-- 이렇게 하면 더 좋지요. } manual.addEventListener(MouseEvent.MOUSE_DOWN, To_manual); manual.buttonMode = true; function To_manual(evt:MouseEvent) { //gotoAndPlay(7);//<-- 이렇게 해도 되지만, gotoAndPlay("manual");//<-- 이렇게 하면 더 좋지요. } ///////////////////////////////////////////////////////////////////////////////// 배경의 구름 시작 var radians_01; var t_01 = 240; var radians_02; var t_02 = 280; var radians_03; var t_03 = 260; var radians_04; var t_04 = 290; var radians_05; var t_05 = 220; var tv = 0.05; stage.addEventListener(Event.ENTER_FRAME, cloud01); function cloud01(evt:Event) { t_01 += tv; main_cloud01.x = 800*Math.cos(t_01*Math.PI/180) + 337; main_cloud01.y = 800*Math.sin(t_01*Math.PI/180) +1227; radians_01 = Math.atan2(main_cloud01.y - 1242,main_cloud01.x - 352); main_cloud01.rotation = (radians_01 / Math.PI) * 180 + 120;//구름자체각도 // 구름 1 // 구름 1 t_02 += tv; main_cloud02.x = 800*Math.cos(t_02*Math.PI/180) + 337; main_cloud02.y = 800*Math.sin(t_02*Math.PI/180) +1227; radians_02 = Math.atan2(main_cloud02.y - 1242,main_cloud02.x - 352); main_cloud02.rotation = (radians_02 / Math.PI) * 180 + 120;//구름자체각도 //구름 2 //구름 2 t_03 += tv; main_cloud03.x = 700*Math.cos(t_03*Math.PI/180) + 337; main_cloud03.y = 700*Math.sin(t_03*Math.PI/180) +1227; radians_03 = Math.atan2(main_cloud03.y - 1242,main_cloud03.x - 352); main_cloud03.rotation = (radians_03 / Math.PI) * 180 + 100;//구름자체각도 //구름 3 //구름 3 t_04 += tv; main_cloud04.x = 850*Math.cos(t_04*Math.PI/180) + 337; main_cloud04.y = 850*Math.sin(t_04*Math.PI/180) +1227; radians_04 = Math.atan2(main_cloud04.y - 1242,main_cloud04.x - 352); main_cloud04.rotation = (radians_04 / Math.PI) * 180 + 100;//구름자체각도 //구름 5 //구름 5 t_05 += tv; main_cloud05.x = 850*Math.cos(t_05*Math.PI/180) + 337; main_cloud05.y = 850*Math.sin(t_05*Math.PI/180) +1227; radians_05 = Math.atan2(main_cloud05.y - 1242,main_cloud04.x - 352); main_cloud05.rotation = (radians_05 / Math.PI) * 180 + 85;//구름자체각도 //구름 5 //구름 5 } ///////////////////////////////////////////////////////////////////////////////// 배경의 구름 끝 var cloudSpeed_01 = -5 ; addEventListener(Event.ENTER_FRAME, moveOn_01); function moveOn_01(evt:Event) { cloud_01.x = cloud_01.x + cloudSpeed_01; } var cloudSpeed_02 = 5 ; addEventListener(Event.ENTER_FRAME, moveOn_02); function moveOn_02(evt:Event) { cloud_02.x = cloud_02.x + cloudSpeed_02/3; } ////////////////////////////////////////////////////////구름 /////회전하는 새들/////// var t_01 = 0; addEventListener(Event.ENTER_FRAME, bird_rotate_01); function bird_rotate_01(evt:Event) { t_01 += 1; bird_01.x = 200*Math.cos(t_01*Math.PI/180) - 200; bird_01.y = 200*Math.sin(t_01*Math.PI/180) -2500; } var t_02 = 0; addEventListener(Event.ENTER_FRAME, bird_rotate_02); function bird_rotate_02(evt:Event) { t_02 += 1; bird_02.x = 300*Math.cos(t_02*Math.PI/180) + 100; bird_02.y = 300*Math.sin(t_02*Math.PI/180) -2000; } var t_03 = 0; addEventListener(Event.ENTER_FRAME, bird_rotate_03); function bird_rotate_03(evt:Event) { t_03 += 1; bird_03.x = 100*Math.cos(t_03*Math.PI/180) - 100; bird_03.y = 300*Math.sin(t_03*Math.PI/180) -1500; } var t_04 = 6; addEventListener(Event.ENTER_FRAME, bird_rotate_04); function bird_rotate_04(evt:Event) { t_04 += 2; bird_04.x = 300*Math.cos(t_04*Math.PI/180) +200; bird_04.y = 100*Math.sin(t_04*Math.PI/180) - 1000; } /* var t_05 = 30; addEventListener(Event.ENTER_FRAME, bird_rotate_05); function bird_rotate_05(evt:Event) { t_05 += 2; bird_05.x = 100*Math.cos(t_04*Math.PI/180) +250; bird_05.y = 100*Math.sin(t_04*Math.PI/180) - 500; } var t_06 = 50; addEventListener(Event.ENTER_FRAME, bird_rotate_06); function bird_rotate_06(evt:Event) { t_06 += 2; bird_06.x = 300*Math.cos(t_04*Math.PI/180) +300; bird_06.y = 150*Math.sin(t_04*Math.PI/180) - 0; } var t_07 = 180; addEventListener(Event.ENTER_FRAME, bird_rotate_07); function bird_rotate_07(evt:Event) { t_07 += 1.5; bird_07.x = 500*Math.cos(t_07*Math.PI/180) +200; bird_07.y = 100*Math.sin(t_07*Math.PI/180) + 300; } */ var t_08 = 280; addEventListener(Event.ENTER_FRAME, bird_rotate_08); function bird_rotate_08(evt:Event) { t_08 += 0.4; bird_08.x = 500*Math.cos(t_08*Math.PI/180) +200; bird_08.y = 50*Math.sin(t_08*Math.PI/180) + 1000; } var t_09 = 10; addEventListener(Event.ENTER_FRAME, bird_rotate_09); function bird_rotate_09(evt:Event) { t_09 += 1; bird_09.x = 500*Math.cos(t_09*Math.PI/180) +0; bird_09.y = 100*Math.sin(t_09*Math.PI/180) + 500; } var t_10 = 80; addEventListener(Event.ENTER_FRAME, bird_rotate_10); function bird_rotate_10(evt:Event) { t_10 += 2; bird_10.x = 500*Math.cos(t_10*Math.PI/180) +200; bird_10.y = 100*Math.sin(t_10*Math.PI/180) - 1890; } var t_11 = 20; addEventListener(Event.ENTER_FRAME, bird_rotate_11); function bird_rotate_11(evt:Event) { t_11 += 2; bird_11.x = 300*Math.cos(t_11*Math.PI/180) + 0; bird_11.y = 300*Math.sin(t_11*Math.PI/180) - 1900; } var t_12 = 80; addEventListener(Event.ENTER_FRAME, bird_rotate_12); function bird_rotate_12(evt:Event) { t_12 += 2.3; bird_12.x = 500*Math.cos(t_12*Math.PI/180) + 0; bird_12.y = 100*Math.sin(t_12*Math.PI/180) - 1600; } var t_13 = 180; addEventListener(Event.ENTER_FRAME, bird_rotate_13); function bird_rotate_13(evt:Event) { t_13 += 2; bird_13.x = 100*Math.cos(t_13*Math.PI/180) + 0; bird_13.y = 500*Math.sin(t_13*Math.PI/180) - 1300; } var t_14 = 40; addEventListener(Event.ENTER_FRAME, bird_rotate_14); function bird_rotate_14(evt:Event) { t_14 += 0.54; bird_14.x = 300*Math.cos(t_14*Math.PI/180) + 0; bird_14.y = 300*Math.sin(t_14*Math.PI/180) - 1000; } var t_15 = 80; addEventListener(Event.ENTER_FRAME, bird_rotate_15); function bird_rotate_15(evt:Event) { t_15 += 2; bird_15.x = 500*Math.cos(t_11*Math.PI/180) + 0; bird_15.y = 100*Math.sin(t_11*Math.PI/180) - 700; } //////////_______빨간새 움직 var red_t_01 = -120; addEventListener(Event.ENTER_FRAME, red_birdMove_01); function red_birdMove_01(evt:Event) { red_t_01 += 2; red_bird_01.x = 300*Math.cos(red_t_01*Math.PI/180) - 300; red_bird_01.y = -400; } var red_t_02 = -90; addEventListener(Event.ENTER_FRAME, red_birdMove_02); function red_birdMove_02(evt:Event) { red_t_02 += 2; red_bird_02.x = 300*Math.cos(red_t_02*Math.PI/180) - 300; red_bird_02.y = -300; } var red_t_03 = -60; addEventListener(Event.ENTER_FRAME, red_birdMove_03); function red_birdMove_03(evt:Event) { red_t_03 += 2; red_bird_03.x = 300*Math.cos(red_t_03*Math.PI/180) - 300; red_bird_03.y = -200; } var red_t_04 = -30; addEventListener(Event.ENTER_FRAME, red_birdMove_04); function red_birdMove_04(evt:Event) { red_t_04 += 2; red_bird_04.x = 300*Math.cos(red_t_04*Math.PI/180) - 300; red_bird_04.y = -100; } var red_t_05 = 0; addEventListener(Event.ENTER_FRAME, red_birdMove_05); function red_birdMove_05(evt:Event) { red_t_05 += 2; red_bird_05.x = 300*Math.cos(red_t_05*Math.PI/180) - 300; red_bird_05.y = 0; } //두번째 무리 var red_t_06 = 120; addEventListener(Event.ENTER_FRAME, red_birdMove_06); function red_birdMove_06(evt:Event) { red_t_06 += 1; red_bird_06.x = 200*Math.cos(red_t_06*Math.PI/180) - 0; red_bird_06.y = 0; } var red_t_07 = 150; addEventListener(Event.ENTER_FRAME, red_birdMove_07); function red_birdMove_07(evt:Event) { red_t_07 += 1; red_bird_07.x = 200*Math.cos(red_t_07*Math.PI/180) - 0; red_bird_07.y = 200; } var red_t_08 = 180; addEventListener(Event.ENTER_FRAME, red_birdMove_08); function red_birdMove_08(evt:Event) { red_t_08 += 1; red_bird_08.x = 200*Math.cos(red_t_08*Math.PI/180) - 0; red_bird_08.y = 400; } var red_t_09 = 210; addEventListener(Event.ENTER_FRAME, red_birdMove_09); function red_birdMove_09(evt:Event) { red_t_09 += 1; red_bird_09.x = 200*Math.cos(red_t_09*Math.PI/180) - 0; red_bird_09.y = 600; } var red_t_10 = 240; addEventListener(Event.ENTER_FRAME, red_birdMove_10); function red_birdMove_10(evt:Event) { red_t_10 += 1; red_bird_10.x = 200*Math.cos(red_t_10*Math.PI/180) - 0; red_bird_10.y = 800; } var red_t_11 = 270; addEventListener(Event.ENTER_FRAME, red_birdMove_11); function red_birdMove_11(evt:Event) { red_t_11 += 1; red_bird_11.x = 200*Math.cos(red_t_11*Math.PI/180) - 0; red_bird_11.y = 1000; }

No comments:

Post a Comment