如何将事件侦听器声明为公共的,以便所有功能都可以使用它?
// Coded needed below to declare Event
function addEventL()
{
/// Declares it in a function
myMovie.addEventListener(MouseEvent.CLICK, menuIn);
}
function removeEventL()
{
/// This does not work because it was first called in a function.
/// So it can not find the event Listener to remove.
myMovie.removeEventListener(MouseEvent.CLICK, menuIn);
}