Hello everyone .
First i used to work on AS2 but i have converted to AS3 to benefit the new features .
And here is my problem : i have a function where i will create in it several buttons each one do different task but each task is so small that can be only one statement like changing the value of some variable.
the question is Do i have to make an EventListener and a handle function for each button !!
i have tried that and it made my code very messy , can’t i just make something like that : button1.onClick = function(){} like AS2 ?
Or is there a class i can use to make something like ?