this
in your event handler function does not refer to your apple instance. (Are you coming from AS2 maybe?) this
is the reference to your class/timeline where your listener code is located and which does not have any itemName variable defined. To be able to retrieve the name you would have to do something like:
Apple(e.currentTarget).itemName //assuming that Apple is your class of the apple instance.