How to read different values from different domain/website/database?

Can any expert help me with this…?

I have a flash file that reads variable from a text files(eg. myhobby.txt). That is easy.

&myHobbies=swimming

Now here is the complicated/difficult part

Using the same and only flash file how do I read from different sever/database?

e.g.

there is 3 website sharing the same and only flash files.
-if website ‘A’ load the flash files it will load ‘A’ hobbies
-if website ‘B’ load the flash files it will load ‘B’ hobbies
-if website ‘C’ load the flash files it will load ‘C’ hobbies

that means there is 3 myhobby.txt files altogether in 3 different sever/database.

This is very new to me. Please help.

Thanks!