Archive for the ‘converting AS2 to AS3’ Category

ActionScript 2 to ActionScript 3 weirdness – getBounds()
January 22, 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 trace reveals: yMax [...]