# Loading HTTP attributes in flash?

**URL:** <https://forum.kirupa.com/t/loading-http-attributes-in-flash/260552>\
**Category:** flash\
**Created:** [May 16, 2008, 5:47pm UTC](https://forum.kirupa.com/t/loading-http-attributes-in-flash/260552 "2008-05-16T17:47:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoransoko](https://avatars.discourse-cdn.com/v4/letter/z/ebca7d/32.png) [@zoransoko](https://forum.kirupa.com/u/zoransoko)\
**Post date:** [May 16, 2008, 5:47pm UTC](https://forum.kirupa.com/t/loading-http-attributes-in-flash/260552/1 "2008-05-16T17:47:45Z")

</div>

Hallo Everybody!

I have 2 questions about HTTP attributes.

1. 

If I have this URL:

```auto
http://sitename/mainmovie.swf?file=dir/movie.swf&adv=adv/advmovie.swf

```

…how can I load the values for ‘file’ and ‘adv’ into my flash movie using Action script 3.0?

1. 

This is the URL without embedding the flash in HTML. Will it work the same with this URL:

```auto
http://sitename/mypage.php?file=dir/movie.swf&adv=adv/advmovie.swf

```

when I embed the flash?

Thanks a lot in advance.I will appreciate any help.

---

<div class="post-metadata">

**Author:** ![dail](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@dail](https://forum.kirupa.com/u/dail)\
**Post date:** [May 17, 2008, 10:48pm UTC](https://forum.kirupa.com/t/loading-http-attributes-in-flash/260552/2 "2008-05-17T22:48:46Z")

</div>

Hey,

You need to use javascript to access the browser URL, and then parse that result, grabbing your vars.  
[http://www.flexer.info/2007/11/28/access-the-query-string-variables-from-flex-application/](http://www.flexer.info/2007/11/28/access-the-query-string-variables-from-flex-application/)  
has some examples of it.

---

<div class="post-metadata">

**Author:** ![zoransoko](https://avatars.discourse-cdn.com/v4/letter/z/ebca7d/32.png) [@zoransoko](https://forum.kirupa.com/u/zoransoko)\
**Post date:** [May 18, 2008, 9:56pm UTC](https://forum.kirupa.com/t/loading-http-attributes-in-flash/260552/3 "2008-05-18T21:56:00Z")

</div>

Thanks Dail,

I will do something like that.
