Search code examples
actionscript-3textboxadobeflash-cs3autoresize

textbox autoresizing in actionscript3


I need to realize textbox autoresizing in actionscript3(IDE - adobe flash pro cs3). For example my textarea is in width 100 px, user has been wrote in it something, that is bigger than 100 px, then my textbox should become increasingly. any ideas?

Also I can't realize multiline option: when the text goes beyond the textbox, it starts to scroll. In line type I've chosen 'multiline'.

thanks


Solution

  • try this:

    textfield.autoSize = "left";
    textfield.multiline = true;
    textfield.wordWrap = true;
    

    Hope it helps, Rob