[FMX] Script mc.onEnterFrame problem

I’m creating a flash game much like pacman. I can get the game to work by having an instance of the food (think the yellow blobs in pacman) on frame 1 and then duplicating this many times. This works and allows me to eat the food and score points.

I am trying to make the game all script based and so am trying to call the food movieclip from the library using actionscript. The food is still created properly but does not disappear when it is run into.

I belive the problem in my file is in the actionscript in frame 1 in the function bambooOnEnterFrame() but I’m not 100%, the player and enemy functions appear to work correctly!

Any ideas please comment or ask for more info!

Thanks