[flexcoders] Re: idiotic flex fires 2 event handlers for buttons of a substate !!!
Thanks Matt. It is an easy workaround, I probably could've fixed it faster if it hadn't of been so late. Sorry for any frustration driven rudeness in my original post. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: idiotic flex fires 2 event handlers for buttons of a substate !!!
Yes, someone pointed this confusion out to us a few weeks ago and Ive filed a usability bug. SetEventHandler would be better named AddEventHandler. When you call Set you do not overwrite a handler that was set in a base state. What you can do is set the event handler function and then in the function do conditional logic based on the currentState (in addition to the technique youre doing). Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jpc14_99 Sent: Friday, September 15, 2006 10:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: idiotic flex fires 2 event handlers for buttons of a substate !!! Maybe you can replace the whole button instead of just the handler. That's what I ended up doing after my timely debugging and it works fine. I was just frustrated because you can switch a handle from the base state just fine, so I saw no reason why you couldn't do likewise to another substate. I cannot think of any reason why you'd ever want flex firing off 2 handlers at the same time. Thanks. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: idiotic flex fires 2 event handlers for buttons of a substate !!!
Maybe you can replace the whole button instead of just the handler. That's what I ended up doing after my timely debugging and it works fine. I was just frustrated because you can switch a handle from the base state just fine, so I saw no reason why you couldn't do likewise to another substate. I cannot think of any reason why you'd ever want flex firing off 2 handlers at the same time. Thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/