Error 1152 > Subclass > MovieClip has text field
hi,
i have movie clip "obstacle" simple game. have class (obstacle.as) creates it, , moves it.
in obstacle there text field - use testing right now.
the above works fine!
now
i want make obstacle (haybale) - subclass (haybale.as). have working. accept text field.
it pitches error:
1152: conflict exists inherited definition com.screenscape.game:obstacle.mydisplay in namespace public.
this means super class has property mydisplay , attempt declare again in subclass. not allowed. in subclass need instantiate mydisplay - not declare it.
More discussions in ActionScript 3
adobe
Comments
Post a Comment