10 Replies Latest reply on Apr 20, 2007 1:06 PM by >Vee<

    swapping values of two vars

    >Vee< Level 1
      is it possbile to simutaneously swap two values of vars
      ex:
      var me:Number=1;
      var you:Number=0;
      _root.me.swap[you]
      trace('me: '+me+'\n'+'you: +you);
      /*result:
      me: 0
      you: 1
      */
      Is this possible... im guessing its just this easy.