День добрый. Не удаляется слушатель таймера по клику на объекте. Ошибка:

Код:
Line 235 1180: Call to a possibly undefined method removingAll.

Код AS3:
var timerPict:Timer = new Timer (1500);
function getM(e:Event):void
{
mc.addEventListener(MouseEvent.CLICK, mcClick);
function mcClick(e:MouseEvent):void
{
removingAll();
}
}
function callShow():void
{
timerPict.addEventListener(TimerEvent.TIMER, onTimer);
timerPict.start();
function removingAll():void
{
timerPict.removeEventListener(TimerEvent.TIMER, onTimer);
}
}
Пытался сделать так:

Код AS3:
var timerPict:Timer = new Timer (1500);
var flag:int = 0;
function getM(e:Event):void
{
mc.addEventListener(MouseEvent.CLICK, mcClick);
function mcClick(e:MouseEvent):void
{
if (flag == 1)
{
removingAll();
}
}
}
function callShow():void
{
flag = 1;
timerPict.addEventListener(TimerEvent.TIMER, onTimer);
timerPict.start();
function removingAll():void
{
timerPict.removeEventListener(TimerEvent.TIMER, onTimer);
}
}
Таже ошибка