Estou tentando mudar a propriedade de um componente de um viewState
antes de ele ser mostrado.

Crio meu componente assim

<mx:AddChild relativeTo="{btn_busca}" position="before"
creationPolicy="ALL">
                                <mx:TextInput x="1" y="48" width="120" 
id="txt_telres"/>
                        </mx:AddChild>

Usei o creationPolicy="ALL" pq o guide diz assim:

When you use the targetFactory property to specify the child, you can
optionally use the creationPolicy property to specify the creation
policy. The creationPolicy property supports the following values:

auto Creates the child instance when it is first added by a change to
the view state. This is the default value. In ActionScript, specify
this property by using the mx.core.ContainerCreationPolicy.AUTO
constant.

all Creates the child instance at application startup. In
ActionScript, specify this property by using the
ContainerCreationPolicy.ALL constant. This is equivelant to using the
target property.


Ou seja, eu esperava que mesmo que o state não fosse carregado, eu já
pudesse setar a propriedade do meu componente, mas eu não consigo.
Sempre fala que meu objeto é  null object reference.
--~--~---------~--~----~------------~-------~--~----~
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para [email protected]
Para sair da lista, envie um email em branco para 
[email protected]
Mais opções estão disponíveis em http://groups.google.com/group/flexdev
-~----------~----~----~----~------~----~------~--~---

Responder a