Difference [] and ()

Hi all,


public function setSerializationObj (obj:Serializable):void {
serializationObj = obj;
}

I do not know why author put these braces instead ().


serializationObj[serializationVars*]

Thanks for your effort of reading .

[] are used to access a property, function
() are used to invoke that function
There is also possible to do that:

someObject['someFunctionOfThatObject'] (someParam);

this is like:

someObject.someFunctionOfThatObject(someParam);

Thank you very much.