.swf output, need help with ElementSelected
jayaustin at GMAIL.COM
Thu Jul 7 15:00:43 EDT 2005
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)
if (action == 3) //rollover
Neither of these traces fire.
I can successfully trace the arrays containing the element info.
More information about the mapserver-users