States and components
I am trying to figure out how I can get buttons in a component perform a state
change. My base state has 3 MXML components. Each one is based on a vBox
(vBox1, vBox2, vBox3). vBox1 has three buttons in it created using a repeater.
On the click method I would like vBox1...3 to become invisible and I want a
chart and hSlider to appear.
This all works if vBox1 is part of the main MXML file. But when I make it
it's own MXML component the states no longer work. Do I need to reference the
states differently since they are in a different MXML file? I tried copying
the states to the vBox1 MXML file and that did not help either.
|