<code>
class Utilities {
public static function swap(o1:Object, o2:Object) {
var tmp:Object=o1;
o1=o2;
o2=tmp;
}
// etc
}
</code>
Somewhere in my code:
<code>
function aFunction(A:aType, B:aType) {
// ...
if (/*some condition*/)
Utilities.swap(A, B);
// ...
}
</code>
But nothing happens. A and B are still the same objects.
Must be missing something...
Alberto
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com