欢迎来到天天文库
浏览记录
ID:9008268
大小:430.50 KB
页数:6页
时间:2018-04-14
《图片旋转的制作方法》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、图片旋转的制作方法一.1.打开flash8.0界面:插入——新建一个元件(影片剪辑),命名为图片。2.第一帧导入图片,属性里给图片改成200×170。后边依次插入空白关键帧,分别导入4张图片,分别改成200×170.二.1.返回场景1,新建一个影片剪辑,命名图片旋转。2.分别插入3个图层。3.图层1从库里把影片剪辑【旋转图片】拖入舞台居中对齐。属性里给图片写实例名:ball4.锁上图层1,图层二属性里写帧标签:5.锁上图层2,图层3帧里写代码:functioninit(){COUNT=5;LIST=[];RADIUS=200;STANDBY_ANG=90;tmp_fram
2、e_count=20;for(var_loc3=0;_loc33、d,1280,_loc2);_loc2.btns.btn1024.onRelease=com.hbbalfred.as2.utils.Delegate.create(this,download,1024,_loc2);_loc2.bb.onRelease=com.hbbalfred.as2.utils.Delegate.create(this,release,_loc2);_loc2.move=b_move;_loc2.render=b_render;_loc2.move(0);var_loc6=_loc2.x;var_loc5=_loc2.y;var_loc4=_loc4、2.scale;_loc2.x=_loc2._x;_loc2.y=_loc2._y;_loc2.scale=50;newmx.transitions.Tween(_loc2,"x",mx.transitions.easing.Regular.easeOut,_loc2.x,_loc6,tmp_frame_count,false);newmx.transitions.Tween(_loc2,"y",mx.transitions.easing.Regular.easeOut,_loc2.y,_loc5,tmp_frame_count,false);newmx.transiti5、ons.Tween(_loc2,"scale",mx.transitions.easing.Regular.easeOut,_loc2.scale,_loc4,tmp_frame_count,false);}//endofforball._visible=false;standby=null;}//EndofthefunctionfunctionremoveAllDownloads(){while(LIST.length){LIST.pop().removeMovieClip();}//endwhile}//Endofthefunctionfunctionrelease(6、ball){if(standby!=ball){standby.btns._visible=false;standby=ball;}//endif}//Endofthefunctionfunctiondownload(w,ball){var_loc1="dl/";switch(w){case1280:_loc1=_loc1+("00"+ball._currentframe+"_1280x1024.jpg");break;case1024:_loc1=_loc1+("00"+ball._currentframe+"_1024x768.jpg");break;default:7、trace("unknown:"+w);}//Endofswitch}//EndofthefunctionfunctionisStandBy(r){var_loc1=com.robertpenner.utils.MathUtil.fixAngle(com.robertpenner.utils.MathUtil.radiansToDegrees(r));return(Math.abs(STANDBY_ANG-_loc1)<5);}//EndofthefunctionfunctiononEnterFrame(){if(--tmp_
3、d,1280,_loc2);_loc2.btns.btn1024.onRelease=com.hbbalfred.as2.utils.Delegate.create(this,download,1024,_loc2);_loc2.bb.onRelease=com.hbbalfred.as2.utils.Delegate.create(this,release,_loc2);_loc2.move=b_move;_loc2.render=b_render;_loc2.move(0);var_loc6=_loc2.x;var_loc5=_loc2.y;var_loc4=_loc
4、2.scale;_loc2.x=_loc2._x;_loc2.y=_loc2._y;_loc2.scale=50;newmx.transitions.Tween(_loc2,"x",mx.transitions.easing.Regular.easeOut,_loc2.x,_loc6,tmp_frame_count,false);newmx.transitions.Tween(_loc2,"y",mx.transitions.easing.Regular.easeOut,_loc2.y,_loc5,tmp_frame_count,false);newmx.transiti
5、ons.Tween(_loc2,"scale",mx.transitions.easing.Regular.easeOut,_loc2.scale,_loc4,tmp_frame_count,false);}//endofforball._visible=false;standby=null;}//EndofthefunctionfunctionremoveAllDownloads(){while(LIST.length){LIST.pop().removeMovieClip();}//endwhile}//Endofthefunctionfunctionrelease(
6、ball){if(standby!=ball){standby.btns._visible=false;standby=ball;}//endif}//Endofthefunctionfunctiondownload(w,ball){var_loc1="dl/";switch(w){case1280:_loc1=_loc1+("00"+ball._currentframe+"_1280x1024.jpg");break;case1024:_loc1=_loc1+("00"+ball._currentframe+"_1024x768.jpg");break;default:
7、trace("unknown:"+w);}//Endofswitch}//EndofthefunctionfunctionisStandBy(r){var_loc1=com.robertpenner.utils.MathUtil.fixAngle(com.robertpenner.utils.MathUtil.radiansToDegrees(r));return(Math.abs(STANDBY_ANG-_loc1)<5);}//EndofthefunctionfunctiononEnterFrame(){if(--tmp_
此文档下载收益归作者所有