Skip to main content
Inspiring
March 9, 2007
Question

exporting text from a dynamic text field to a .txt file

  • March 9, 2007
  • 1 reply
  • 282 views
Hi

I posted a plea for help about a month ago on how I should go about searching text in another swf file. I solved that, with a little help from the forums, but I still need to do one more thing. Only 1 swf file (or page, since this is a website) is loaded at a time so I cannot search every page for a word or phrase. So what I want to do is somehow export the text in all my dynamic text fields when I export the swf file (only when I export it) which my main frame for the website can read. But I don't have a clue how to do this. I have written some code to read a .txt file so all I need is to somehow put the text from my pages into a .txt file on export. Alternatively I could copy and paste the text from each page into a readme file, but I don't want to have to update 2 sources for my website at once!

Thanks for your help; I wouldn't be able to survive without these forums

James
This topic has been closed for replies.

1 reply

Known Participant
March 10, 2007
Hey James,
Have you tried sending the data from the swf to a php file, that will in turn write the data to a text file? From there you could have another php file check for the data in the text file and have it ready for another swf to upload to a dynamic text field.
Inspiring
March 10, 2007
Hi jeeepU

Thanks for ur reply. I did think a bit about a PHP file. But I have only ever written 1 PHP file and so don't know how to write things it that language very well. Could u give me some example code?

James