CraigL
07-16-2007, 04:31 AM
Problem:
In flex I cannot set the value of a variable before the component has been shown on the screen once (creationComplete). Say for example that I have a ViewStack with two children (childX and childY). In childX I press a button and it sets a variable in childY to "hello world." This works if childY has become visible once, but not before. I tried attaching a FlexEvents.CREATION_COMPLETE to the component, but that did not work. I am assuming there is some sort of event listener that I am missing here that will tell me when a component is done being created.
(Mods if you think this would be better under Flex please move it there, It is 50% an AS3 problem, 50% Flex)
In flex I cannot set the value of a variable before the component has been shown on the screen once (creationComplete). Say for example that I have a ViewStack with two children (childX and childY). In childX I press a button and it sets a variable in childY to "hello world." This works if childY has become visible once, but not before. I tried attaching a FlexEvents.CREATION_COMPLETE to the component, but that did not work. I am assuming there is some sort of event listener that I am missing here that will tell me when a component is done being created.
(Mods if you think this would be better under Flex please move it there, It is 50% an AS3 problem, 50% Flex)