How to trigger mouse click to show popuprenderer

2545
1
07-20-2011 02:07 PM
TimLeigh
New Contributor II
I'm using the SFV and I'd like to show a popup of feature info when a user clicks on the results in the search widget. The standard results only take the basic attributes (primary display field), so I'd like to trigger a mouse click on the map to show the full popuprenderer based on the layer configuration in the map.

I've tried the following code, but the event doesn't seem to fire, any other suggestions?

var mouseEvent:MouseEvent = new MouseEvent(MouseEvent.MOUSE_UP, true, false, screenPt.x, screenPt.y );
var mapEvent:MapMouseEvent = new MapMouseEvent(MapMouseEvent.MAP_MOUSE_DOWN, map, showHighlightPoint);
mapEvent.relatedObject = MouseEvent as InteractiveObject;
map.dispatchEvent(mapEvent);

Thanks

Tim
Tags (2)
0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor
Try this question in the ArcView for Flex Forum.
0 Kudos