Actionscript帮助:生成的TextField()没有出现?

时间:2015-05-17 10:19:40

标签: actionscript-3 class flash text field

感谢您查看我的问题。我尝试了很多不同的东西,但是我无法看到我的错误在哪里。

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()

0 个答案:

没有答案
相关问题