Hi folks,

I'm looking for a way to swap two variables without coding the swap 
manually with a temporary variable. In other words, what I have now is:

   temp = a;
   a = b;
   b = temp;

In C, I could write (assuming a properly written swap() function):

   swap(&a, &b);

In Python, I could write:

   (b, a) = (a, b)

Is there any nice shorthand for Actionscript 3, either built-in or that 
I could implement?

Many thanks for any suggestions.

Reid

Reply via email to