# Reassign class variable to a blank instance of its class

**URL:** <https://forum.kirupa.com/t/reassign-class-variable-to-a-blank-instance-of-its-class/324644>\
**Category:** flash\
**Created:** [September 1, 2011, 1:47am UTC](https://forum.kirupa.com/t/reassign-class-variable-to-a-blank-instance-of-its-class/324644 "2011-09-01T01:47:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sogj](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sogj/32/3189_2.png) [@sogj](https://forum.kirupa.com/u/sogj)\
**Post date:** [September 1, 2011, 1:47am UTC](https://forum.kirupa.com/t/reassign-class-variable-to-a-blank-instance-of-its-class/324644/1 "2011-09-01T01:47:32Z")

</div>

When I declare a class variable

```auto
private var myVar:MyClass = new MyClass();

```

It creates a new instance of that class that will trace as [Object MyClass].

However, as soon as I assign it to something

```auto
myVar = thisOtherVar;

```

It will now trace as [Object thisOtherVar].

I need to get it back to where it’s just an “empty” blank class instance, if that makes any sense at all.

How do I go about doing that? Thanks! ![](http://forums.adobe.com/images/emoticons/happy.gif)
