用Flash编了一个连线题,求指点,悬赏100 100
我按照教程已经编好了,但是我现在是连线必须正确才能连起来,如果不是对应的按钮就连不上。这样导致了选择答案肯定正确。我想改成错误的也可以连,不知道代码怎么改,急,在线等,/...
我按照教程已经编好了,但是我现在是连线必须正确才能连起来,如果不是对应的按钮就连不上。这样导致了选择答案肯定正确。我想改成错误的也可以连,不知道代码怎么改,急,在线等,
//---------------------------------1
t1.d1.onRelease = function() {
t1.onEnterFrame = function() {
_root.t1.createEmptyMovieClip("x1", 1);
with (_root.t1.x1) {
lineStyle(3, 0x000000, 100);
lineTo(_xmouse, _ymouse);
}
};
};
a1.onRelease = function() {
delete t1.onEnterFrame;
};
//---------------------------------2
t2.d1.onRelease = function() {
t2.onEnterFrame = function() {
_root.t2.createEmptyMovieClip("x2", 2);
with (_root.t2.x2) {
lineStyle(3, 0x000000, 100);
lineTo(_xmouse, _ymouse);
}
};
};
a2.onRelease = function() {
delete t2.onEnterFrame;
}; 展开
//---------------------------------1
t1.d1.onRelease = function() {
t1.onEnterFrame = function() {
_root.t1.createEmptyMovieClip("x1", 1);
with (_root.t1.x1) {
lineStyle(3, 0x000000, 100);
lineTo(_xmouse, _ymouse);
}
};
};
a1.onRelease = function() {
delete t1.onEnterFrame;
};
//---------------------------------2
t2.d1.onRelease = function() {
t2.onEnterFrame = function() {
_root.t2.createEmptyMovieClip("x2", 2);
with (_root.t2.x2) {
lineStyle(3, 0x000000, 100);
lineTo(_xmouse, _ymouse);
}
};
};
a2.onRelease = function() {
delete t2.onEnterFrame;
}; 展开
1个回答
2011-04-30
展开全部
代码有误!!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询