Sending an argument to a external SWF

Hi,

I’m working on a flash website with PHP integration. My doubt is how to load a external SWF passing to it variables as arguments?

Example: I have a SWF that is a search form, the results are shown in this SWF. The results are the name of a person, when somebody click on the result (name), a new “window” open and show more details about that user.

How to pass to this new window the ID of the name clicked?

Another question: In the search form, the “OK” button will call a PHP page that returns with the search’s results. I’m thinking in format the data in array’s like:

search_data[[id,name],[id,name],[id,name],…] or two arrays:

search_id[id,id,id,…]
search_name[name,name,name,…]

With that, I can create the search list with buttons. What do you think?

Thanks everybody