关于flash键盘钢琴,flash模拟琴键这个很多人还不知道,今天琪琪来为大家解答以上的问题,现在让我们一起来看看吧!
1、《会呼吸的痛》Flash键盘钢琴谱STVTXXTW WWVUVWXWSVVUTUVRRRVVWVSSSSYXWXX STVTXXTW WWVUVWXWSVVVUTUVRRRVVWVSSS STUVVUVV《欢乐颂》J J K L L K J I H H I J J I IJ J K L L K J I H H I J I H HI I J H I J K J H I J K J I H I EJ J K L L K J I H H I J I H H《小星星》OOSSTTS RRQQPPOSSRRQQP SSRRQQPOOSSTTS RRQQPPO《千千阙歌》HHIJ LMONNNLJIIIJK MOQPPNLHHIJ LMONNNLJIIIJK MOQPPNLMLMLMNNMN PPPPNOPQQQPPPOQ NLMLMOPQQPQ QPOP OMMLMOP QQPQ QSTSQQQQPPOPOM QQRQPOP QQ Q PPOP OMOO《婚礼进行曲》HKKK HLJK HKNNMLKJKLHKKK HLJK HKMOMKILMKNMLII JKLL NMLII JKLLHKKK HLJK HKMOMKILMKILMKK《青花瓷》Flijfash键盘钢琴谱LLJ IJF IJLJ ILLJ IJE IJLI HHIJLMLJ LJJI IHIH IHI IJLJ JLLJ IJF IJLJILLJ IJE IJLIHHIJ LMLJ LJJII EJIIH《夜曲》Flash键盘钢琴谱MN OOOONQQ TTTSRSOORRRSQNQP PONOONOOOONQQ TTTSRSOORRR QPNOM《暗香》Flash键盘钢琴谱JKJGHJM ONLJ JKJGHJMONLQ MMMOQLKMP PQRPQRQMPQRPQRM MQRSQRSM PQRMRSKPQPQRQJKJGHJMONLJJKJGHJMONLM《遇见》Flash键盘钢琴谱LJ LI JIH HGFGHGHIJLJ LP ONO HGFGHGHIHLMNONONMLML HIJKJKLHIJLMNONONPOPOQL HIJKJKJIHGHLMNONOPONML HIJKJKLHHMLLMNONOPOPQL, HIJKJKLHHMLLMNONOPOPQL, HIJIJILHIJHLMNONOMNLKLJJJKLJEE IIIJKIEEHHHIJIGH GFGHGFEFML IKJIHHGFIIHFFGH《波斯猫》Flash键盘钢琴谱OOOMLMLJJ MMMLJLJIIOOOMOMOJJ IMJ JL M M M《女人花》JLLML ILLML HIJOMJLMOOPO MLMJIH FHILJIHJLQ QQPPOL JLO OOMMLJJLQ QQPPOM MOP PPQNMLJLLML ILLML HIJOMJLMOOPO MLMJIH FHILJIH《菊花台》Flash键盘钢琴谱JJIJ JLJIJ HHIJLJ IIHIJ LJML MLLJL EJIILJIIIHIJJIJ JLJIJ HHIJLJ IIHIJ LJML MLLJL JIJLJIIHHIJJLM MQQPOML MLJIH FHIIHIHIJJLM MQPOOPO LLJNOHIJIH《菊花台》Flash键盘钢琴谱JJIJ JLJIJ HHIJLJ IIHIJLML MLLJL EJIJLJIIIHIJJIJ JLJIJ HHIJLJ IIHIJLML MLLJL JIJLJIIHHIJJLM MQPOOML MLJIHFHIIHI HIJJLM MQPOOPOLLJNOHIJ I H《菊花台》Flash键盘钢琴谱FECBA FAB BABABC CEF FJIHHIHE ECGHABC B A《欢迎你》Flash键盘钢琴谱QSQPQPQQPMO QPPOMOPQSPQTSSPOPOMOPQSPQTSSQPQPOSTQMQPPOQSVSTTS QQ SS QS TV WV SQ P S Q QQS VS TV WV SQ SVT QP QS XW VV《致爱丽斯》Flash键盘钢琴谱QPQPQNPOMHJMNJLNOJQPQPQNPOMHJMNJONMNOPQLRQPKQPOJPONNJQQQQPONMMLMNOPPQRMOPNOPQSPNOPQSPNQQQQQP《梦中的婚礼》Flash键盘钢琴谱MMNNOONNMMJJHHFFLLKKJKLK KKLLMMNNLLIIKKJJIIKJJFHJIJ FHJIJ FHKJK FHKJK KJKKLLMLMJQMOQPQ MOQPQ MORQR MORQR RQRRSSTSTQO JJKK IINN IIJJ HHMLM HHII GJIJO OOPP ONML LMLJ O OOPP ONML LMLM《约定》Flash键盘钢琴谱LOPQPOQPLL JMNONMONJL MLLKKOJJPOPQRQQPOMP LOPQPOQPNL QMNONMONJLMLLKKOPQO MNOMOTSS POSQ QPONOMJMOPOTR RQRMNOP QRSSSTOSNPO PQMORQRSP POSQ QPONOMJMOPOTR RQRMNOP QRSSSTO《美丽的神话》Flash键盘钢琴谱MQN MOPOQ MTSTSPRQMTSPQRQ O MQPNMMQNMOPOQ MTSTSPRQMTSPQRQPO MPONMMNOPQONL MOPQQMNOPQONLMOPOO MPONMMNOPQONL MOPQQMNOPQONLMOPOO OOPQONLONMNT《有没有人告诉你》Flash键盘钢琴谱JMMMMMMMMJKLK JLLLLLLLMNNJJMMMMMMMMQQP NNNNNJONONJMMMMMMMMJKLK ILLLLLLLMNNJJMMMMMMMMQQP NNNNNNNMNMQTQQQQOMJJQP JSSSSSSSTUUQQTQQQQOMJJQP PPPPPJNNM《卡农》Flash键盘钢琴谱(括号是一起按)H-JLO E-ILN F-HJM C-GILD-FHK A-EHJ D-FHK E-GIL(HQ)-JLO (EP)-GIL (OF)-HJM (NC)-GJL(MD)-FHK (LA)-CEH (MD)-FHK (NE)-GILONOH (G B )LIJ (CH)ONM (CN)QST(DR)QPR (QA)PON (DM)LKJ (EI)KJI(EH)IJK (EG)ILK (FJ)MLK (CL)KJI(DH)FMN (AO)NML (DK)JIM LML(SJ)QRS-QR(SE)LMNOPQR(FQ)OPQ-JK(GL)MLKLJKL(FK)MLK-JI(JE)IHIJKLM(FK)MLM-NO(GL)MNOPQRS(SI)QRS-QR(SE)LMNOPQR(FQ)OPQ-JK(GL)MLKLJKL(FK)MLK-JI(EJ)IHIJKLM(FK)MLM-NO(GL)MNOPQRS(HQ)-JLO (EP)-GIL (OF)-HJM (NC)-GJL(MD)-FHK (LA)-CEH (MD)-FHK (NE)《月亮代表我的心》Flash键盘钢琴谱LOQSONQS STUVTS QPOOO QPOOOPQPOMPQP LOQSONQS STUVTSPOOO QPOOO PQPMNOPO QSQPOSNMNMNMLQ SQPOSN MNOOOPQP LOQSONQS STUVTSQPOOO QPOOO PQPMNOPO《安静》 Flash键盘钢琴谱QQQQPONPPPO LQPOOOLQPOOPQQQQPONPPPO LQPOOOLQPOOPPQRRRRRQPOOOPP LSSSRQPPPQQMRQRQPOONOL QRQRQPOPSLQRSRQSLQRSRQS LQRSRQOPPPQOSSOONOOSSOONOO RRQQPPORRQQPPOLQRSRQSLQRSRQS LQRSRQOPPPQOSSOONOOSSOONOO RRQQPPOORQPOMOO《好好恋爱》 Flash键盘钢琴谱HMMMJMOLLLLJH KKKJKLMMMOMLJKJJKLLLLJIHHO NMLMLJHHMMLLLKJ OOOONOPPLRQLLRPLRQRQRQPO ONMMQMQMLLQLQLRQRQOP LRQLLRSPLRQQQRQPQONMMQMQMLLQLQPOM OPNMNMNQPOO《痴心》 FlasSSRRQQP SSRRQQPh键盘钢琴谱OPQQQRQPPOPPSP ONOOOQQOOMNNQNMLMMMRRQSO MLMMMRROOMPOOPQQQRQPPOPPSP ONOOOQQOOMNNQNMLMMRRQSO MLMMMRROOONO《想唱就唱》Flash键盘钢琴谱onopol jkkkljonopol lmmmononopqolj opoljonopqolo rqpoqqrst oopqppqrs srqpqqrstss uuvuspq rqrsqrst oopqppqs quuqv vuvtsoo tsrqrs tsqrst oopqppqrs srqpqqrstss uuvuspq rqrsqrst oopqppqs quuqv vuvtsoo tsrqrs《梦里》Flash键盘钢琴谱qqqqqqpo lmoooomqqqqqstsqp lpppppsqqqrs oopq llmoqpsqqqrs oopq llmoqpooopqrsssrqrssssssvtsqqqpo opm moppppqpopqrsssrqrssssssvtsqqqpo opm mopqqqqpomqqqqqqpo lmoooomqqqqqstsqp lpppppsqqqrs oopq llmoqpsqqqrs oopq llmoqpooopqrsssrqrssssssvtsqqqpo opm moppppqpopqrsssrqrssssssvtsqqqpo opm mopqqqqmpqt《画心》Flash键盘钢琴谱LJJ IHIILJ LJJIHILmJ LJJIHIHGHIGEF CEFFJIHGEF EEFFHGFEBC CCEFGHEHIJLJJ IHIHGHIGEF CEFFJIHGEF CEFHGFEFCLJJ IHIHGHIGEF CEFFJIHGEF LJJIHIILJLJJIHILmJ LJJIHIHGHIGEF CEFFJIHGEF童话》LONOL LQPPO LONOM MMOTSPPRRQQ QQNPOONO ONOR LSRQPPPRRQQ QQVUTUV VPOT TTSSSLSRQQRQ QRQ RQPOOQST TTSPPRQ OQSTTTSPPRQRQPO PQMMOONO《心语心愿》TVUTSTQ TSTVUVUTUVVWXXXXW VUTUS TVUTSTQSTXWVUV VUTTTTSSTQSSTXWVUVV VUTTSUT下面是用AS3修改后的代码:////////////////////////////////////////////////////////////////// Copyright (c) 2008 Hangzhou Richard Software Corp.// as3版——Richard Xu修改/////////////////////////////////////////////////////////////package {import flash.display.Sprite;import flash.display.MovieClip;import flash.display.DisplayObject;import flash.nts.;public class piano extends MovieClip {private var myPianoItem:Array;//--------------构造函数初始化----------------public function piano() {myPianoItem=new Array();myPianoItem=["aa","bb","cc","dd","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","xx","yy","zz"];allStop();pianoKeyDownListener();pianoClickDownListener();pianoClickUpListener();}//------------停止所有声音和动画---------------private function allStop():void {for (var i:int=0; imyPiano[myPianoItem[i]].gotoAndStop(1);}}//--------------键盘按键-----------------private function pianoKeyDownListener():void {stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);}//---------------响应按键-----------------private function keyDownHandler(nt:KeyboardEvent):void {trace(nt.keyCode);if (nt.keyCode==65) {myPiano.aa.gotoAndStop(3);}if (nt.keyCode==66) {myPiano.bb.gotoAndStop(3);}if (nt.keyCode==67) {myPiano.gotoAndStop(3);}if (nt.keyCode==68) {myPiano.dd.gotoAndStop(3);}if (nt.keyCode==69) {myPiano.e.gotoAndStop(3);}if (nt.keyCode==70) {myPiano.f.gotoAndStop(3);}if (nt.keyCode==71) {myPiano.g.gotoAndStop(3);}if (nt.keyCode==72) {myPiano.h.gotoAndStop(3);}if (nt.keyCode==73) {myPiano.i.gotoAndStop(3);}if (nt.keyCode==74) {myPiano.j.gotoAndStop(3);}if (nt.keyCode==75) {myPiano.k.gotoAndStop(3);}if (nt.keyCode==76) {myPiano.l.gotoAndStop(3);myPiano.m.gotoAndStop(3);}if (nt.keyCode==78) {myPiano.n.gotoAndStop(3);}if (nt.keyCode==79) {myPiano.o.gotoAndStop(3);}if (nt.keyCode==80) {myPiano.p.gotoAndStop(3);}if (nt.keyCode==81) {myPiano.q.gotoAndStop(3);}if (nt.keyCode==82) {myPiano.r.gotoAndStop(3);}if (nt.keyCode==83) {myPiano.s.gotoAndStop(3);}if (nt.keyCode==84) {myPiano.t.gotoAndStop(3);}if (nt.keyCode==85) {myPiano.u.gotoAndStop(3);}if (nt.keyCode==86) {myPiano.v.gotoAndStop(3);}if (nt.keyCode==87) {myPiano.w.gotoAndStop(3);}if (nt.keyCode==88) {myPiano.xx.gotoAndStop(3);}if (nt.keyCode==89) {myPiano.yy.gotoAndStop(3);}if (nt.keyCode==90) {myPiano.zz.gotoAndStop(3);}}//--------------响应释放按键-----------------private function keyUpHandler(nt:KeyboardEvent):void {allStop();}//--------------鼠标点击-----------------private function pianoClickDownListener():void {for (var i:int=0; imyPiano[myPianoItem[i]].addEventListener(MouseEvent.MOUSE_DOWN,pianoClickDownHandler);}}//--------------响应鼠标点击-----------------private function pianoClickDownHandler(nt:MouseEvent):void {nt.currentTarget.gotoAndStop(3);}//--------------鼠标弹起-----------------private function pianoClickUpListener():void {for (var i:int=0; imyPiano[myPianoItem[i]].addEventListener(MouseEvent.MOUSE_UP,pianoClickUpHandler);}}//--------------响应鼠标弹起-----------------private function pianoClickUpHandler(nt:MouseEvent):void {allStop();}}}。
本文到这结束,希望上面文章对大家有所帮助。