Is there a better way of doing this?
var b:someButton = new someButton();
b.addEventListener(MouseEvent.CLICK, dispatchEvent, false, 0, true);
function dispatchEvent(e:MouseEvent):void
{
dispatchEvent(new Event('SomeEvent',true));
}
I feel I should be able to remove the function and just have the click dispatch my custom event? Is this possible?
Thank you for your consideration,
S.