Hi,
I have a external classes for my buttons that have events attached to them.
package {
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.EventDispatcher;
public class MenuButtons extends MovieClip {
public function MenuButtons():void
{
** addEventListener(MouseEvent.CLICK, EventListeners.clickIt());**
addEventListener(MouseEvent.MOUSE_OVER, expandMenu);
addEventListener(MouseEvent.MOUSE_OUT, retractMenu);
}
What I want to do is create an external EventListeners.as class which detects this click
package {
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.events.EventDispatcher;
public class EventListeners extends Sprite {
public function EventListeners():void
{
}
public function clickIt():void
{
trace('this is has been clicked');
}
}
}
I think I am a fair bit off, can anyone help?
Thanks