If you want to use an existing movie clip, then simply remove these lines:
code:
_root.createEmptyMovieClip('txt_mc', 1);
txt_mc._x = -100;
txt_mc.createTextField('my_txt', 1, 10, 10, 100, 50);
txt_mc.my_txt.setNewTextFormat(new TextFormat('Courier New', 24, 0x000077, true));
txt_mc.my_txt.text = "sproing!";
and substitute the name of your pre-existing movieclip for txt_mc, in the last line of the script.
If your text field is not currently inside a symbol movieclip, then put it inside one by using convert-to-symbol. This makes it easier to manipulate via actionscript. Use the properties panel to assign the name 'txt_mc' (or whatever you want to use) to the new symbol.
- Jim




Reply With Quote