hi, i'm seeing odd behavior in my application, whenever i use a custom
component that has states defined- my outermost viewstack stops functioning
(stops showing it's children when i change the visible child). when i take
the states out it works just fine
here's how it's laid out
main.mxml -->viewStack in this class
-- stack container 1
-----> custom component (2 states defined)
-----> custom component (2 states defined)
-- stack container 2
-- stack container 3
the states code is identical in each of the two custom components
<mx:states>
<mx:State name="graph">
<mx:SetProperty target="{graph}" name="visible" value="true" />
<mx:SetProperty target="{data}" name="visible" value="false" />
</mx:State>
<mx:State name="data">
<mx:SetProperty target="{graph}" name="visible" value="false" />
<mx:SetProperty target="{data}" name="visible" value="true" />
</mx:State>
</mx:states>
and it get's called like this
private function init():void{
this.currentState = 'graph';
}
is it a bug? i don't see why those states should affect the behavior of the
main viewstack, but i'm sure it does- anybody know what gives or know a
workaround ?
thanks,
d.