Groups | Blog | Home
all groups > flash actionscript > july 2004 >

flash actionscript : MX2004


marley boy
7/4/2004 9:42:18 PM
I have a .fla which is bugging me because it *nearly* does what i want, but i'm
not certain that i'm even using the right method..

at the moment i've got an external .txt file which loads some content and
displays it as HTML, & i'm formatting it from an external .css file. OK so far,
but in my HTML is a link to another .txt file, which only works when i click on
it *twice*. what am i doing wrong? (see the attached files)

i've had some feedback elsewhere suggesting i use 'loadVars' instead of
'loadVariablesNum', but to be honest i don't yet understand how the methods
work / are different.

any help much appreciated
kglad
7/4/2004 10:08:03 PM
you're not waiting for your variables to load before executing
display_txt.htmlText = HTMLpage. to remedy use:

function myFunction(file_name) {
loadVariablesNum(file_name, 0);
_level0.onData=function(){
display_txt.htmlText = HTMLpage;
//trace(file_name);
}
}
AddThis Social Bookmark Button