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!
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
Post a Comment