I actually use that all the time in this way: myButton.onRollOut = myButton.onDragOut = function ()...
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Burvill Sent: Tuesday, May 02, 2006 11:35 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] quick question about buttons That's what I'm after. Thanks :o) Ash Warren wrote: > You can do this: > > myButton_btn.onRelease = myButton_btn.onPress = myButton_btn.onRollOver = > function(){ > doStuff(); > } > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mark Burvill > Sent: Tuesday, May 02, 2006 11:17 AM > To: Flashcoders@chattyfig.figleaf.com > Subject: [Flashcoders] quick question about buttons > > Hi list, > > Is there a way to condense several button handler commands into one line? > ie instead of writing: > > myButton_btn.onRelease = function(){ > doStuff(); > } > myButton_btn.onPress = function(){ > doStuff(); > } > myButton_btn.onRollOver = function(){ > doStuff(); > } > > Can I do something like: > > myButton_btn.onRollOver.onPress.onRollOver = function(){ > doStuff(); > } > > ? > > Cheers. > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > > > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com