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