qichenge 2008-4-16 09:34
请问这个flash 如何给按扭加链接
请问这个flash 如何给按扭加链接是:请帮忙给看看。 怎么给每个按扭加上链接,原来的效果不会消失.
给电影剪辑上加上: 这段 原来的效果就会消失.
onClipEvent (load) {
this.onRelease = function() {
getURL("http://www.baidu.com", "_blank");
};
}
//这是FLASH里的代码
Stage.scaleMode = "noScale";
logo.onRelease = function() {
_root.xnum = 0;
_root.gotoAndStop(this._parent.snum+1);
_root.bg.play();
};
_root.xnum = 0;
for (i=1; i<=8; i++) {
_root["b"+i].snum = i;
_root["b"+i].bt.onRelease = function() {
_root.xnum = this._parent.snum;
_root.gotoAndStop(this._parent.snum+1);
_root.bg.play();
};
_root["b"+i].onEnterFrame = function() {
if (_root.xnum == this.snum) {
//控制点击后 移动的位置 142*87
this._x = this._x-(this._x-143)*0.1;
this._y = this._y-(this._y-107)*0.1;
} else {
//栏目位置,按扭间距
this._x = this._x-(this._x-(182+this.snum*72))*0.1;
this._y = this._y-(this._y-50)*0.1;
}
};
}
stop();
cjm3499 2008-4-25 09:16
看看这个效果:影片中藏按钮的解决方法[url]http://9941.5d6d.com/thread-809-1-1.html[/url]
a250168647 2008-5-4 20:04
恩???我学习下.......