how to add event on point?

Discussion created by mike.zheng on Jun 15, 2011
Latest reply on Jun 16, 2011 by DSwingley-esristaff
1. I created a map and publish to the server;
2. In this map, there are total 4 layers. The first layer named "locations", its type is "Point Features";
3. In web application, i loaded this map thru:
    var myLayer = new esri.layers.ArcGISDynamicMapServiceLayer(myMapUrl, { opacity: 0.5 });
    map.addLayer(myLayer );

i want to add a "onMouseOver" event on each point within the first layer, how to do that?