.swf output, need help with ElementSelected
Jay Austin
jayaustin at GMAIL.COM
Thu Jul 7 12:00:43 PDT 2005
Hi,
I'm making a flash viewer to display .swf maps from mapserver.
Currently I have one swf that loads the mapserver swf and then loads a
second swf containing navigation tools. I've successfully made pan/zoom and
reset map functions and now I'm working on a function to display Element's
attributes in a text box.
The problem I'm having is getting flash to recognize mouse rollovers or
clicks on the maps elements.
I found some articles that suggest using a function called ElementSelected
but thus far I've been ubale to get it to respond on mouse events.
Right now the Action Script(in the navigation tools .swf) looks like this...
ElementSelected = function(level, element, action)
{
trace("test1");
if (action == 3) //rollover
{
trace("test2");
}
}
Neither of these traces fire.
I can successfully trace the arrays containing the element info.
More information about the MapServer-users
mailing list