all groups > macromedia flash sitedesign > may 2005 >
You're in the

macromedia flash sitedesign

group:

Importing HTML


Importing HTML AnnemariSA
5/30/2005 9:10:57 AM
macromedia flash sitedesign:
I have a website with a Flash homepage. I need to update the homepage about
once a week and it would be much easier for me if I can just upload a html file
instead of the flash.

Is it possible to load a html file into a flash file? I know it is possible to
do txt but can you do it with html?
Re: Importing HTML merlinvicki
5/30/2005 9:18:45 AM
hi anne,

Check out this thread for loading external html files into ur flash movie at
runtime:

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=194&thre
adid=1007308

However keep in mind that the loaded html will be cached, which may sometimes
result in ur movie not showing ur latest updated file. for that u have to call
the html using a random query string at the end, like

yourhtml.html?math.random()


Re: Importing HTML AnnemariSA
5/30/2005 9:30:22 AM
Re: Importing HTML merlinvicki
5/30/2005 10:10:17 AM
NO this code is only for MX04, Check this code for MX:

var my_vars = new LoadVars();
my_vars.onLoad = function(success) {
if (success) {
trace("file loaded");
my_text.text = textvariable;
//textvariable is the variable in ur textfile
} else {
trace("Error loading file");
}
};
my_vars.load("my_file.txt");

AddThis Social Bookmark Button