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
dtalc...@mindspring.com





_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to