AS Tweening

I have a movieclip with the instance name of top.

I want the box to grow from right to left, not left to right.

Here is my code:


top.onEnterFrame = function() {
        var hDiff = Math.round(17-this._height)
var wDiff = Math.round(800-this._width)
        this._width += wDiff/3
        this._height += hDiff/3
}

Change the movieclip registration point to the right

Try adding this at the bottom:

[AS]
this._x -= wDiff/3;
[/AS]

Cheers,
Hans

*Originally posted by claudio *
**Change the movieclip registration point to the right **

daoh! thanks :slight_smile:

welcome :beam: