Maybe you can replace the whole button instead of just the handler.
Or you use one handler and inside it you ask for the current state to select the appropriate action.
Cheers,
Ralf.

On 9/15/06, JClouz <[EMAIL PROTECTED]> wrote:
Say I have Button 1 in my base state with click handler = "doJob1()"
 
If I make a new state "state 2" based on the base state, and change Button 1's click handler property to "doJob2()"... all is well.
 
Now I make a new state, "state 3" based on "state 2".  I change Button 1's click handler property to "doJob3()".
 
Now when I click the button, both doJob3() AND doJob2() get fired off!!   Obviously this causes a mess that in a particular instance tonight was very difficult to debug especially considering I'd changed the click handler between states from base state to state 2 with no problems.  What the heck is that crap?  Thanks for wasting 3 hours of my time Flex!!
 
 



--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany __._,_.___

--
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

__,_._,___

Reply via email to