# Unique class for each movieClip?

**URL:** <https://forum.kirupa.com/t/unique-class-for-each-movieclip/325401>\
**Category:** flash\
**Created:** [October 13, 2011, 11:15am UTC](https://forum.kirupa.com/t/unique-class-for-each-movieclip/325401 "2011-10-13T11:15:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominatus](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@dominatus](https://forum.kirupa.com/u/dominatus)\
**Post date:** [October 13, 2011, 11:15am UTC](https://forum.kirupa.com/t/unique-class-for-each-movieclip/325401/1 "2011-10-13T11:15:38Z")

</div>

Hello 🙂

This is what I am trying to do. I have a “n” number of dynamicly loaded movieclips (ships). Each ship has a unique movement throught points that I also load from an xml file. For example “Ship A” will go to x:100 y:120 then to x:200 y:300 and so on. Ship B has a diffrent set of points that will travel. I know how to make this work for one movieclip(ship). I was wondering if I can use the same “movement” class for all of them? What values should I pass to the class exept the movement array of each ship? How should I build a class that will “play” like an “enterFrame” for each ship? If my question is stupid I apologise :).

Chris
