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

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support