Forums: Flash:

 

assigning a single class to multiple movieclips on stage

first
 

Big Ern assigning a single class to multiple movieclips on stage

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

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

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.

 
first
 

Forums: Flash: assigning a single class to multiple movieclips on stage

 
New Post
 
You must be logged in to post