Hello good day,
I want to use currentState, in my jewel ApplicationResponsiveView, and I need
to retrieve the value of stateGroups but I can't get it because apparently it
is not populated in the creation of the states Array, I always retrieve
undefined.
Possibly I am leaving something unspecified ...
1. Definition
<j:states>
<js:State name="noinit" stateGroups="normal"/>
<js:State name="init" stateGroups="normal"/>
<js:State name="start" stateGroups="normal"/>
<js:State name="normal" stateGroups="normal"/>
<js:State name="filter" stateGroups="normal"/>
<js:State name="order" stateGroups="normal"/>
<js:State name="search" stateGroups="normal"/>
<js:State name="add" stateGroups="editing" />
<js:State name="edit" stateGroups="editing" />
<js:State name="start" />
<js:State name="update" />
</j:states>
1. Bead
<j:beads>
<js:ContainerDataBinding/>
<js:SimpleStatesImpl/>
</j:beads>
1. The first time I change the currentState the contents of the array is:
var icur:int = -1;
for each (var s:State in states){
icur++;
if(currentState == s.name){
iCurrentState = icur;
trace("["+icur.toString()+"] gr: "+ s.stateGroups +
"\\" + s.name);
}else{
trace("gr: "+ s.stateGroups + "\\" + s.name);
}
}
[cid:[email protected]]
Can you see what I'm missing or what I'm doing wrong?
Thx
Hiedra.