# Passing a flash variable from a flash.swf?var=this to itself

**URL:** <https://forum.kirupa.com/t/passing-a-flash-variable-from-a-flash-swf-var-this-to-itself/136364>\
**Category:** Uncategorized\
**Created:** [February 4, 2005, 4:02am UTC](https://forum.kirupa.com/t/passing-a-flash-variable-from-a-flash-swf-var-this-to-itself/136364 "2005-02-04T04:02:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![orionstar](https://avatars.discourse-cdn.com/v4/letter/o/51bf81/32.png) [@orionstar](https://forum.kirupa.com/u/orionstar)\
**Post date:** [February 4, 2005, 4:02am UTC](https://forum.kirupa.com/t/passing-a-flash-variable-from-a-flash-swf-var-this-to-itself/136364/1 "2005-02-04T04:02:50Z")

</div>

Hello,

I am trying to pass variables as shown below to the same swf file.

Here is the pertinent part of the parameters in the html code that points to the [url=“[Passing a flash variable from a flash.swf?var=this to itself. - Adobe: Flash - Tek-Tips](http://www.tek-tips.com/viewthread.cfm?qid=998934&page=1#)”]flash file, where in this instance would be the same as the one referenced below.

> 

\<embed src=“NS7.swf?colorsheme=green” loop=“false” quality=“high” bgcolor=“#ffffff” width=“676” height=“144” name=“NS7” align=“middle” allowScriptAccess=“sameDomain” type=“application/x-shockwave-flash” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” /\>

What I haven’t figured out is how to bring those variables in so I can do an

if (colorscheme==green) {  
GotoandPlay(this)  
}

How do I call upon those varaibles?

Thanks in advance.
