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.


On Dec 16, 2010, at 7:05 PM, Nathan Mynarcik wrote:

> Take out the "e:MouseEvent" in your doSubmit function.
> On Dec 16, 2010 6:40 PM, "DONALD TALCOTT" <dtalc...@mindspring.com> 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
>> dtalc...@mindspring.com
> 

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