Hi,
I've just began playing around with OOP in AS3, and I've hit a snag at adding movieclips though a class onto the stage. At the moment, I'm trying:
package classes
{
import flash.display.MovieClip
public class Test extends MovieClip
{
function Test()
{
var box:box_link = new box_link();
box.x = 100;
box.y = 200;
addChild(box);
}
}
}
but nothing happens. No errors, no MC appearing on the stage, anything. I've tried loads of different things for the addChild, i.e. stage.addChild, parent.addChild, this.addChild etc, but none work.
I'm sure theres something blatently obvious that I'm missing out, but I have no idea what it is, so help please?
Thanks,
Tom