Should I handle unexpected arguments of a function?

As3 function and arguments?

  • Hi guys, well here is my question im trying to create a function with differences arguments for example function doSomething(option1, option2, option3) { if(this == option1){ dosomething; } if(this == option2){ dosomething; } if(this == option3){ dosomething; } that's the function now i want to send the an option using on mouse event for example button.addEventListener(MouseEvent.Cli… here i wan to add the function with an specific argument) any help will be highly appreciate i hope it make sense

  • Answer:

    What language are you using? Your pseudocode looks right though.

Charlye at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.