Event Handlers


i'm trying run calculation on input fields. want run 1 calculation if radiobutton selected; want run different calculation if other radiobutton selected. correct way create eventhandler determine 1 should run?

public function change(event:object):void
{
if (event.target == increase, subtotal, percentradio1); {
calculate();
}
if (event.target == increase, subtotal, percentradio24); {
calculatesemi();
}
}

thanks!

where compnent addeventlistener methods called not clear, cleans code.


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums