# Class - a simple question

**URL:** https://forum.kirupa.com/t/class-a-simple-question/218490
**Category:** Uncategorized
**Created:** [March 8, 2007, 5:47am UTC](https://forum.kirupa.com/t/class-a-simple-question/218490 "2007-03-08T05:47:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![manikk](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/manikk/32/3083_2.png) [@manikk](https://forum.kirupa.com/u/manikk)
#### Post date: [March 8, 2007, 5:47am UTC](https://forum.kirupa.com/t/class-a-simple-question/218490/1 "2007-03-08T05:47:08Z")

</div>

I am starting to learn coding the class… I tried to declare a movieclip variable in a class file. But it shows an error.

```auto

class findXY 
{
 
 public var a:MovieClip=new Movieclip();
 function findXY()
 {
  
 }
 
}
 

```

in flash i have

```auto

import findXY;
var myVar:findXY=new findXY();

```

## The error message I get while running the movie is

## Line 3: There is no method with the name ‘Movieclip’. public var a:MovieClip=new Movieclip(); Total ActionScript Errors: 1 Reported Errors: 1

Where is the problem ?
