I'm not sure I understand your scenario.  It probably depends on how you
generate your visuals and what their explicit or measured sizes are.

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of applecoremilo
Sent: Monday, January 21, 2008 12:48 AM
To: [email protected]
Subject: [flexcomponents] UIComponent addChild() not drawing UIComponent

 

I have two custom UIComponents, one is a template the other is a
template module.

I am trying to draw the template, then have the template draw the
template modules.

I"m overriding updateDisplayList and createChildren in both classes
but nothing is being rendered to screen.

I create the tag in the main mxml, give it a width and height.

The template has no constructor but the module does. Template's
createChildren function calls a method which loops through and creates
the modules and then calls the addChild function.

Any ideas why nothing is being drawn to screen?

if I create a rectangle in the createChildren method of the Template
it draws it to screen.

 

Reply via email to