ActionScript 2 to ActionScript 3 weirdness – getBounds()
Friday, January 22nd, 2010
In AS2, we can use the movieclip method getBounds returns 4 values: xMin, xMax, yMin and yMax, which can be traced like so:
var bounds:Object = this.getBounds(this._parent);
for (var i in bounds) {
trace(i+” –> “+bounds[i]);
}
I’m getting the dimensions of the movieclip my current clip (this) is attached to. The [...]