Dynamicacly loading HTML

Hey, I’ve got the hang of dynamicaly loading text, but I need to load HTML with some images, searching the forums I came upon some bits of pieces of answers, but nothing concrete.

So far I came up with this, but it dosent work.

main.html=true;

loadText = new loadVars();
loadText.load(“main.txt”);
loadText.onLoad = function() {
scroller.html=true;
scroller.html = this.maintext;
scroller.htmlText = this.maintext;

};

Well…
Thanks ahead of time!`

You cant load in HTML pages into flash. Sorry.

But can you load HTML files (images and sort of) dynamicaly, or something…

you can use load image but it will only load images which will be stored on a website you jsut got to tell flash where its located so it can load it sort of like when you link images in DW you have to specify the path where its stored :wink:

try this:

loadText = new loadVars(); 
loadText.onLoad = function(success) {
if(success) {
scroller.html=true;
scroller.htmlText = this.maintext;
} else {
trace("failed to load file");
}
}
loadText.load("main.txt");

it should work :wink:

[edit]

only these html tags can be used though

http://www.macromedia.com/support/flash/ts/documents/htmltext.htm

but I need to load HTML with some images,
Right, but you can’t load in images into a dynamic text box. You’ll have to load in the pictures seperately from the text. Right?