Can't display TLFTextField and class prompt

hi,

I’m sure I’m missing some logic here or something… I THINK I’ve read an XML file with various fields. I want to display one XML field in one TLFTextField and another XML field in another TLFTextField when a button is clicked. One text field has the product name the other has the product description.

This is the code but I can’t seem to display anything, much less even trace any of the text string variables I THINK I’ve assigned. Any help would be greatly appreciated.

 ActionScript Code:

 [LEFT][COLOR=#993300]import[/COLOR] flash.[COLOR=#000000]events[/COLOR].[COLOR=#000000]MouseEvent[/COLOR]; 

[COLOR=#993300]import[/COLOR] fl.[COLOR=#993300]text[/COLOR].[COLOR=#000000]TLFTextField[/COLOR]; [COLOR=#993300]
import[/COLOR] flashx.[COLOR=#000000]textLayout[/COLOR].[COLOR=#993300]accessibility[/COLOR].[COLOR=#000000]TextAccImpl[/COLOR];
[COLOR=#993300]import[/COLOR] flash.[COLOR=#000000]display[/COLOR].[COLOR=#000000]Loader[/COLOR]; [COLOR=#993300]
import[/COLOR] flash.[COLOR=#000000]net[/COLOR].[COLOR=#000000]URLLoader[/COLOR]; [COLOR=#993300]
import[/COLOR] flash.[COLOR=#000000]events[/COLOR].[COLOR=#000000]Event[/COLOR]; [COLOR=#993300]
import[/COLOR] flash.[COLOR=#000000]net[/COLOR].[COLOR=#000000]URLRequest[/COLOR];

mc_slidingDoors.[COLOR=#993300]gotoAndStop[/COLOR]COLOR=#000000[/COLOR]; [COLOR=#993300]

var[/COLOR] myXML:[COLOR=#993300]XML[/COLOR];
[COLOR=#993300]var[/COLOR] itemNumber:uint = [COLOR=#000000]0[/COLOR]; [COLOR=#993300]
var[/COLOR] myLoader:Loader = [COLOR=#993300]new[/COLOR] LoaderCOLOR=#000000[/COLOR]; [COLOR=#993300]
var[/COLOR] totalItems:[COLOR=#993300]int[/COLOR] = [COLOR=#000000]0[/COLOR];
[COLOR=#993300]var[/COLOR] prodName:[COLOR=#993300]String[/COLOR]; [COLOR=#993300]
var[/COLOR] prodDescription:[COLOR=#993300]String[/COLOR]; [COLOR=#993300]
var[/COLOR] xmlLoader:URLLoader = [COLOR=#993300]new[/COLOR] URLLoaderCOLOR=#000000[/COLOR];

xmlLoader.[COLOR=#993300]load[/COLOR][COLOR=#000000]([/COLOR][COLOR=#993300]new[/COLOR] URLRequestCOLOR=#000000[/COLOR][COLOR=#000000])[/COLOR]; xmlLoader.[COLOR=#000000]addEventListener[/COLOR][COLOR=#000000]([/COLOR]Event.[COLOR=#000000]COMPLETE[/COLOR], setupXMLData[COLOR=#000000])[/COLOR]; [COLOR=#993300]

function[/COLOR] setupXMLDataCOLOR=#000000[/COLOR]:[COLOR=#993300]void[/COLOR] [COLOR=#000000]
{[/COLOR]
myXML = [COLOR=#993300]new[/COLOR] [COLOR=#993300]XML[/COLOR]COLOR=#000000[/COLOR];
totalItems = myXML.[COLOR=#000000]children[/COLOR]COLOR=#000000[/COLOR].[COLOR=#993300]length[/COLOR]COLOR=#000000[/COLOR] - [COLOR=#000000]1[/COLOR];
[COLOR=#000000] }[/COLOR]

[COLOR=#993300]function[/COLOR] displayProductCOLOR=#000000[/COLOR]:[COLOR=#993300]void[/COLOR]
[COLOR=#000000] {[/COLOR]
prodName = myXML.[COLOR=#000000]prodpage[/COLOR][COLOR=#000000][[/COLOR]itemNumber[COLOR=#000000]][/COLOR].[COLOR=#000000]prodname[/COLOR];
prodDescription = myXML.[COLOR=#000000]prodpage[/COLOR][COLOR=#000000][[/COLOR]itemNumber[COLOR=#000000]][/COLOR].[COLOR=#000000]proddescription[/COLOR]; [COLOR=#000000]
}[/COLOR]

[COLOR=#993300]var[/COLOR] myTextField:TLFTextField = [COLOR=#993300]new[/COLOR] TLFTextFieldCOLOR=#000000[/COLOR];
myTextField.[COLOR=#993300]width[/COLOR] = [COLOR=#000000]202[/COLOR];
myTextField.[COLOR=#993300]height[/COLOR] = [COLOR=#000000]170[/COLOR]; myTextField.[COLOR=#000000]x[/COLOR] = [COLOR=#000000]48[/COLOR];
myTextField.[COLOR=#000000]y[/COLOR] = [COLOR=#000000]360[/COLOR];[COLOR=#000000]
myTextField[/COLOR].[COLOR=#993300]selectable[/COLOR] = [COLOR=#993300]false[/COLOR];
myTextField.[COLOR=#993300]border[/COLOR] = [COLOR=#993300]false[/COLOR];
myTextField.[COLOR=#993300]wordWrap[/COLOR] = [COLOR=#993300]true[/COLOR];
myTextField.[COLOR=#993300]autoSize[/COLOR] = TextFieldAutoSize.[COLOR=#000000]NONE[/COLOR];

addChildCOLOR=#000000[/COLOR]; [COLOR=#993300]

var[/COLOR] myFormat:[COLOR=#993300]TextFormat[/COLOR] = [COLOR=#993300]new[/COLOR] [COLOR=#993300]TextFormat[/COLOR]COLOR=#000000[/COLOR];

myFormat.[COLOR=#993300]color[/COLOR] = 0x000000;
myFormat.[COLOR=#993300]bold[/COLOR] = [COLOR=#993300]false[/COLOR];
myFormat.[COLOR=#993300]leading[/COLOR] = [COLOR=#000000]1[/COLOR].[COLOR=#000000]5[/COLOR];
myFormat.[COLOR=#993300]font[/COLOR] = [COLOR=#0000ff]“Arial”[/COLOR];
myFormat.[COLOR=#993300]size[/COLOR] = [COLOR=#000000]15[/COLOR];
myFormat.[COLOR=#993300]italic[/COLOR] = [COLOR=#993300]false[/COLOR];
myTextField.[COLOR=#000000]defaultTextFormat[/COLOR] = myFormat;
myTextField.[COLOR=#993300]text[/COLOR] = prodName;
myTextField.[COLOR=#993300]setTextFormat[/COLOR]COLOR=#000000[/COLOR]; [COLOR=#f000f0]*

//This trace doesn’t even work*[/COLOR]…
[COLOR=#993300]trace[/COLOR]COLOR=#000000[/COLOR];

[COLOR=#993300]function[/COLOR] click1COLOR=#000000[/COLOR]:[COLOR=#993300]void[/COLOR] [COLOR=#000000]
{[/COLOR]
mc_slidingDoors.[COLOR=#000000]txt_gotoPage[/COLOR].[COLOR=#993300]text[/COLOR] = [COLOR=#0000ff]“1”[/COLOR];
myTextField.[COLOR=#993300]text[/COLOR] = prodName;

[COLOR=#993300]if[/COLOR] [COLOR=#000000]([/COLOR]mc_slidingDoors.[COLOR=#000000]currentFrame[/COLOR] == [COLOR=#000000]1[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]
{[/COLOR]
mc_slidingDoors.[COLOR=#993300]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR] [COLOR=#993300]
else[/COLOR]
[COLOR=#000000]{[/COLOR]
mc_slidingDoors.[COLOR=#993300]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR] [COLOR=#000000]
}[/COLOR]
button1.[COLOR=#000000]addEventListener[/COLOR][COLOR=#000000]([/COLOR]MouseEvent.[COLOR=#000000]CLICK[/COLOR], click1[COLOR=#000000])[/COLOR];
[/LEFT]

I’m also getting a prompt when I compile that says:

"Your content will not stream. Runtime Shared Library (RSL) preloading will require all of your content to download before the first frame will play.

To prevent this you can change the Runtime Shared Library Library Settings in the Advanced ActionScript 3.0 Settings dialog which can be raised from the Publish Settings dialog.

The Runtime Shared Libraries being preloaded are:

textLayout_1.0.0.595.swz for TLF Text"

I don’t know if this is good or bad… ANY help would be greatly appreciated.

Thanks