A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to change the font size for a Input Text box in Flash AS2

  1. #1
    Junior Member
    Join Date
    Sep 2015
    Posts
    3

    How to change the font size for a Input Text box in Flash AS2

    Hi.

    I am currently using Flash CS6 to make a Kaiju fighting game called Brink of Armageddon: Age of the Kaiju. Anyway, I plan on having a password system in the game, were you can type in passwords to unlock new playable monsters, arenas, and more, but I am wondering how I can change the font size of the input text box in AS2, so the text can be bigger.

    Can someone help?

    Thanks,
    G&G-Fan

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    It seems you might have some problems ahead whilst making a monster game if you are unable to change the size of a font at this stage.

    Dynamic:
    PHP Code:
    var textFormat:TextFormat = new TextFormat();
    textFormat.size 14;
    inputText.setTextFormat(textFormat); 
    Direct code: not directly input type though
    PHP Code:
    inputText.html true;
    inputText.htmlText "<font size='14'>Font size</font>"
    or simjply use the properties panel within flash

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center