Should itemCreationPolicy be inherited by default?
Hello, I'm new to the forum and I have been toying around with Gumbo for a while now. I tend to use states a lot and did notice that setting itemCreationPolicy to immedate is the new way to go if you want to have your controls initiated in order to work with them in actionscript before a specific state is entered. Nesting buttons and textinput controls inside containers like Box or Panel and setting includeIn or excludeFrom on those containers works like a charm, but if I want to have a specific control inside a container instantiated immedately I have to set includeIn and itemCreationPolicy on every child of the container that appears before the control I want to have access to in actionscript.
Example:
<mx:VBox horizontalAlign="center" width="100%" height="100%" id="receiverSearchBox" includeIn="FindReceiver,FindReceiverLoading,FindReceiverEx" itemCreationPolicy="immediate">
<mx:Text text="{resourceManager.getString('evoChat2008','message_receiver_long')}" styleName="standardLabel" includeIn="FindReceiver,FindReceiverLoading,FindReceiverEx" itemCreationPolicy="immediate" />
<mx:TextInput id="txtReceiver" styleName="inputBox" enter="receiverSearchClick(null);" includeIn="FindReceiver,FindReceiverLoading,FindReceiverEx" itemCreationPolicy="immediate" />
</mx:VBox>
If itemCreationPolicy was inherited to the childs of a container it would require a lot less redundant mxml code. Besides that I think the new states syntax is pretty clean and elegant.
