level 1
wm5081190
楼主
源代码:
fscommand("fullscreen", "true");
_root.hong.onPress = function() {
_root.hong.startDrag();
//鼠标按下,“hong”影片被拖动
x0 = _root.red._x;
y0 = _root.red._y;
x1 = 65;
y1 = 105;
//获取“red”和“hong”影片的坐标值
};
_root.hong.onRelease = function() {
_root.hong.stopDrag();
//鼠标松开,“hong”影片停止拖动
if (_root.red.hitTest(_root.hong)) {
_root.hong._x = x0;
_root.hong._y = y0;
//当“hong”影片碰到了“red”影片后,“hong”影片自动到达“red”影片的位置
_root.hong.stopDrag();
_root.fankui = "答案正确,非常出色!";
//当括号中的“red”影片与“hong”碰撞后,反馈正确结果
} else {
_root.hong._x = x1;
_root.hong._y = y1;
//当“hong”影片没有到达“red”影片位置时,“red”影片返回初始位置。
_root.fankui = "答案错误,继续努力!";
}
};
//上面的语句实现对“hong”影片进行拖动并且反馈出配对结果。
_root.hei.onPress = function() {
_root.hei.startDrag();
//鼠标按下,“hei”被拖动
x0 = _root.black._x;
y0 = _root.black._y;
x1 = 155;
y1 = 105;
//获取“black”和“hei”影片的坐标值
};
_root.hei.onRelease = function() {
_root.hei.stopDrag();
//鼠标松开,“hei”影片停止拖动
if (_root.black.hitTest(_root.hei)) {
_root.hei._x = x0;
_root.hei._y = y0;
//当“hei”影片碰到了“black”影片后,“hei”影片自动到达“black”影片的位置
_root.hei.stopDrag();
_root.fankui = "答案正确,非常出色!";
//当括号中的“black”影片与“hei”碰撞后,反馈正确结果
} else {
_root.hei._x = x1;
_root.hei._y = y1;
//当“hei”影片没有到达“black”影片位置时,“hei”影片返回原始位置。
_root.fankui = "答案错误,继续努力!";
}
};
//上面的语句是对“hei”影片进行拖动并且反馈出配对结果。
_root.lan.onPress = function() {
_root.lan.startDrag();
//鼠标按下,“lan”被拖动
x0 = _root.blue._x;
y0 = _root.blue._y;
x1 =240;
y1 = 105;
//获取“blue”和“lan”影片的坐标值
};
_root.lan.onRelease = function() {
_root.lan.stopDrag();
//鼠标松开,“lan”影片停止拖动
if (_root.blue.hitTest(_root.lan)) {
_root.lan._x = x0;
_root.lan._y = y0;
//当“lan”影片碰到了“blue”影片后,“lan”影片自动到达“blue”影片的位置
_root.lan.stopDrag();
_root.fankui = "答案正确,非常出色!";
//当括号中的“blue”影片与“lan”碰撞后,反馈正确结果
} else {
_root.lan._x = x1;
_root.lan._y = y1;
//当“lan”影片没有到达“blue”影片位置时,“lan”影片返回原始位置。
_root.fankui = "答案错误,继续努力!";
}
};
//上面的语句是对“lan”影片进行拖动并且反馈出配对结果。
_root.lv.onPress = function() {
_root.lv.startDrag();
//鼠标按下,“lv”被拖动
x0 = _root.green._x;
y0 = _root.green._y;
x1 =320;
y1 = 105;
//获取“green”和“lv”影片的坐标值
};
_root.lv.onRelease = function() {
_root.lv.stopDrag();
//鼠标松开,“lv”影片停止拖动
if (_root.green.hitTest(_root.lv)) {
_root.lv._x = x0;
_root.lv._y = y0;
//当“lv”影片碰到了“green”影片后,“lv”影片自动到达“green”影片的位置
_root.lv.stopDrag();
_root.fankui = "答案正确,非常出色!";
//当括号中的“green”影片与“lv”碰撞后,反馈正确结果
} else {
_root.lv._x = x1;
_root.lv._y = y1;
//当“lv”影片没有到达“green”影片位置时,“lv”影片返回原始位置。
_root.fankui = "答案错误,继续努力!";
}
};
//上面的语句是对“lv”影片进行拖动并且反馈出配对结果。
_root.bai.onPress = function() {
_root.bai.startDrag();
//鼠标按下,“bai”被拖动
x0 = _root.white._x;
y0 = _root.white._y;
x1 =420;
y1 = 105;
//获取“white”和“bai”影片的坐标值
};
_root.bai.onRelease = function() {
_root.bai.stopDrag();
//鼠标松开,“bai”影片停止拖动
if (_root.white.hitTest(_root.bai)) {
_root.bai._x = x0;
_root.bai._y = y0;
//当“bai”影片碰到了“white”影片后,“bai”影片自动到达“white”影片的位置
_root.bai.stopDrag();
_root.fankui = "答案正确,非常出色!";
//当括号中的“white”影片与“bai”碰撞后,反馈正确结果
} else {
_root.bai._x = x1;
_root.bai._y = y1;
//当“bai”影片没有到达“white”影片位置时,“bai”影片返回原始位置。
_root.fankui = "答案错误,继续努力!";
}
};
//上面的语句是对“bai”影片进行拖动并且反馈出配对结果。

2019年03月04日 13点03分
1
fscommand("fullscreen", "true");
_root.hong.onPress = function() {
_root.hong.startDrag();
//鼠标按下,“hong”影片被拖动
x0 = _root.red._x;
y0 = _root.red._y;
x1 = 65;
y1 = 105;
//获取“red”和“hong”影片的坐标值
};
_root.hong.onRelease = function() {
_root.hong.stopDrag();
//鼠标松开,“hong”影片停止拖动
if (_root.red.hitTest(_root.hong)) {
_root.hong._x = x0;
_root.hong._y = y0;
//当“hong”影片碰到了“red”影片后,“hong”影片自动到达“red”影片的位置
_root.hong.stopDrag();
_root.fankui = "答案正确,非常出色!";
//当括号中的“red”影片与“hong”碰撞后,反馈正确结果
} else {
_root.hong._x = x1;
_root.hong._y = y1;
//当“hong”影片没有到达“red”影片位置时,“red”影片返回初始位置。
_root.fankui = "答案错误,继续努力!";
}
};
//上面的语句实现对“hong”影片进行拖动并且反馈出配对结果。
_root.hei.onPress = function() {
_root.hei.startDrag();
//鼠标按下,“hei”被拖动
x0 = _root.black._x;
y0 = _root.black._y;
x1 = 155;
y1 = 105;
//获取“black”和“hei”影片的坐标值
};
_root.hei.onRelease = function() {
_root.hei.stopDrag();
//鼠标松开,“hei”影片停止拖动
if (_root.black.hitTest(_root.hei)) {
_root.hei._x = x0;
_root.hei._y = y0;
//当“hei”影片碰到了“black”影片后,“hei”影片自动到达“black”影片的位置
_root.hei.stopDrag();
_root.fankui = "答案正确,非常出色!";
//当括号中的“black”影片与“hei”碰撞后,反馈正确结果
} else {
_root.hei._x = x1;
_root.hei._y = y1;
//当“hei”影片没有到达“black”影片位置时,“hei”影片返回原始位置。
_root.fankui = "答案错误,继续努力!";
}
};
//上面的语句是对“hei”影片进行拖动并且反馈出配对结果。
_root.lan.onPress = function() {
_root.lan.startDrag();
//鼠标按下,“lan”被拖动
x0 = _root.blue._x;
y0 = _root.blue._y;
x1 =240;
y1 = 105;
//获取“blue”和“lan”影片的坐标值
};
_root.lan.onRelease = function() {
_root.lan.stopDrag();
//鼠标松开,“lan”影片停止拖动
if (_root.blue.hitTest(_root.lan)) {
_root.lan._x = x0;
_root.lan._y = y0;
//当“lan”影片碰到了“blue”影片后,“lan”影片自动到达“blue”影片的位置
_root.lan.stopDrag();
_root.fankui = "答案正确,非常出色!";
//当括号中的“blue”影片与“lan”碰撞后,反馈正确结果
} else {
_root.lan._x = x1;
_root.lan._y = y1;
//当“lan”影片没有到达“blue”影片位置时,“lan”影片返回原始位置。
_root.fankui = "答案错误,继续努力!";
}
};
//上面的语句是对“lan”影片进行拖动并且反馈出配对结果。
_root.lv.onPress = function() {
_root.lv.startDrag();
//鼠标按下,“lv”被拖动
x0 = _root.green._x;
y0 = _root.green._y;
x1 =320;
y1 = 105;
//获取“green”和“lv”影片的坐标值
};
_root.lv.onRelease = function() {
_root.lv.stopDrag();
//鼠标松开,“lv”影片停止拖动
if (_root.green.hitTest(_root.lv)) {
_root.lv._x = x0;
_root.lv._y = y0;
//当“lv”影片碰到了“green”影片后,“lv”影片自动到达“green”影片的位置
_root.lv.stopDrag();
_root.fankui = "答案正确,非常出色!";
//当括号中的“green”影片与“lv”碰撞后,反馈正确结果
} else {
_root.lv._x = x1;
_root.lv._y = y1;
//当“lv”影片没有到达“green”影片位置时,“lv”影片返回原始位置。
_root.fankui = "答案错误,继续努力!";
}
};
//上面的语句是对“lv”影片进行拖动并且反馈出配对结果。
_root.bai.onPress = function() {
_root.bai.startDrag();
//鼠标按下,“bai”被拖动
x0 = _root.white._x;
y0 = _root.white._y;
x1 =420;
y1 = 105;
//获取“white”和“bai”影片的坐标值
};
_root.bai.onRelease = function() {
_root.bai.stopDrag();
//鼠标松开,“bai”影片停止拖动
if (_root.white.hitTest(_root.bai)) {
_root.bai._x = x0;
_root.bai._y = y0;
//当“bai”影片碰到了“white”影片后,“bai”影片自动到达“white”影片的位置
_root.bai.stopDrag();
_root.fankui = "答案正确,非常出色!";
//当括号中的“white”影片与“bai”碰撞后,反馈正确结果
} else {
_root.bai._x = x1;
_root.bai._y = y1;
//当“bai”影片没有到达“white”影片位置时,“bai”影片返回原始位置。
_root.fankui = "答案错误,继续努力!";
}
};
//上面的语句是对“bai”影片进行拖动并且反馈出配对结果。
