On 3/25/08, mavdzee <[EMAIL PROTECTED]> wrote:

>  I have noticed that when I create an MXML component in ActionScript,
>  that the children of the MXML component are not created until I add it
>  as a child of another component. Is there any way to force creation of
>  children before it is added? I tried playing with creationPolicy and
>  createComponentsFromDescriptors() but none of this helps.

What happens if you call initialize() on the object?

If you get runtime errors when you try to initialise the object that
way, then maybe the framework requires the object to be on the display
list. Well, tough luck. Another option is to add the objects to an
invisible container in the application; once you get the
'creationComplete' event, you can remove the object and in the end
just destroy the invisible container. I don't if that'll lead to other
problems, but try it out.

Manish

Reply via email to