|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
您是否有着精彩的Flash作品,您是否想把他转化为屏保程序。
poluoluo中心提醒:实例动画:奔驰的马儿.
看看效果:
http://www.poluoluo.com/files/media/1_100428074146.swf
具体代码:
varn:uint=0;
varmysp:Sprite=newSprite();
mysp.y=80;
addChild(mysp);
for(vari:uint=0;i<4;i++){
varpicmc:MovieClip=newPic();
picmc.x=i*picmc.width;
picmc.scaleX=Math.pow(-1,i);
mysp.addChild(picmc);
}
varpnkcy:Sound=newPnyqkcy();
varpnkCh:SoundChannel=newSoundChannel();
varps:Boolean=true;
plst_mc.buttonMode=true;
plst_mc.addEventListener(MouseEvent.CLICK,plst);
functionplst(ev:MouseEvent):void{
if(ps){
addEventListener(Event.ENTER_FRAME,gctb);
pnkCh=pnkcy.play();
mp.play();
mp1.play();
plst_mc.gotoAndStop(2);
}else{
removeEventListener(Event.ENTER_FRAME,gctb);
n=0;
pnkCh.stop();
mp.stop();
mp1.stop();
plst_mc.gotoAndStop(1);
}
ps=!ps;
}
varsj:Array=[1560,3560,5560,10600,23000,35000,43050,59810,71240,80370,89470,93930,98240,108479,122280,132360,146530,
158160,166630,181080,196250,206060,216840,220120,224360,239720,243170,262440,271060,290250
];
vargc:Array=["马儿啊你慢些走","演唱:德德玛","歌词编纂:刘朋QQ:406663870","马儿啊你慢些走慢些走哎","我要把这绚丽的景致看个够","社会主义建立更换了六合","休息歌声响遍了旷野响彻了山头","","没见过一队队汽车云中走","没见过千里平地跑铁牛","没见过渠水滔滔山上绕","没见过天旱水涝保丰产","没见过深山密林修工场","没见过公路通到深山沟深山沟","","马儿啊你慢些走慢些走哎","我要把这年夜好的风景看个够","风吹那稻麦卷起了千重浪","比比皆是轻飘飘果实压弯了枝头","","碧绿的草地上牛羊成群走","新修的水库中鱼儿恣意游","场院上男女平易近兵练技艺","旷野里干部社员同挥锄头","眼看着新山新水新景象","怎不教人笑在脸上","喜在心头喜在心头","哎故国啊我爱你绚丽的景致","我想看个够总也看不敷",""];
functiongctb(ev:Event):void{
if(mysp.x>-2*picmc.width){
mysp.x-=5;
}else{
mysp.x=0;
}
if(pnkCh.position>=sj[n+1]){
n++;
}
gca_txt.text=gc[n];
vargcb:String=gc[n];
gcb_txt.text=gcb.substring(0,(gcb.length+2)*(pnkCh.position-sj[n])/(sj[n+1]-sj[n]));
}
//====马
varmp:MovieClip=newMp();
addChild(mp);
mp.x=200;
mp.y=200;
mp.scaleX=0.5;
mp.scaleY=0.5;
varmp1:MovieClip=newMp1();
addChild(mp1);
mp1.x=150;
mp1.y=200;
mp1.scaleX=0.45;
mp1.scaleY=0.45;
用于设计和编辑Flash文档。1996年11月,美国Macromedia公司收购了FutureWave,并将其改名为Flash。后又被Adobe公司收购。 |
|