Take out the "e:MouseEvent" in your doSubmit function.
On Dec 16, 2010 6:40 PM, "DONALD TALCOTT" <[email protected]> wrote:
> I have the following code below. When I compile the swf,I get the
following error;
> Line 187 1136: Incorrect number of arguments. Expected 1.
>
> Have been playing with this all day, somewhat new to as3, and this has me
stumped.
> Any help/insight would be greatly appreciated.
>
>
> stage.addEventListener(KeyboardEvent.KEY_DOWN, doSubmitViaEnter);
>
> function doSubmitViaEnter(e:KeyboardEvent):void
> {
> if (e.keyCode == 13)
> {
> doSubmit(); // this is line 187
> }
> };
>
>
> function doSubmit(e:MouseEvent):void
> {
> var clip:MovieClip = active_clip.mc_form;
>
> if (fname1field.text == "" || lname1field.text == "" || email1field.text
== "" || clip.fnamefield.text == "" || clip.lnamefield.text == "" ||
clip.titlefield.text == "" || clip.emailfield.text == "")
> {
> status_txt.text = "Please fill in all required fields.";
> }
> else
> {
> //All fields valid so send away!
> status_txt.text = "Posting nomination...\nPlease wait...";
> doSend();
> }
> }
>
>
>
>
> DON TALCOTT
> 316 Greenwood Avenue
> Decatur, Georgia 30030
>
> 404.538.1642
> [email protected]
>
>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders