I would like to write some clips, but it seems do not work.

my test.as file:
class test extends MovieClip {
  function test() {
    this.lineStyle(1, 0xff0000, 100);
    this.moveTo(50,50);
    this.lineTo(111,111);
  }
}


code in first frame script:
var aline;
aline = new test();
stop();


Why the clip does not draw anything!?

But if i modify the class definition as follows:
class test extends MovieClip {
  var mc;
  function test() {
    this.mc = _root.createEmptyMovieClip( "mc1", 10);
    this.mc.lineStyle(1, 0xff0000, 100);
    this.mc.moveTo(50,50);
    this.mc.lineTo(111,111);
  }
}


evrything is ok.

So, must be create a property and assign a new mc to it,
or it possible to use simply the this. object for drawing ?

Thanks if someone could help.