# Basic question: variable definition

**URL:** https://forum.kirupa.com/t/basic-question-variable-definition/269609
**Category:** flash
**Created:** [August 29, 2008, 2:55pm UTC](https://forum.kirupa.com/t/basic-question-variable-definition/269609 "2008-08-29T14:55:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tpann](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tpann](https://forum.kirupa.com/u/tpann)
#### Post date: [August 29, 2008, 2:55pm UTC](https://forum.kirupa.com/t/basic-question-variable-definition/269609/1 "2008-08-29T14:55:04Z")

</div>

I have a movieclip in the library called myMC, whose linked class is MyMC.

What is the difference between these two variable definitions:

```php
 
var foo = new MyMC();

```

and

```php
 
var foo:MyMC = new MovieClip();

```

Also, is one a better practice than the other?

Thanks!
