RE: [flexcoders] newline in a tooltip?

2007-09-21 Thread Merrill, Jason
Make the text htmlText and then use br or sometimes you may need two
br tags
 

Jason Merrill 
Bank of America  
GTO Learning  Leadership Development 
eTools  Multimedia Team 


 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of nathank000
Sent: Friday, September 21, 2007 11:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] newline in a tooltip?



we are using tooltips as a general form of help, indicated by a
questionmark. With this in mind is there any way to go to a new
line
in a toool tip?
I have tried 
\r\n
\r
\n
br

all of which just show up as text in the tool tip...
Thanks in advance!
-nathan



 



RE: [flexcoders] newline in a tooltip?

2007-09-21 Thread Gordon Smith
Are you using \r and \n in an MXML text=... attribute or in a script
method?
 
The use of \ as an escape character is an AS thing. In MXML attributes
you have to follow the XML rules and write a carriage-return as #13; or
#xD; and a newline as #10; or #xA; .
 
br should work in the htmlText property, set either in an MXML
attribute or in ActionScript.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nathank000
Sent: Friday, September 21, 2007 8:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] newline in a tooltip?



we are using tooltips as a general form of help, indicated by a
questionmark. With this in mind is there any way to go to a new line
in a toool tip?
I have tried 
\r\n
\r
\n
br

all of which just show up as text in the tool tip...
Thanks in advance!
-nathan