# Get url variable to flash

**URL:** <https://forum.kirupa.com/t/get-url-variable-to-flash/278169>\
**Category:** Uncategorized\
**Created:** [December 23, 2008, 11:29am UTC](https://forum.kirupa.com/t/get-url-variable-to-flash/278169 "2008-12-23T11:29:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alapimba](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@alapimba](https://forum.kirupa.com/u/alapimba)\
**Post date:** [December 23, 2008, 11:29am UTC](https://forum.kirupa.com/t/get-url-variable-to-flash/278169/1 "2008-12-23T11:29:04Z")

</div>

Hi, i’m getting an url variable to flash using some javascript code.

Everything works fine and i get the variable to my dynamic text field but only on the root. if i put the text field on a movie clip it don’t work anymore. Any clue on how to fix it?

i’m getting the variable with

```auto
<param name="movie" value="teste.swf'+document.location.search+'" />

```

on the flash i just write the variable name and it works.  
something like [http://www.kirupa.com/nome.html?var1=alapimba](http://www.kirupa.com/nome.html?var1=alapimba)

and alapimba appears on my flash file.

What can i do to fix this? ☹
