1 msgFlash Remoting Error
3 msgUndefined property in one fla, but not in the o...
1 msgSetting an AIR applications file types to default
1 msgAS3- Word Wrap for Dynamic DataGrid Cell Content
1 msg[ANN] haXe Website
3 msgBest AS3 MenuBar component for Flash CS3
7 msgRetrieve The Web Link
2 msgSet FLVPlayback source property via html queryp...
4 msgPlayer 8 and the Alert component

Why isn't my TextField multiline? AS2
\ Alistair Colling (7 May 2008)
. \ Bob Wohl (7 May 2008)
. \ Robert Leisle (7 May 2008)
. . \ Alistair Colling (8 May 2008)
. . . \ Christoffer Enedahl (8 May 2008)
. . . . \ Alistair Colling (8 May 2008)
. . . . . \ Rich Shupe (8 May 2008)
. . . . . . \ Alistair Colling (8 May 2008)
. . . . . . . \ Rich Shupe (8 May 2008)
. . . . \ Alistair Colling (8 May 2008)

16 msgFPS limit of flash player inside browser?
5 msgAS3 For loop proplem
5 msgWhy is good to extend an Event Class
2 msgKilobyte Size of AS Classes
7 msgFlash Unicode issue (Latin extended Romanian ch...
8 msgas3 sound and swf overriding one another
1 msgOT: Need help finding a List or good book on ho...
2 msgAligning images and text in textfield / textarea
1 msgWatch your debug output
1 msgUnderscore in class file path name: no-no?
Subject:Why isn't my TextField multiline? AS2
Group:Flashcoders
From:Alistair Colling
Date:7 May 2008


 
Hi there, thanks for checking this.

I'm generating a textfield from within a custom class but I can't
seem to make it multiline, I can see the border of the textfield is
the right size my text only appears on the first line and also my
carriage returns "\r" are having no effect.
I've tried a number of options for properties of the textfield but I
cant seem to get it to work.

Any suggestions thankfully received this is taking lots of time for a
simple thing!
Cheers,
Ali



Here's the code from within my class:




var oline:MovieClip = mainMC.monkey.bubble.outline
var tmpBox:MovieClip = mainMC.monkey.bubble.createEmptyMovieClip
("text_mc", 1);
var tmpField:TextField = tmpBox.createTextField("my_txt", 1,
oline._x, oline._y, oline._width, oline._height);
tmpField.selectable = false;
tmpField.border = true;
tmpField.embedFonts = true;
tmpField.type = "dynamic";
tmpField.multiline = true;
tmpField.text = Q.monkeyStr;
tmpField.setTextFormat(myM);
_______________________________________________
Flashcoders mailing list
Flashcoders
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


© 2004-2008 readlist.com