PDA

View Full Version : State Problem - controls not visible


d000hg
03-14-2009, 05:42 PM
Here's a weird problem...

A Flex component has a base state with a Button (using graphics controlled through CSS) added onto it (e.g <State><AddChild><Button />...). For some reason, when creating this component and setting its currentState to this state, the button is not visible, even though the tooltip is and the button can be clicked. The right state is set, as demonstrated by putting a label control displaying {currentState} on the base state.

Changing the state to something else, and back again, it works fine. But it's only this one button with the problem... other graphical things are on other states in very similar ways.
Is it some kind of loading sequence bug? Any thoughts gratefully received, tearing my hair out over this one :)

mastermind81
03-20-2009, 01:15 PM
post your MXML script here