# Sending an argument to a external SWF

**URL:** https://forum.kirupa.com/t/sending-an-argument-to-a-external-swf/74362
**Category:** flash
**Created:** [December 28, 2004, 1:10pm UTC](https://forum.kirupa.com/t/sending-an-argument-to-a-external-swf/74362 "2004-12-28T13:10:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Akirasan](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Akirasan](https://forum.kirupa.com/u/Akirasan)
#### Post date: [December 28, 2004, 1:10pm UTC](https://forum.kirupa.com/t/sending-an-argument-to-a-external-swf/74362/1 "2004-12-28T13:10:19Z")

</div>

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
