I need to know if there is a way to include parameter during function call while making listener. For example imagine that we have function sample_function with parameter func_param:
var sample_function = function(func_param){
trace(func_param);
};
So we have button_1 on the stage and we want to trigger function on button press:
**button_1.addEventListener(“mouseDown”,sample_function)
**This works as long as we do not need parameter but if we include parameter during function call:
button_1.addEventListener(“mouseDown”,sample_function(‘bla bla bla’))
…movie will throw an error. Is there a way to include this parameter?