# Text Formatting Problems?

**URL:** https://forum.kirupa.com/t/text-formatting-problems/270061
**Category:** flash
**Created:** [September 4, 2008, 8:06pm UTC](https://forum.kirupa.com/t/text-formatting-problems/270061 "2008-09-04T20:06:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lotor2](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@lotor2](https://forum.kirupa.com/u/lotor2)
#### Post date: [September 4, 2008, 8:06pm UTC](https://forum.kirupa.com/t/text-formatting-problems/270061/1 "2008-09-04T20:06:13Z")

</div>

Hello,

I’m loading an external .txt file into a .swf. Everything is working well but the text is not formatting the way I want it to. I want to use the font “Futura” and I want to resize the text.

Thanks for any help you can give me!

var company\_txt:TextField = new TextField()  
//var companyReq:URLRequest = new URLRequest(“loadMovie/txtFiles/company.txt”);  
var companyReq:URLRequest = new URLRequest(“txtFiles/company.txt”);

var companyLoad:URLLoader = new URLLoader();  
var companyFormat:TextFormat = new TextFormat();

companyLoad.load(companyReq);

companyLoad.addEventListener(Event.COMPLETE, textReady);

company\_txt.x = 100;  
company\_txt.y = 200;  
company\_txt.border = true;  
company\_txt.width = 600;  
company\_txt.height = 300;  
company\_txt.wordWrap = true;

addChild(company\_txt);

function textReady(event:Event):void  
{  
company\_txt.text = event.target.data;  
}

companyFormat.font = “Futura”;  
companyFormat.color = 0x000000;  
companyFormat.size = 24;

company\_txt.setTextFormat(companyFormat);
