|
|
| AnnemariSA 2005-05-30, 7:33 am |
| 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?
| |
| merlinvicki 2005-05-30, 7:33 am |
| hi anne,
Check out this thread for loading external html files into ur flash movie at
runtime:
http://www.macromedia.com/cfusion/w...?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()
| |
| AnnemariSA 2005-05-30, 7:33 am |
| Thanks, but can you use this with Flash MX. I don't have the Flash MX2004 edition?
| |
| merlinvicki 2005-05-30, 7:33 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");
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |