[flexcoders] Problem with events, how event dispatched when state change?

2007-11-11 Thread danielvlopes
Hello, I had problem, i had one viewstack this viewstack had a stack for add, one for show and other for edit content received from database. In my edit screen i need some content of fields need to be updated after saver first time, i had a method to do this, but i don't know when this metod must

Re: [flexcoders] Problem with events, how event dispatched when state change?

2007-11-11 Thread Anton K
Hi, I didn't get really what you want, but you can try to find the info here http://www.weblycan.com/blog/2006/12/_event_sequence_of_a_flex_stat.html I also had some issues with state change, may be useful for you too. Anton danielvlopes wrote: > > Hello, > > I had problem, i had one viewstack this

Re: [flexcoders] Problem with events, how event dispatched when state change?

2007-11-12 Thread Ralf Bokelberg
Hi Daniel If you use a binding between a value of you model and the selectedIndex of your combobox, the control updates automatically whenever you change the model property. //in MyModel [Bindable] public var selectedIndex : int //in MyForm Now whenever you change myModel.selectedIndex, the co