Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem w/ createTextField wordWrap

Status
Not open for further replies.

dzr

Programmer
Nov 20, 2001
109
US
This isn't wrapping... it displays everything else fine....


this.createTextField("caption",1,100,310,260,75);
fmtEmphasis = new TextFormat();
fmtEmphasis.bold = true;
fmtEmphasis.multiline = true;
fmtEmphasis.wordWrap = true;
fmtEmphasis.size = 11;
fmtEmphasis.font = "Tahoma";
caption.text = "The secret of a Stradivarius violin's heavenly sound may actually have celestial origins. A tree-ring dating expert at the University of Tennessee and a climatologist at Columbia University offer a new theory.

caption.setTextFormat(fmtEmphasis);


I'm so clueless..........arrgghh
 
Because it should be applied to the textfield and not within the text format...

caption.wordWrap = true;

So would "multiline"!

Regards,

cubalibre2.gif
 
fantastic! thanks so much!!!

i take it the other formatting "fmtEmphasis.size = 11;" etc. are correct...

you rule!
 
Look up the property summary for the TextFormat(object) in the AS dictionary.

Or the property summary for the TextField(object) also in the AS dictionary.

Regards,

cubalibre2.gif
 
ok thanks. i'm trying to put all this together but sometimes dealing with flash makes me crazy...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top