I know that in C# when you pass an object (non primitive) to a method the following is true:
Also, you can pass a reference to a reference in C# e.g this.changeObject(ref myObject);, in which case:
My question:
Is this possible to do in Flex/Actionscript - can a ref keyword be used?
No, you cannot. ActionScript doesn't have a ref keyword or a similar (double pointer like) concept. You always pass object references to functions (except for primitives) and modifications are reflected back.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With