flash高手们。帮帮忙,我的flash拼图游戏在测试的时候图片可以随鼠标拖曳,但是停放不下来
我也使用了stopDrag()函数,但是还是不行。on(press){startDrag("",true);}on(release){stopDrag();obj="/d...
我也使用了stopDrag()函数,但是还是不行。
on (press) {
startDrag("", true);
}
on (release) {
stopDrag();
obj = "/d3";
if (_droptarget == obj) {
setProperty("", _x, getProperty(obj, _x));
setProperty("", _y, getProperty(obj, _y));
_root.m3 = 1;
if ((_root.m1 == 1) and (_root.m2 == 1) and (_root.m3 == 1) and (_root.m4 == 1) and (_root.m5 == 1) and (_root.m6 == 1) and (_root.m7 == 1) and (_root.m8 == 1) and (_root.m9 == 1)) {
_root.gotoAndPlay(2);
}
}
}
应该不是代码的问题,我下载的别人的也是这样,但是人家的就可以啊 展开
on (press) {
startDrag("", true);
}
on (release) {
stopDrag();
obj = "/d3";
if (_droptarget == obj) {
setProperty("", _x, getProperty(obj, _x));
setProperty("", _y, getProperty(obj, _y));
_root.m3 = 1;
if ((_root.m1 == 1) and (_root.m2 == 1) and (_root.m3 == 1) and (_root.m4 == 1) and (_root.m5 == 1) and (_root.m6 == 1) and (_root.m7 == 1) and (_root.m8 == 1) and (_root.m9 == 1)) {
_root.gotoAndPlay(2);
}
}
}
应该不是代码的问题,我下载的别人的也是这样,但是人家的就可以啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询