# Help using FlashVar parameters

**URL:** <https://forum.kirupa.com/t/help-using-flashvar-parameters/327108>\
**Category:** Uncategorized\
**Created:** [February 6, 2012, 3:52pm UTC](https://forum.kirupa.com/t/help-using-flashvar-parameters/327108 "2012-02-06T15:52:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Sellix](https://avatars.discourse-cdn.com/v4/letter/e/76d3ee/32.png) [@Eric\_Sellix](https://forum.kirupa.com/u/Eric_Sellix)\
**Post date:** [February 6, 2012, 3:52pm UTC](https://forum.kirupa.com/t/help-using-flashvar-parameters/327108/1 "2012-02-06T15:52:45Z")

</div>

Hi there Kirupa people. Here’s the issue:

I’m passing in a variable from my FlashVar parameters: gameToken, which will control the visibility of several objects through out my movie. The objects are in different frames and all have different labels: review\_btn, introReview\_btn, endGame\_btn. gameToken is being randomly generated by the clients 3D environment, and then passed in the embed code. gameToken would look something like this:

> **[COLOR=#000000][FONT=Arial]a543239089298bf2c6ea3518929a0249[/FONT][/COLOR]**

```auto
var gameToken:Object=LoaderInfo(this.root.loaderInfo).parameters.game_token;

```

What I need to have happen is something like this:

```auto
if(gameToken == null){//if there is no game token, do not render the review button    
review_btn.visible=false;
}

```

I had some success using this method before, but only for a single object. Now when I try and repeat the method with the various other objects all I’m getting is a headache. At no point in my movie does gameToken ever get set to anything other than null (I’m not testing within my webspace yet).

What am I doing wrong? Any help you can lend me is much appreciated.
