FEK315
03-04-2011, 04:12 PM
Why some functions written:
function onRotateRight(evt:MouseEvent):void{
box.rotation += 20;
}
and some are written with out the (evt:MouseEvent):void
Like this:
public function EventPropogation2() {
folder_group.addEventListener(MouseEvent.MOUSE_OVE R, onFolderOver);
folder_group.addEventListener(MouseEvent.MOUSE_OUT , onFolderOut);
}
Thank you
function onRotateRight(evt:MouseEvent):void{
box.rotation += 20;
}
and some are written with out the (evt:MouseEvent):void
Like this:
public function EventPropogation2() {
folder_group.addEventListener(MouseEvent.MOUSE_OVE R, onFolderOver);
folder_group.addEventListener(MouseEvent.MOUSE_OUT , onFolderOut);
}
Thank you