# AS 2.0 Class help

**URL:** https://forum.kirupa.com/t/as-2-0-class-help/51113
**Category:** flash
**Created:** [May 10, 2004, 1:50am UTC](https://forum.kirupa.com/t/as-2-0-class-help/51113 "2004-05-10T01:50:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![d2kagw](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/d2kagw/32/539_2.png) [@d2kagw](https://forum.kirupa.com/u/d2kagw)
#### Post date: [May 10, 2004, 1:50am UTC](https://forum.kirupa.com/t/as-2-0-class-help/51113/1 "2004-05-10T01:50:01Z")

</div>

Hey All,

im having some troubles with as2.0 classes calling each-other.

Basically, on the root timeline I have MC Called “myMovieClip” [how original]  
and on the first frame I have :

```auto
myBox = new buildBox(myMovieClip, 100, 100)

```

then, in a AS2.0 Class file I have :

```auto
class buildBox()
{
   function buildBox(inside:MovieClip, w:Number, h:Number)
   {
	  // some AS code
	 * **inside.drawBox(w,h)***
	  // blah blah blah
	}
   // some other functions
}

```

then, in another AS2.0 Class File theres :

```auto
class drawBox extends MovieClip
{
   function drawBox(w,h)
   {
	  trace("draw box")
	  // AS Code to draw box and stuff
   }
}

```

Whenever I execute this the swf just does nothing, I have tested the script so many times and it turns out that the drawBox class is never called - I always get a “_Property Does Not Exist_” error for _MC.drawBox(100,100)_

I have also tried importing the class file on the 1st frame, but still nothing… is there anything special you need to do to register a property to a flash class - in this case the MovieClip Class? or am I doing somthing completly wrong.

thanks in advance for your help !!! 🔗
