3 Replies Latest reply on Jun 25, 2011 8:32 AM by rickbreda1

    change font of text created by createTextField();




      I am making a little flash game for a project at school. Because for some reason it didn't work with creating a textfield in the design, I created the textfield with this piece of code:


      var literWater = 1250;

      var gramGraan = 1000;


      createTextField("nogDoen", 1,50,50,300,100);

      function nog()


      nogDoen.text = "Je moet nog "+literWater+" liter water en "+gramGraan+" gram graan verplaatsen.";




      Now what I can't figure out, is how to change the font of this textfield. I would like it to be something like Arial, 30pt. How should I do this?

      Thanks in advance!