How to edit and write dynamic text in flash

How could i create sth similiar like it is showed in link - http://www.flash-db.com/PerlTut/ This seems not to work for me, so another tutorial would help.

Basically, what i need to create is a another .swf file, where i could change the main .swf text (this means, .swf file, which can write the .txt fail). So i don’t need to upload .txt or .xml file over and over again to change my dynamic text on homepage.