# Assign same custom class multiple symbols

**URL:** <https://forum.kirupa.com/t/assign-same-custom-class-multiple-symbols/238807>\
**Category:** flash\
**Created:** [September 15, 2007, 2:59pm UTC](https://forum.kirupa.com/t/assign-same-custom-class-multiple-symbols/238807 "2007-09-15T14:59:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiropole](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@jiropole](https://forum.kirupa.com/u/jiropole)\
**Post date:** [September 15, 2007, 2:59pm UTC](https://forum.kirupa.com/t/assign-same-custom-class-multiple-symbols/238807/1 "2007-09-15T14:59:16Z")

</div>

I’m new to AS3 (and Flash in general) so maybe I’m trying to move lateral to convention, but here. Hopefully someone has input.

I have a case where I want to create multiple symbols, but I want each of them to associate with the same custom class (derived from MovieClip). I try to do it in the flash interface (symbol property editor) and when I associate the second one I get an error telling me I need to associate a unique class name not associated with any other symbol. What?! It’s a _CLASS_ meaning a _reusable_ category! Why does Flash enforce a 1:1 relationship between custom classes and symbols, but yet I can associate any number of symbols with the base MovieClip class? :h: argh.

Elsewhere I’ve seen posts where people speculate why one would ever need to do this? Well, it seems like a common case to me but maybe I’m missing something. For instance, I draw a complicated design in the authoring interface, something I really wouldn’t want to build up manually using AS in some parameterized class. I want to animate it as a movieclip. I want it to, let’s say, jiggle, and I have a class that does that. But I need to build 5 different custom designs, each being their own movieclip, but all of them should jiggle. Why should I not simply associate my (reusable!) Jiggler class with each of these movieclips?

Probably I’m having a newbie oversight. Any help is deeply appreciated!

-Jiro
