Moving an object created with drawing API

This is one of those things that seems like it should be really simple but doesn’t work.

I’m trying to create a movieClip using the drawing API, but once I do so I can’t get it to move with ActionScipt. My code looks (basically) like this:


drawBox = function (options) {[INDENT]beginFill();
lineStyle(blah);
moveTo(blah);
lineTo(blah);
/* etc. */
[/INDENT]}

var shape = this.createEmptyMovieClip("shape1", 1);
drawBox.apply(shape1, [params]);

shape1.onEnterFrame = function () {[INDENT]this._x += 20;
[/INDENT]}

If I trace shape1’s x value, the number increases, but the box on the screen doesn’t actually move. What am I missing?