Can't control nested MovieClip

Hi,

In my Library I have MC called sym which contains MC called ksztalt. The Problem is I can’t control (for example .stop()) that ksztalt MC inside sym MC.

I create dynamically sym on the stage with the instance name of sym1 and I’m able to control it with:

(getChildByName("sym1") as MovieClip).stop();

but if i type

(getChildByName("sym1") as MovieClip).ksztalt.stop();

*ksztalt *MC inside sym1 MC doesn’t stop. why?

I get an error 1046: Type was not found or was not a compile-time constant: ksztalt.

PS. ksztalt is set to “Export to action script” with the name ksztalt