I have a main template swf file, and within this another swf file which contains everything else. I used the loadVariables action to load an external data file (which contains HTML) into a textfield, and when checking to see if this works it loads up fine. However when i test the outer swf file, this does not come up at all.
I tried putting the full path to the file (I’m currently working offline, so the path is to a file on the computer). I don’t know how else i can fix this. I would be grateful if someone could help me on this problem please!
Don’t know if this will work but it certainly helped me fix my preloader in the old days :P. Try changing it to _root. if it doesn’t work.
If none of this works - maybe you have to convert the textbox into a movieclip and then tell the load code to specifically load it INTO the movieclip.
–
Addition: On the main swf, on the frame that loads the second swf, you can add that load code instead of on the inside of it. This is another method. But it’s complicated. Try what I said up there first.
oops sorry for some reason it didn’t work though. maybe cos you told me to add a variable name to it as well :*(
contentArea.text = this.myContent;
there was this bit also that took the text from the file im assuming, and putting it into the dynamic box. But i tried this and it didn’t work at all for some reason :-/
Ok now that problem has been fixed… another one. Lol.
I want to be able to load different external text files when a user clicks on the buttons, how do i go about that? cos it doesn’t seem to be working :S
Is there a specific way in which i should do this? eg. all different data on the same scene, or in separate scenes?
they are all going to be loaded into the same dynamic text box. Sort of like having an iframe i guess, when you click on a link it takes you to some different content
Just add the loading code for each button and assign it to load into the dynamic textbox, this should be simple. It should just automatically change the text once you press the button.