Swap and Reverse Property
Posted on 01. Apr, 2009 by thornyeternity in ActionScript 3 Snippets
Old code I learned from an Andries Odendaal workshop in about 2001. I always try to rewrite from memory but never get it right; one of the most useful things to know. Old code; update as needed. Add variables.
Allows one to – for example – increase then decrease size in a continuous toggle fashion:
this._x += movement;
if(this._x >= 380){
movement = -movement;
}else if(this._x <= 0){
movement = -movement;
}


