getChildAt returns a DisplayObject. DisplayObject does not define a BD property. You'll have to cast the result of getChildAt to something that does, or something dynamic, like MovieClip.