Actionscript 3 为什么';我的应用程序不会显示随机数吗?
我正在使用AdobeFlashCS6和ActionScript3.0开发一个数学应用程序。但是当我尝试在模拟器中运行它时,数字没有显示出来。此外,我无法在输入区域中键入数字3、6、7、8、9 这是我在应用程序中使用的动作脚本,请帮助我Actionscript 3 为什么';我的应用程序不会显示随机数吗?,actionscript-3,math,Actionscript 3,Math,我正在使用AdobeFlashCS6和ActionScript3.0开发一个数学应用程序。但是当我尝试在模拟器中运行它时,数字没有显示出来。此外,我无法在输入区域中键入数字3、6、7、8、9 这是我在应用程序中使用的动作脚本,请帮助我 var m:int=1+Math.floor(10*Math.random()) var n:int=1+Math.floor(10*Math.random()) angka1.text=String(m); angka2.text
var m:int=1+Math.floor(10*Math.random())
var n:int=1+Math.floor(10*Math.random())
angka1.text=String(m);
angka2.text=String(n);
periksa.addEventListener(MouseEvent.CLICK,ceksoal)
function ceksoal(event:MouseEvent):void
{
var p:int=Number(jawaban.text)
if (m+n==p){
hasil.text="Benar";
}else{
hasil.text="salah";
}
}
ulang.addEventListener(MouseEvent.CLICK,buatsoal)
function buatsoal(event:MouseEvent):void
{
m=1+Math.floor(10*Math.random())
n=1+Math.floor(10*Math.random())
angka1.text=String(m);
angka2.text=String(n);
jawaban.text="";
hasil.text="";
}
我想你的问题是因为你没有嵌入你的字体,看一看。谢谢你,我一直在努力。我发现我可以在嵌入菜单中输入更改后的号码