What you will need to do is set the Base Class on both apple and pear to your item
class. Then, you will set the Class to Apple
for apple, and Pear
for pear.
Depending on your settings, you may get a warning telling you that
A definition for this class could not be found in the classpath, so one will be automatically generated in the SWF file upon export.
This is not an error, and you may dismiss it.
You will also want to make sure that your item
Base Class extends from either the MovieClip
or Sprite
class.