# Quick help with attaching classes

**URL:** <https://forum.kirupa.com/t/quick-help-with-attaching-classes/178574>\
**Category:** Uncategorized\
**Created:** [February 12, 2006, 2:47am UTC](https://forum.kirupa.com/t/quick-help-with-attaching-classes/178574 "2006-02-12T02:47:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zicemaster](https://avatars.discourse-cdn.com/v4/letter/z/b77776/32.png) [@zicemaster](https://forum.kirupa.com/u/zicemaster)\
**Post date:** [February 12, 2006, 2:47am UTC](https://forum.kirupa.com/t/quick-help-with-attaching-classes/178574/1 "2006-02-12T02:47:39Z")

</div>

I seem to be doing something wrong. I only wan’t to attach the classes after certain triggers during runtime.

```auto

newDepth = 20405;
import enemyPlane;
Object.registerClass(ePlane, enemyPlane);
_root.enemy7.attachMovie(ePlane, enemy7, 20548);

```

I’m trying to attach the class enemyPlane to the instance enemy7… Argh! :{

Omg… This sounds bad…

In Flash MX, Object.registerClass() is used to associate a symbol in the library to a class. This new method affects all instances of the associated symbol; unlike VMC, which affects per movieclip instance.

Damit… I guess what I’m trying to do won’t work…
