Question
Problem with ActionScript
hello I encountered this error while I running an action
script file in flash cs3:
1013: The private attribute may be used only on class property
definitions.
and this is the function that make this error:
private function clickListener(e:MouseEvent):void{
var phase:String;
switch(e.eventPhase){
case EventPhase.CAPTURING_PHASE:
phase = "Capture";
break;
case EventPhase.AT_TARGET:
phase = "Target";
break;
case EventPhase.BUBBLING_PHASE:
phase = "Bubbling";
break;
}
trace("Current event phase: "+ phase);
}
thank you very much and I appreciate you .sincerly yours Mohsena
and this is the function that make this error:
private function clickListener(e:MouseEvent):void{
var phase:String;
switch(e.eventPhase){
case EventPhase.CAPTURING_PHASE:
phase = "Capture";
break;
case EventPhase.AT_TARGET:
phase = "Target";
break;
case EventPhase.BUBBLING_PHASE:
phase = "Bubbling";
break;
}
trace("Current event phase: "+ phase);
}
thank you very much and I appreciate you .sincerly yours Mohsena