**Hi,
What is the correct syntax to initiate a function in a class similar to constructing an associative array? I have a function that’s custom variables is ballooning out and I’d like to label them in the call for sanity sake.**
currently:
myClass.myClassFunction(“hello world”,999,0xff0000);
desired:
myClass.myClassFunction(myText:“hello world”,myNumber:999,myColor:0xff0000);
and the class itself for reference:
class com.myClass {
[INDENT]public var myText:String;
public var myNumber:Number;
public var myColor:Number;
public function myClassFunction(myText:String,myNumber:Number,myColor:Number){
}
[/INDENT]}
Thanks!
Jacob :stormtrooper: