如何使用 Actionscript 2 解决多项选择测验
我创建了一个多项选择问题。它在自定义下拉菜单中有 3 个选项。每当此下拉菜单中的点击计数为 2 时,应在 ActionScript 2 中显示正确答案。
var click_count:Number=0;
drop_1_btn.onPress = function()
{
click_count = click_count + 1;
gotoAndStop(1);
an = 1;
trace(click_count);
};
drop_2_btn.onPress = function()
{
click_count = click_count + 1;
gotoAndStop(1);
an = 2;
trace(click_count);
};
drop_3_btn.onPress = function()
{
click_count = click_count + 1;
gotoAndStop(1);
an = 3;
trace(click_count);
};
i have created a multiple choice question .it hav 3 options in a custom made dropdown menu.whenever click count is 2 in this dropdownmenu should display correct answer in actionscript 2.
var click_count:Number=0;
drop_1_btn.onPress = function()
{
click_count = click_count + 1;
gotoAndStop(1);
an = 1;
trace(click_count);
};
drop_2_btn.onPress = function()
{
click_count = click_count + 1;
gotoAndStop(1);
an = 2;
trace(click_count);
};
drop_3_btn.onPress = function()
{
click_count = click_count + 1;
gotoAndStop(1);
an = 3;
trace(click_count);
};
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里,我创建了一个名为
click_cnt
的文本框,并将其alpha
设置为 0..here i have created a textbox named
click_cnt
and put itsalpha
is to 0..