I wrote a function on MOUSE OVER EVENT. I called this
function from a LIST and DATAGRID using addEventListener.
Now the problem is how the function get to know that i can
event from LIST box or Datagrid. I can create two different
function for both LIST and DATAGRID. But requirement is like cannot
reapeat the code.. code minimization.
Is there any property to know the type of control(Like its
LIST or DATAGRID) using event parameter??
Not sure what you are asking. You can reference the same
function in your addEventListener for both the DataGrid and List.
You might have sections of code in the function that operate
differently depending on what the target is, but you need not
duplicate the function unless necessary.