ColBalt
19 Sep 2007, 08:52 PM
This forum looks promising. :nod:
I am trying to load a text file into a text box (in Dreamweaver) from a command from a Flash actionscript.
My actionscript:
button1.onRelease = function(success) {
if (success) {
text_box.htmlText = loader.info;
} else {
text_box.text = "error.";
}}
loader.load("Lorem1.txt");
"text_box" is the ID of the text box I want to load the text file into
Is this the right direction? Do I pre-load the file from the Flash file?
I'm not a complete n00b at this. I can usually figure this stuff out, but I'm quite stuck here. Help with my action-scripting and HTML coding would be greatly appreciated.
Cheers
I am trying to load a text file into a text box (in Dreamweaver) from a command from a Flash actionscript.
My actionscript:
button1.onRelease = function(success) {
if (success) {
text_box.htmlText = loader.info;
} else {
text_box.text = "error.";
}}
loader.load("Lorem1.txt");
"text_box" is the ID of the text box I want to load the text file into
Is this the right direction? Do I pre-load the file from the Flash file?
I'm not a complete n00b at this. I can usually figure this stuff out, but I'm quite stuck here. Help with my action-scripting and HTML coding would be greatly appreciated.
Cheers