Character/Coin hittest in as3
I am making a platformer game where there are coins. The coins are supposed to be removed once the character walks over it. I tried 

    private function coinremove(event:Event):void{
    	if(mcMain.hitTest(Coin)){
    	this.parent.removeChild(this);
    	removeEventListener(Event.ENTER_FRAME, coinremove);
    	_root.mainScore += 100;
    }

sadly, it did not work so if you have any suggestions or a better way of doing this please post here.
Character/Coin hittest in as3
===

I am making a platformer game where there are coins. The coins are supposed to be removed once the character walks over it. I tried 

    private function coinremove(event:Event):void{
    	if(mcMain.hitTest(Coin)){
    	this.parent.removeChild(this);
    	removeEventListener(Event.ENTER_FRAME, coinremove);
    	_root.mainScore += 100;
    }

sadly, it did not work so if you have any suggestions or a better way of doing this please post here.