简单的flash图片浏览效果

 
[要求]
按下鼠标拖动图片缓冲放大并移到最前面,松开鼠标停止拖动图片缓冲缩小。
[步骤]
导入几张图片分别转为影片元件,拖到主场景,实例名分别为pic0_mc、pic1_mc、pic2_mc……在帧上写如下代码:
for (var d:Number = 0; d=200) {
    delete this.onEnterFrame;
   }
  };
};
this["pic"+d+"_mc"].onRelease = function() {
  stopDrag();
  this.onEnterFrame = function() {
   this._xscale -= (this._xscale-100)/4;//缓冲缩小
   this._yscale -= (this._yscale-100)/4;
   if (this._xscale
[源文件]:
[img]/uploads/allimg/080327/1847180.gif[/img]
 
[url=http://www2.flash8.net/UploadTeach/200710/20071022172421932.rar]缓冲放大与缩小.rar[/url]
[效果] :
本文转自:http://www.5uflash.com/flashjiaocheng/Flashjichucaozuo/702.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值