主题:  look ,look this!

奔腾的心

职务:普通成员
等级:7
金币:10.0
发贴:6114
#12002/5/29 14:54:00
on(release)
if (getproperty("2",_currentframe)=3){
telltarget("2"){
gotoandstop(1);
}
telltarget("1"){
gotoandstop(getproperty("2",_currentframe);
}

我来说明一下,我是想做个拼图游戏

着是其中一个as,我要的是当点后,如果发现它旁边的mc是第三frame,那么就把他变为第一frame

而它变为它傍边的mc的frame数。

可是点后,他边了,可是傍边的mc没有反映,why?



wukun

职务:普通成员
等级:1
金币:1.0
发贴:222
#22002/5/29 19:19:27
源文件,起码有源码,要不很难看的.



janlay

职务:管理员
等级:7
金币:28.0
发贴:7244
#32002/5/30 0:27:32
引用:
telltarget("2"){
gotoandstop(1);
}
telltarget("1"){
gotoandstop(getproperty("2",_currentframe);


从这里可以看出,2和1都会跳到第一帧。

有几个建议,你不妨看看:
不要用数字或数字开头的字符来作为mc instance name
写法要简洁,方便阅读和思考
条件表达式中用==判断相等。

编辑历史:[这消息被janlay编辑过(编辑时间2002-05-30 00:29:51)]


Mozier

职务:管理员
等级:5
金币:11.0
发贴:2994
#42002/5/30 13:59:17
贴个原文件上来看看~