感谢您查看我的问题。我尝试了很多不同的东西,但是我无法看到我的错误在哪里。
function addHighScore() {
//highscoreTable.defaultTextFormat = myFormat;
var highscoreTable: TextField = new TextField();
highscoreSec[indx] = hsSeconds;
highscoreTable.text = "CAN YOU SEE MEEEE???";
highscoreMS[indx] = hsMilliSec;
addChild(highscoreTable);
highscoreTable.border = true;
highscoreTable.x = (stage.width - highscoreTable.width) / 2;
highscoreTable.y = (stage.height - highscoreTable.height) / 2;
indx++;
}
我还导入了flash.text.TextField()