Tuesday, June 26, 2012

[Action Script] Passing multiple parameters to function June,2012

Is it possible to pass more than one variable to a function?
As an array or anything else?

The variables may sometimes only one, sometimes more than three, etc.

Would very appreciate if someone can modify the code, thanks a lot!

ActionScript Code: disableKey("key1", "key2", "key3")function disableKey(target:Array){       for(var i=0; i<target.length; i++){            target[0].doSth;       }}
Passing multiple parameters to function

Related Post



0 comments: