返回列表 发帖

油匠摄影作品——花卉篇












 

图片可移动和点击放大

 

友情提示:请不要一贴多发!每贴最多发二个栏目!

谢谢面壁的鼓励,支持和建议。每次你都是很认真的点评,帮助真是受益匪浅。这次就是在你的启发下自制了两个简单的木钉按钮。

你做的蝴蝶按钮好漂亮!

友情提示:请不要一贴多发!每贴最多发二个栏目!

TOP

谢谢你好好学习!我这里有个教程,我把网址发上来! http://huaib.com/gongqiao/FLASH/jiaoxue/2011-03-21/4994.html

友情提示:请不要一贴多发!每贴最多发二个栏目!

TOP

回复 3# 好好学习

 

补充说明;这个flash的音乐和添加按钮部分,在我前面的帖子“习作flash——组件播放器”中面壁讲得非常清楚,你可以去看一下。后部分图片的缓冲放大效果,教程是以3张图片为例,如果你的图片数量要增加,就要将脚本代码中的一个数字改动一下,第一排的那个2字;即图片数减1。

 

for (var d:Number = 0; d<=2; d++) {
this["pic"+d+"_mc"].onPress = function() {
  mx.behaviors.DepthControl.bringToFront(this);//移到最前
  startDrag(this);
  this.onEnterFrame = function() {
   this._xscale += (200-this._xscale)/4;//缓冲放大
   this._yscale += (200-this._yscale)/4;
   if (this._xscale>=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<=100) {
    delete this.onEnterFrame;
   }
  };
};
}

 

友情提示:请不要一贴多发!每贴最多发二个栏目!

TOP

返回列表