PDA

View Full Version : class & subclass 1152ing


boomshanka
07-07-2009, 02:33 AM
heya...

i have a subclass ('BasicDefence') extending a class ('Basic') .

each class is linked to 2 seperate MovieClips in the Library that contain another declared MovieClip 'goColour' .

when i compile i get :
1152: A conflict exists with inherited definition Basic.goColour in namespace public .

when i link both MCs with just 'Basic' its ok .


any ideas ? its a bit of logic my brain is missing .

boomshanka
07-07-2009, 07:07 AM
I've unchecked 'Automatically declare stage instances' but that causes issues elsewhere .

Any takers ? i'm not 'getting' what is happening here .

the binary
07-07-2009, 09:14 AM
you'll have to make 'goColour' a public or protected (but i think its public) property of the class..