Problem
Need add event for a button. So after clicking to the button on iPhone i need change map screen to main iPhone screen.
Solution
Using addEventListener, CLICK and a function.
Detailed explanation
my_btn.addEventListener(MouseEvent.CLICK, closeAll);
function closeAll(event:MouseEvent):void
{
map_mc.visible=false;
}


Source:
handling_events
