I have an illegible sentence instead of a legible one when I test the movie
How do I do this? :
Output: Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.
My code where it says "I am thinking of a number between 1 and 100" shows patchyly. So you can't read it as only a few letters are there:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class Main extends MovieClip
{
var startMessage:String;
var mysteryNumber:uint;
public function Main()
{
init();
}
function init():void
{
//Initialize variables
startMessage ="I am thinking of a number between 1 and 100";
mysteryNumber = 50;
//Initialize text fields
output_txt.text = startMessage;
input_txt.text = "";
input_txt.backgroundColor = 0xCCCCCC;
input_txt.restrict = "0-9";
stage.focus = input_txt;
}
}
}