When i run this it throws an error when trying to register de
EventListener in the CampoTexto component because the ctrl property
is null. On the PickList component there is no error when
registering the EventListener. As you can see in the
application.mxml i am passing the Controller reference (ctrl) to
the PickList component and this one passes it to the CampoTexto
component. The problem is that by the time the CampoTexto component
is being created the tag and ctrl properties of the PickList are
still null, their values have not been initialized yet, so that's
why the CampoTexto component throws the error.
Does anyone know how to solve this?? How can i initialize the
properties on the PickList Component on time so when the CampoTexto
components is being created it can read these values?