Button to put data into an external swf

[COLOR=Black][COLOR=#1F497D]How can I set up a button, when clicked puts a string into a newly created swf file which is then saved.
[COLOR=Black][COLOR=#1F497D]I actually want to attachMovie’s to this newly created swf but thought I would start off simple.[/COLOR][/COLOR]

Any ideas anyone?

Greatly appreciated.