|
查看: 1502|回复: 1
|
CS3 Scripting 问题 - Button to display picture
[复制链接]
|
|
|
我想把mouse over某个button的时候,就会显示相关的照片。
btn1.onRollOver = function() {
mcPicShow._alpha = 100;
mcPicShow.showPic(filePath, this._name.slice(3));
mc.onRollOver=function(){
}
目前的问题是:照片会在Hit area范围内随着滑鼠移动而改变位置,请问要怎样把照片的位置定在stage的正中间?
[ 本帖最后由 我是元元~ 于 24-2-2009 11:34 AM 编辑 ] |
|
|
|
|
|
|
|
|
|
|

楼主 |
发表于 25-2-2009 11:03 AM
|
显示全部楼层
解决了。
原来是因为我没有加一行
btn1.onRollOut = function() {
mcPicShow._alpha = 0;
}
 |
|
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|