Dynamically assign a link to a swf with xml

I want to dynamically assign a link to a swf with xml

That swf has a button, and a need to change that link with xml.

Can someone help me please or point me to a tutorial :ponder: