Old 17-02-2004, 14:04   #1 (permalink)
jacobaa
Registered User
 
Join Date: Feb 2004
Posts: 8
dynamic text - multiline

I have text coming in via remoting. I can see the text, however it will not multiline for some reason. I have checked the height of the text box and set it to 500 which should be sufficient. Anyone got any ideas? Here is the code:

// CREATING HEADLINE TEXT FORMAT /////////////////////////////////////////
headformat = new TextFormat();
headformat.font = "HelveticaNeue Condensed";
headformat.bold = true;
headformat.size = 36;
headformat.multiline = true;

createTextField("headLine",this.uiDepth++,13,17,11 4,500);

// HEADLINE TEXT ////////////////////////////////////////
headLine.text = result.items[0].c_Textline;
headLine.selectable = false;
headLine.multiline = true;
headLine.setTextFormat(headformat);
headLine.embedFonts = true;
  Reply With Quote
Old 17-02-2004, 14:28   #2 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
use svg?
  Reply With Quote
Old 17-02-2004, 16:06   #3 (permalink)
gray
i still want paying
 
gray's Avatar
 
Join Date: Oct 2003
Location: newcastle, uk
Posts: 4,728
just wondering, why do you do all of that instead of using dynamic text field tool? what is the advantage?
  Reply With Quote
Old 17-02-2004, 16:17   #4 (permalink)
jacobaa
Registered User
 
Join Date: Feb 2004
Posts: 8
Quote:
Originally Posted by gray
just wondering, why do you do all of that instead of using dynamic text field tool? what is the advantage?

Its coming in from a database.. plus i like creating it dynamically cause its more organized. By the way - I figured it out if anyone needs to know for further use - just add this to the existing code

headLine.wordWrap = true;
  Reply With Quote
Old 17-02-2004, 16:23   #5 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
good man. come back and post the answer. like to see more of that round here.

btw - i'm liking the look of your site
  Reply With Quote
Old 18-02-2004, 09:23   #6 (permalink)
jacobaa
Registered User
 
Join Date: Feb 2004
Posts: 8
Quote:
Originally Posted by Brown
good man. come back and post the answer. like to see more of that round here.

btw - i'm liking the look of your site

thanks Brown... I haven't really done anything with it besides put some beats I made on it, but I wanna spend some time developing it within the next few months.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8