# Var issues

**URL:** <https://forum.kirupa.com/t/var-issues/306891>\
**Category:** Uncategorized\
**Created:** [March 24, 2010, 1:26am UTC](https://forum.kirupa.com/t/var-issues/306891 "2010-03-24T01:26:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nate51](https://avatars.discourse-cdn.com/v4/letter/n/4da419/32.png) [@nate51](https://forum.kirupa.com/u/nate51)\
**Post date:** [March 24, 2010, 1:26am UTC](https://forum.kirupa.com/t/var-issues/306891/1 "2010-03-24T01:26:55Z")

</div>

I am trying to make a MC via the var command so that if one page is already open my if command will check it on a button call to action so that it does not do the same thing twice, but for some reason in AS3 the below sets of code always bring back errors and I have no idea why.

This is in my first frame as AS

```auto
var stageSet:MovieClip = blank;

```

This is in a button call to action CLICK

```auto
stageSet = contact;

```

They always bring back this  
1120: Access of undefined property blank.  
1120: Access of undefined property contact.

I tried placing the varMC on both my root and inside an MC and both times same error. Does anyone have a work around or know what is going on?

I am drawing blanks and could really use some help.
