# New weirdness for an AS3 coder :(

**URL:** <https://forum.kirupa.com/t/new-weirdness-for-an-as3-coder/326140>\
**Category:** flash\
**Created:** [November 25, 2011, 12:28am UTC](https://forum.kirupa.com/t/new-weirdness-for-an-as3-coder/326140 "2011-11-25T00:28:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlesg](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@charlesg](https://forum.kirupa.com/u/charlesg)\
**Post date:** [November 25, 2011, 12:28am UTC](https://forum.kirupa.com/t/new-weirdness-for-an-as3-coder/326140/1 "2011-11-25T00:28:03Z")

</div>

Hi, here is another thing that I don’t get. Lets say I have this class

```auto

class GoOnStageDamnYou extends MovieClip
{
    public static var symbolName:String = "__Packages.GoOnStageDamnYou";
    private static var symbolOwner:Function = GoOnStageDamnYou;
    private static var symbolLinked = Object.registerClass(symbolName, symbolOwner);
    
    public function GoOnStageDamnYou() 
    {
        this.beginFill(0x00ff00);
        this.moveTo(0, 0);
        this.lineTo(30, 0);
        this.lineTo(30, 30);
        this.lineTo(0, 30);
        this.lineTo(0, 0);
        this.endFill();
    }
}

```

How can I instanciate it first and then put it on stage… I tried different things but it won’t draw itself.

If I try this nothing happens:

```auto

this.attachMovie(GoOnStageDamnYou.symbolName, "test", this.getNextHighestDepth());

```

Please help, I’m getting frustrated 🙂
