I'm not sure. I always use the import statement instead of qualifying with package names. Try adding:
import fl.events.ComponentEvent;
and then change your code to:
a_txt.addEventListener(ComponentEvent.ENTER, aEnter);
function aEnter(e:ComponentEvent):void
{
}
Note. I also added the argument name "e" to the function call declaration.
source
share