# How can flash recieve a variable

**URL:** <https://forum.kirupa.com/t/how-can-flash-recieve-a-variable/19159>\
**Category:** Uncategorized\
**Created:** [April 24, 2003, 8:08pm UTC](https://forum.kirupa.com/t/how-can-flash-recieve-a-variable/19159 "2003-04-24T20:08:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ibanez](https://avatars.discourse-cdn.com/v4/letter/i/a4c791/32.png) [@Ibanez](https://forum.kirupa.com/u/Ibanez)\
**Post date:** [April 24, 2003, 8:08pm UTC](https://forum.kirupa.com/t/how-can-flash-recieve-a-variable/19159/1 "2003-04-24T20:08:44Z")

</div>

from a querystring? Is it possible?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 24, 2003, 10:58pm UTC](https://forum.kirupa.com/t/how-can-flash-recieve-a-variable/19159/2 "2003-04-24T22:58:28Z")

</div>

CGI?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 25, 2003, 12:09am UTC](https://forum.kirupa.com/t/how-can-flash-recieve-a-variable/19159/3 "2003-04-25T00:09:50Z")

</div>

I can use asp and I can get into the same html page that contains my flash movie. How do I get the variable INTO the movie? I only know how to get it into a text box and I need it as a variable.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 25, 2003, 12:22am UTC](https://forum.kirupa.com/t/how-can-flash-recieve-a-variable/19159/4 "2003-04-25T00:22:58Z")

</div>

do a search of the forums for loadVariables

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 25, 2003, 12:51am UTC](https://forum.kirupa.com/t/how-can-flash-recieve-a-variable/19159/5 "2003-04-25T00:51:11Z")

</div>

gee … thanks, but I couldn’t find what I was looking for there.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 25, 2003, 1:01am UTC](https://forum.kirupa.com/t/how-can-flash-recieve-a-variable/19159/6 "2003-04-25T01:01:49Z")

</div>

[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary425.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary425.html)

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=18681&highlight=load+a+variable](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=18681&highlight=load+a+variable)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 25, 2003, 2:28am UTC](https://forum.kirupa.com/t/how-can-flash-recieve-a-variable/19159/7 "2003-04-25T02:28:33Z")

</div>

ok, but the question is: If I’m writing the variable to the same html file that the movie is embedded in. Here is the source, maybe that will clarify my question.

\<HTML\>  
\<HEAD\>  
\<meta http-equiv=Content-Type content=“text/html; charset=ISO-8859-1”\>  
\<TITLE\>displaynews\</TITLE\>  
\</HEAD\>  
\<BODY bgcolor="#000000" onload=“window.focus();”\>  
\<div style=“visibility: hidden;”\>  
[COLOR=red]varnum=21[/COLOR]  
\</div\<  
\<!-- URL’s used in the movie–\>  
\<!-- text used in the movie–\>  
\<!–\<P ALIGN=“LEFT”\>\</P\>–\<\<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” name=“displaynews”  
codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0)”  
WIDTH=“380” HEIGHT=“230” id=“displaynews” ALIGN=""\>  
\<PARAM NAME=movie VALUE=“displaynews.swf”\> \<PARAM NAME=quality VALUE=high\> \<PARAM NAME=bgcolor VALUE=#000000\> \<EMBED src=“displaynews.swf” quality=high bgcolor=#000000 WIDTH=“380” HEIGHT=“230” NAME=“displaynews” ALIGN=""  
TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)”\>\</EMBED\>  
\</OBJECT\>  
\</BODY\>  
\</HTML\>

Normally I load information from a completely seperate file with no problem. The reason I have a problem this time is because I need the varible in this file because of the querystring.

Is there a way I can pass it using javascript?
