Extend Button? Tracy
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Carlo Gulliani Sent: Sunday, August 26, 2007 12:51 PM To: Flexcoders Subject: [flexcoders] how to add new event for button? Hi, everybody. Sorry for offtop, but i dont know what is doing( I've main scene (_root), in which load some swf's... My swf files have a lot of buttons How can I add new properties for button, that when mouse rollover playing special sound... I can write so: button.onRollover = function(){ var sound:Sound = new Sound(this); sound.attachSound("somesound"); sound.start(0,0); } but I've more buttons and I want to add new rule for all buttons, that when RollOver playing sound, when RollOut - sound stop and delete sound. I know that can do it, but how? ________________________________ Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge <http://us.rd.yahoo.com/evt=47093/*http:/tv.yahoo.com/collections/222> to see what's on, when.

