Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load html

Status
Not open for further replies.

999000333

Programmer
Nov 20, 2006
39
Hello is it possible to load a html file like we do for swf files?
for a swf we use loadMovie...but for an html file?
Thank you
Paola
 
Hello billwatson
I created a dynamic text field in my Flash file called myText and there I put this code

myData = new LoadVars();
myData.onLoad = function() {
myText.html=true;

};
myData.load("testlive.html");


Where testlive.html is the html file I want to upload when a user enter my website.


Can you please let me know what I'm doing wrong? creating a dinamic text is a way to go?

Thank you.
 
Code:
myHtml = new XML();
myHtml.ignoreWhite = true;
myHtml.load("testLive.html");
myHtml.onLoad = function() {
myText.html=true
	myText.htmlText = myHtml;
};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top