Can you be more specific?
NOt exactly shoudl what you are asking
Sure , so basically here is the pseudo code , I have an object , <local:KioskControlBar> that I want in multiple states. But I don't want to declare a new <local:KioskContralBar> for every state , because the amount of listeners will get crazy. In java , c++ terms , is there a way I could create a global/instance variable of my custom component. And then add the component to multiple states .
Just don't include the component in the state declarations you're creating in MXML. Those declarations define what appears and disappears in various states. If you don't include it, it won't disappear when moving to another state.
-Marty [ http://www.theflexguy.com ]
Helpful/Answered? Please mark it as such.
The trick was to use VBox containers. During initialization I create my custom components , then simply add them to the mxml VBox using AS3.
Just as the great rapper Tupac Shakur said ,
"When in doubt , pull the actionscript out".