on (press) {
this.startDrag(true, 0, 0, 225, 0);//限定拖动范围 _root.stop(); this.onEnterFrame = function() {//用onEnterFrame跳转帧 _root.gotoAndPlay(int(90*this._x/230)+1);//跳转到相应的帧,90*this._x/230)+1是this._x位置对应的相应的帧 }; } on (release, releaseOutside) { _root.play(); this.stopDrag();//停止拖动 delete this.onEnterFrame;//删除onEnterFrame事件! } |
/upimg/soft/6/1_070606163638.rar |
Word教程网 | Excel教程网 | Dreamweaver教程网 | Fireworks教程网 | PPT教程网 | FLASH教程网 | PS教程网 |
HTML教程网 | DIV CSS教程网 | FLASH AS教程网 | ACCESS教程网 | SQL SERVER教程网 | C语言教程网 | JAVASCRIPT教程网 |
ASP教程网 | ASP.NET教程网 | CorelDraw教程网 |