# FlashVars - Tutorials are not working!

**URL:** <https://forum.kirupa.com/t/flashvars-tutorials-are-not-working/314931>\
**Category:** flash\
**Created:** [October 12, 2010, 5:12pm UTC](https://forum.kirupa.com/t/flashvars-tutorials-are-not-working/314931 "2010-10-12T17:12:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alpha\_Remex](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@Alpha\_Remex](https://forum.kirupa.com/u/Alpha_Remex)\
**Post date:** [October 12, 2010, 5:12pm UTC](https://forum.kirupa.com/t/flashvars-tutorials-are-not-working/314931/1 "2010-10-12T17:12:23Z")

</div>

Hey Guys - I’ve followed about 10 different tutorials to access FlashVars including this one ([http://www.kirupa.com/forum/showthread.php?p=2110835](http://www.kirupa.com/forum/showthread.php?p=2110835)) and nothing is working for me.

Here is my as3 code:

```auto

public function Nav():void {
   var valueStr:String = root.loaderInfo.parameters.thisPage;
   
   switch(valueStr) {
    case "home":
     originalX = homeX;
     originalWidth = homeWidth;
     break;
    case "myServices":
     originalX = myServicesX;
     originalWidth = myServicesWidth;
     break;
    case "support":
     originalX = supportX;
     originalWidth = supportWidth;
     break;
    case "resources":
     originalX = resourcesX;
     originalWidth = resourcesWidth;
     break;
    default:
     originalX = homeX;
     originalWidth = homeWidth;
     isSubpage = true;
     lineMC.blue.alpha = 0;
     break;
   }
.
.
.

```

And my HTML code (I’ve also tried it the FlashVars way):

```auto

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="1083" height="132" id="navigation" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="navigation.swf?thisPage=home" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <embed src="navigation.swf?thisPage=home" quality="high" bgcolor="#ffffff" width="1083" height="132" name="navigation" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
        </object>
    </noscript>

```

Can anyone help?
