私は文字列の配列を持っています:
private var phrase:Array = ["You will be given a series of questions like this:\n2 + 2 =\n(click or press ENTER to continue)","You can use the Keyboard or Mouse\nto deliver the answer\n\"ENTER\" locks it in.\n(click or press ENTER to continue)","\nClick Here\n to start."];
phrase[0]
が と等しいかどうかを確認するためにスクリプトの後半に条件があるinstructText.text
ため、以下のように割り当ての直後に「テスト」を配置します。
instructText.text = phrase[0];
if (instructText.text == phrase[0]) {
trace("phrase zero");
}
else {
trace("nottttttttt");
}
//OUTPUT: nottttttttt
phrase[0] as String
と のさまざまな組み合わせを試しましString(phrase[0])
たが、うまくいきませんでした。
私は何が欠けていますか?