Call EventListener witch is in another function
Hello, I have question and asking for help.
My script:
function A(){
// doooo somthing...
stage.addEventListener(Event.ENTER_FRAME, B);;
function B(event: Event): void {
// do something
}
}
function C(){
stage.addEventListener(Event.ENTER _ FRAME, B);
}
ERROR: 1120: Access of undefined property B.
