Hi guys i am trying to call a function which is defined in main.mxml
public function btnAcceptCall_clickHandler(event:MouseEvent)
{
.....
}
now i have a component mxml which calls this function
in this mxml i have defined a function
private function addNewCaller(event:MouseEvent):void
{
mx.managers.PopUpManager.removePopUp(this);
Main.btnCallAndProfile_clickHandler(event)
}
The problem is it gives an error
Call to a possibly undefined method btnCallAndProfile_clickHandler through a reference with static type Class.
anyone can point out what is the problem.??
Regards