Waving flag with external text

First of all I’d like to mention that i’m a totally newbye with flash and actionscript

I’d like to load some external text inside a movie clip that contains a bitmap from library.

It is a waving flag created via AS2 with “Waving***EffectAS2” from flash-filter.net

the code is:

 
// attach filter on stage
var myFilter:MovieClip = this.attachMovie("WavingFlagEffectAS2", "WavingFlagEffectAS2", 1);
 
// init the filter with parameter
myFilter.init(_root.img_mc, 15, 90, "none", 3, 120, 120, false);
 
// set a listener to get an event when the transition in done 
var eventListener = new Object();
eventListener.onComplete = function(){
 trace("transition done");
}

rainFilter.addEventListener("onComplete",eventListener);

img_mc is the movie clip that contains the .png file and i want the text parsed from an external file (xml, php etc.) to have the same waving flag effect.

Thanks in advance