# Referal post URL data to Flash

**URL:** <https://forum.kirupa.com/t/referal-post-url-data-to-flash/184363>\
**Category:** flash\
**Created:** [April 4, 2006, 5:11pm UTC](https://forum.kirupa.com/t/referal-post-url-data-to-flash/184363 "2006-04-04T17:11:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmniSprinter](https://avatars.discourse-cdn.com/v4/letter/o/82dd89/32.png) [@OmniSprinter](https://forum.kirupa.com/u/OmniSprinter)\
**Post date:** [April 4, 2006, 5:11pm UTC](https://forum.kirupa.com/t/referal-post-url-data-to-flash/184363/1 "2006-04-04T17:11:57Z")

</div>

Anyone know a good way to read data from the referal URL, into flash?

For example, I would like my .swf to read “id=457” from:

[www.myexampleflashsite.com/content.html?id=457](http://www.myexampleflashsite.com/content.html?id=457)

is this a php thing?

---

<div class="post-metadata">

**Author:** ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)\
**Post date:** [April 4, 2006, 5:14pm UTC](https://forum.kirupa.com/t/referal-post-url-data-to-flash/184363/2 "2006-04-04T17:14:00Z")

</div>

Theres a way to do it. But unforutunately i don’t know. Somebody should enlighten you here.

---

<div class="post-metadata">

**Author:** ![OmniSprinter](https://avatars.discourse-cdn.com/v4/letter/o/82dd89/32.png) [@OmniSprinter](https://forum.kirupa.com/u/OmniSprinter)\
**Post date:** [April 4, 2006, 6:07pm UTC](https://forum.kirupa.com/t/referal-post-url-data-to-flash/184363/3 "2006-04-04T18:07:16Z")

</div>

thanks defective.

I’ve found this [http://www.macromedia.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn\_16417&extid=tn\_16417&dialogID=113734839&iterationID=1&sessionID=4830e0e37b97521a2b2b&stateID=0+0+28376457&mode=simple](http://www.macromedia.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn_16417&extid=tn_16417&dialogID=113734839&iterationID=1&sessionID=4830e0e37b97521a2b2b&stateID=0+0+28376457&mode=simple)

which allows variables to be passed through the EMBED and OBJECT tags, but not through the URL. I can think of someway of using this to orchestrate the HTML on the fly, from a php script that recieves the vars via URL, but this is hardly ideal.

any other ideas?!?

---

<div class="post-metadata">

**Author:** ![OmniSprinter](https://avatars.discourse-cdn.com/v4/letter/o/82dd89/32.png) [@OmniSprinter](https://forum.kirupa.com/u/OmniSprinter)\
**Post date:** [April 5, 2006, 1:15am UTC](https://forum.kirupa.com/t/referal-post-url-data-to-flash/184363/4 "2006-04-05T01:15:05Z")

</div>

Found a solution that just uses Javascript [http://www.noscope.com/journal/2003/12/query\_string](http://www.noscope.com/journal/2003/12/query_string)

Works great so far.
