I am trying to create multiple addEventListener but I don't know how. As you can see in the code below - I don't understand what I need to write where I wrote ???????? in order to produce multiple functions (such as onClick1,onClick2,onClick3, etc...)
for (i=0; i < numberOfResults; i++)
{
videoResults[i] = new Object();
videoResults[i].movie = new MovieClip();
stage.addChild(videoResults[i].movie);
videoResults[i].movie.addEventListener("click",?????????);
function ?????????(event)
{
}
}
What do I need to do?