attachMovie will not render in avi

I’m trying to have an attached movieclip in code render in an avi file. I Googled this before, but its tough to find since its a really specific issue.

For example, if I place a clip on the stage manually, it will of course render when I export it to an avi. But when I have something placed with code it does not. I really want to use the coded movieclips. Is there a remedy for this?