# Calling FlashVars issue

**URL:** https://forum.kirupa.com/t/calling-flashvars-issue/278124
**Category:** flash
**Created:** [December 22, 2008, 7:30pm UTC](https://forum.kirupa.com/t/calling-flashvars-issue/278124 "2008-12-22T19:30:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![peeaitchpee](https://avatars.discourse-cdn.com/v4/letter/p/9e8a1a/32.png) [@peeaitchpee](https://forum.kirupa.com/u/peeaitchpee)
#### Post date: [December 22, 2008, 7:30pm UTC](https://forum.kirupa.com/t/calling-flashvars-issue/278124/1 "2008-12-22T19:30:40Z")

</div>

Hi… I used this page: [http://www.permadi.com/tutorial/flashVars/index.html](http://www.permadi.com/tutorial/flashVars/index.html)  
to try to help me solve this issue, and at this point I believe it’s just a syntax error.

Basically, I am trying to fix a horribly done site at my job (they outsourced it before I got here) and they implemented several .swfs for who knows what reason…anyway…

these swfs are named usa\_whatever.swf aus\_whatever.swf and so on. the first three letters usa, aus, nzl and can are the naming convention for the particular country, since each swf is different. Inside each, are buttons which ideally would load different swfs i.e. usa\_something\_else.swf, nzl\_something\_else.swf…so in essence the only difference is the first three letters which is the country variable.

I am trying to use FlashVars to retrieve that, since its already in the URL. in my embed/params I am using the following

\<Param NAME=“FlashVars” VALUE=“countrycode=usa” \>

and

\<embed src=“home.swf” FlashVars=“countrycode=usa” width=“673” height="355…  
and in the button…

on (release) {  
loadMovie(\_root.countrycode + \_whatever.swf, 0);  
}

What am I missing/doing wrong here?

Thanks in advance!
