I am runing a word macro and it creates a .txt file and then runs a .swf file. the .swf file loads the text file and based on its content it performs diferent functions. For example if the word exit is in the text file then flash will not display a movie clip for example.
How could I create a .txt file using ActionScript or save a var as text so that my word macro can then search for that .txt file and depending on what words that file has then thats what word will execute. I have the following code to load the textfile into flash:
var req:URLRequest = new URLRequest("external.txt");
var loader:URLLoader = new URLLoader();
external_txt.text = loader.data;
external_txt.appendText(" Here's some additional text!");