Textfield not showing in browser but in preview

Hi again! More weird problems, I’m like a magnet.

I create a textfield object using AS3, then I use a URLLoader to get data from a MYSQL database via a PHP script. It all works well when I’m viewing through “Publish Preview -> Flash” but when I view using a browser the text never shows.

Anyone that know what this might be?

var bodyText:TextField = new TextField();
bodyText.multiline = true;
bodyText.textColor = 0xffffff;
bodyText.x = (stage.stageWidth - bodyText.width)/2;
bodyText.y = (stage.stageHeight - bodyText.height)/2;

//Start loading external data
var bodyTextLoader:URLLoader = new URLLoader();
bodyTextLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
bodyTextLoader.addEventListener(Event.COMPLETE, onDataLoad);
    bodyTextLoader.load(new URLRequest("http://localhost/posts.php"));

function onDataLoad(evt:Event)
    bodyText.htmlText = "<b>"+evt.target.data.Body+"</b>";