# What's wrong?

**URL:** <https://forum.kirupa.com/t/whats-wrong/185298>\
**Category:** Uncategorized\
**Created:** [April 12, 2006, 10:13am UTC](https://forum.kirupa.com/t/whats-wrong/185298 "2006-04-12T10:13:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdmt](https://avatars.discourse-cdn.com/v4/letter/g/b3f665/32.png) [@gdmt](https://forum.kirupa.com/u/gdmt)\
**Post date:** [April 12, 2006, 10:13am UTC](https://forum.kirupa.com/t/whats-wrong/185298/1 "2006-04-12T10:13:34Z")

</div>

hi!  
i’d like to know what’s wrong? why it doesn’t show anything?

var my\_fmt:TextFormat = new TextFormat();  
my\_fmt.font = “font”; /\* this is the LinkageID not the symbol name. \*/  
my\_fmt.size = 8;  
this.createTextField(“svnews”, this.getNextHighestDepth(), 0, 130, 140, 230);  
svnews.setNewTextFormat(my\_fmt);  
svnews.embedFonts = true;  
svnews.multiline = true;  
svnews.wordWrap = true;  
svnews.html = true;  
svnews.selectable = false;  
svnews.\_rotation = -1;  
svnews.\_alpha = 75;

// Create a new style sheet and LoadVars object  
var myVars:LoadVars = new LoadVars();  
var styles = new TextField.StyleSheet();  
// Location of CSS and text files to load  
var txt\_url = “news.htm”;  
var css\_url = “news.css”;  
// Load text to display and define onLoad handler  
myVars.load(txt\_url);  
myVars.onData = function(content) {  
storyText = content;  
};  
// Load CSS file and define onLoad handler:  
styles.load(css\_url);  
styles.onLoad = function(ok) {  
if (ok) {  
// If the style sheet loaded without error,  
// then assign it to the text object,  
// and assign the HTML text to the text field.  
svnews.styleSheet = styles;  
svnews.text = storyText;  
}  
}

i’ll really appreciate some help or suggestions  
thanx in advance!
