Hiya:
My current project is a turn builder for a role playing game. Each turn has 30 
actions, and each action may have up to 6 entry fields, which may be dropdown 
menus, number spinners, text fields and like that. The actions are in a list, 
rendered by a complex itemRenderer. 

There are about 80 combinations of itemRenderer controls that I am managing by 
view states, and that part is going very well.

Where I am puzzled is this: how do I talk to the list's itemRenderers from 
parentApplication? When the turn has been assembled and submitted, I want all 
30 itemRenderers to switch back to the basic viewState. I tried something like 
this:

for (var i:int = 0; i < 30; i++){
 theList[i].itemRenderer.currentState = 'action';

}

but the system does not like it.

Any ideas how the parent application can change viewState in a list's item 
renderer?

Thanks.

a

Reply via email to