removeChild from inside a class

Hello,
I have a hopefully very simple problem.

I created two children from my document class “MainClass”. One (hero) is of the class “HeroDo” and another is from the class “canDy”.

public static var hero:HeroDo=new HeroDo
public static var blue:canDy=new canDy

public function MainClass () {
            this.addChild(blue)
            this.addChild(hero)
...

Now the simple thing I want to do is to remove the “blue” child from within a function of the “hero” child and the hero child to remove itself from “its inside”.

I tried this, but it gives me an error. :C

removeChild(MainClass.blue)

I’m very new to AS3, so sorry if that is a stupidly easy question.

Thanks in advance.