Class within a class

public var blob:Blob = new Blob()
addChild.child(blob)

i get this error
Call to a possibly undefined method child through a reference with static type Function.