# Custom class problem

**URL:** https://forum.kirupa.com/t/custom-class-problem/189188
**Category:** flash
**Created:** [May 14, 2006, 10:56pm UTC](https://forum.kirupa.com/t/custom-class-problem/189188 "2006-05-14T22:56:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![thomaskay](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@thomaskay](https://forum.kirupa.com/u/thomaskay)
#### Post date: [May 14, 2006, 10:56pm UTC](https://forum.kirupa.com/t/custom-class-problem/189188/1 "2006-05-14T22:56:34Z")

</div>

Hi,

I’m trying to write some nice tidy code. But I’m getting stuck…

I’ve created a class at authortime, and linked it to an .as file that has this in it:

> class When extends MovieClip {  
> public function createCalendar() {  
> this.attachMovie(“datesymbol”, “mcDate”, this.getNextHighestDepth(), {\_x : 80, \_y : 0});

```
  this["mcDate"].onPress = function ():Void {
  trace("You clicked mcDate.");
  this["mcDate"]._x = 10;

```

};

```
}

```

}

In the library I’ve got a symbol called datesymbol. It gets created ok, and when I click on mcDate, it does the trace. But it won’t change the x position. Do I need to update or something?

Tom
