Then make the parameter optional: function doSubmit(e:MouseEvent=null):void
OR in your function doSubmitViaEnter method call doSubmit(null) - Benny -----Oorspronkelijk bericht----- Van: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] Namens DONALD TALCOTT Verzonden: vrijdag 17 december 2010 1:24 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] error mesg I failed to mention, also have the following for a button; mc_aim_higher.mc_form.submitBtn.addEventListener(MouseEvent.CLICK, doSubmit); If I remove "e.MouseEvent" the button won't work. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders