TwelvestoneFlash

assigning a single class to multiple movieclips on stage


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
Big Ern
 
2009-11-16

When I try to attach the same class to different movieclips in my library, I get this error:

"Please enter a unique class name that is not associated with other library symbols"

Eh?!?

I don't understand. Shouldn't different movie clips using a single class be a good thing?! I thought I was being proper OOS and shit?

Flash CS3 as3

DontBogartMe
 
2009-11-16

yup I remember hitting that one myself.

What you do is give them unique Class names like it says, but you set the Base Class to be the same. Then you define that Base Class, and you don't need to bother writing actual classes for the unique names. Make sure your Base Class extends MovieClip.

Big Ern
 
2009-11-16

Originally posted by: DontBogartMe yup I remember hitting that one myself.

What you do is give them unique Class names like it says, but you set the Base Class to be the same. Then you define that Base Class, and you don't need to bother writing actual classes for the unique names. Make sure your Base Class extends MovieClip.

that got it, thanks again dude. I feel like I'm learning flash all over again... very depressing.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

assigning a single class to multiple movieclips on stage