What are the conditions under which I can use contentGroup.addElement(elementX)? I tried to use it, but the application didn't seem to recognize it. I imported FlexEvents.
Sounds like you are using a SkinnableContainer of some sort. Is there a reason you aren't using just myContainer.addElement() rather than myContainer.contentGroup.addElement() ?
I wanted to add components through AS instead of through mxml so I viewed a tutorial on Lynda.com. The only reason i'm doing it this way is because this is the only way I knew how to do it. I just don't know any better at this point.
Can you provide some sample code that demonstrates how you are using it?