# Class Linkage

**URL:** <https://forum.kirupa.com/t/class-linkage/127915>\
**Category:** Uncategorized\
**Created:** [November 8, 2004, 12:18am UTC](https://forum.kirupa.com/t/class-linkage/127915 "2004-11-08T00:18:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghjr](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@ghjr](https://forum.kirupa.com/u/ghjr)\
**Post date:** [November 8, 2004, 12:18am UTC](https://forum.kirupa.com/t/class-linkage/127915/1 "2004-11-08T00:18:37Z")

</div>

Looked around for this but I haven’t found an answer.

Let’s say I have a class that has a constructor which accepts some parameters.

```auto
class MyClass {
var myNumber:Number;

function MyClass(number) {
myNumber = number;
}
}

```

Is there a way I can link this to a movieclip and pass the parameter? From what I’ve found there are two ways to link the class to a movieclip, one using the registerClass and another typing the name intro the Linkage Box in the Library. But in both cases there are no parameters being setup.

Thanks!
