# MovieClip with linked Class and initialization parameters

**URL:** https://forum.kirupa.com/t/movieclip-with-linked-class-and-initialization-parameters/187281
**Category:** flash
**Created:** [April 28, 2006, 1:25am UTC](https://forum.kirupa.com/t/movieclip-with-linked-class-and-initialization-parameters/187281 "2006-04-28T01:25:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![12vUnion](https://avatars.discourse-cdn.com/v4/letter/1/b5ac83/32.png) [@12vUnion](https://forum.kirupa.com/u/12vUnion)
#### Post date: [April 28, 2006, 1:25am UTC](https://forum.kirupa.com/t/movieclip-with-linked-class-and-initialization-parameters/187281/1 "2006-04-28T01:25:38Z")

</div>

So I have a movieclip that I want to play nice with my class file. So I set the linkage and all that and it works. But, my initialization function gets called with no parameters, because I have not set any. How do I do that with this method?

I’ve tried something like:

```auto
import tab;
tab1_mc = new tab("left", 5, 55, "testclip.swf", 0);

```

And that sets the parameters, but not before the linkage on the MovieClip fires. Any thoughts on how to get the best of both worlds?
