# Text not showing up when publishing

**URL:** <https://forum.kirupa.com/t/text-not-showing-up-when-publishing/307882>\
**Category:** Uncategorized\
**Created:** [April 12, 2010, 6:38pm UTC](https://forum.kirupa.com/t/text-not-showing-up-when-publishing/307882 "2010-04-12T18:38:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oluc](https://avatars.discourse-cdn.com/v4/letter/o/cc9497/32.png) [@oluc](https://forum.kirupa.com/u/oluc)\
**Post date:** [April 12, 2010, 6:38pm UTC](https://forum.kirupa.com/t/text-not-showing-up-when-publishing/307882/1 "2010-04-12T18:38:01Z")

</div>

Hey!  
I cant for the life of me figure out why text is not showing up when I publish. I get no errors. And I DO have the font exported for AS in the FLA file.  
Do you see what I am doing wrong?

```auto
[FONT=monospace]
[/FONT]
[FONT=monospace][/FONT]package asFiles.stageElements{

     
     import flash.display.*;
     import flash.text.*;
     
     public class Titles extends Sprite {
          
          public var titleHolder:Sprite;
          public var titleFormat:TextFormat;
          public var titleField:TextField;
          
          public var textTitle:String = new String ("TITLE");

          
          public function Titles() {
               setFormat();
          }
          
          public function setFormat():void {
               
               titleFormat = new TextFormat();
               titleFormat.color = 0xffffff;
               titleFormat.font = "Helvetica";
               titleFormat.letterSpacing = 4;
               titleFormat.size = 12;
               titleFormat.align = TextFormatAlign.CENTER;
               
               createTitle();
          }
          
          public function createTitle():void {
               
               titleField = new TextField();
               titleField.text = textTitle;
               titleField.embedFonts = true;
               titleField.setTextFormat(titleFormat);
               titleField.autoSize = TextFieldAutoSize.CENTER;
               titleField.selectable = false;
               titleField.antiAliasType = AntiAliasType.ADVANCED;
               titleField.width = 900;
               titleField.x -= titleField.width/2;
               
               titleHolder = new Sprite;
               titleHolder.y = 190;
               titleHolder.x = 640;
               titleHolder.addChild(titleField);
               addChild(titleHolder);
          }
     }
}

```

thanks for any help!
