View Full Version : Question: loading html file into a movie
Echoblade
10-18-2002, 03:56 AM
I've created flash menu for a site I'm working on. What I want to do is load html files dynamically preferably into the movie. The is reason is so I don't have to reload the menu ( for animations and other stuff ) and so updating the large text blocks would be easy. These html only contain text and text links no graphics or other tables or anything. If anyone has any ideas, links to articles, or any other information I would be grateful.
Thanks
Echoblade
spazmaster
10-18-2002, 11:59 AM
the easiest way would be to put all your text in *.txt files and to use
loadVariablesNum("textname.txt",0)
to load in your text, and assign dynamic textfields the variables you have in your textfield.
have your variables in your text file like this:
&variablename=blablabla&variablename2=bladiebladiebla
that should work :)
if you have Flash MX you should use the better LoadVars way:
//tmp is name of LoadVars Object
tmp = new LoadVars();
tmp.load("text.txt")
tmp.onLoad = function() {
//tf is the instance name of your dynamic textfield
tf.variable = "_root.tmp.variablename"
}
Echoblade
10-18-2002, 02:41 PM
Thanks Spaz, I do have MX so I'll mess around with the LoadVar() object and see what I can do figure out with it.
spazmaster
10-18-2002, 03:43 PM
check the tutorials section on this - they have good stuff there!
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.