I know that in C #, when you pass an object to a (non-primitive) method, the following is true:
- Passing an object reference
- Changes made to an object in a method are reflected outside the method.
Alternatively, you can pass the link to the link in C #, for example, this.changeObject (ref myObject); , and in this case:
- Changes to the object as well as ref ref are reflected outside the method, for example. myObject = new new List (); will change the location of the transferred objects.
My question is:
Can this be done in Flex / Actionscript - can the ref keyword be used?
source
share