Markers markers
MyMap.map.addEventListener(MarkerEvent.MARKER_ENTER,showID);
is this correct way to call function ShowID when mouse is over custom Marker- Marker.as
anyone, please? :)
is this correct way to call function ShowID when mouse is over custom Marker- Marker.as
anyone, please? :)
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?No, sorry - that event is thrown when a marker enters the visible map. You want to listen for mouse events on the marker instance itself. Are you using the AS2 version, or AS3 from version control?
-
Inappropriate?Im using Flex 3, AS3 of course.. im not expert, but Im trying very hard to get some information when i move mouse over marker.
I figured out how to put markers on a map.. to zoom in out, to move to specific point.. but to get event from marker.. no way :)
any ideas? -
Inappropriate?MyMap.map.markerClip.addEventListener(MouseEvent.MOUSE_OVER,showID);
is that correct ?.. I got error with this -
Inappropriate?MyMap.map.putMarker(id,location, new CustomMarker());
this works but
MyMap.map.removeMarker(id);
do nothing..
is that ok? -
Inappropriate?You should definitely use the form of putMarker that takes an actual DisplayObject as its last argument. The id form of the method is a carryover from the released AS2 version, and is a chunk of inconsistency that we're actively working on at the moment. Sorry you're getting caught up in it - definitely pass in a DisplayObject, and definitely avoid the MARKER_ENTER events, as I think we may be ditching those for release.
In regards to attaching mouse events, have your CustomMarker class listen for mouse events itself, either by instantiating one and adding listeners before calling putMarker(), or by adding listener in your CustomMarker constructor.
I’m hoping this is helpful
-
Inappropriate?thank you .. I ve tried to add listener into CustomMarker, but I cant put function in it ... addEventListener(MouseEvent.MOUSE_OVER, dosomething).. dosomething is not recognised inside constructor... Im not expert as i said.. what i have to do.. cant figure it out.
-
Inappropriate?migurski.. AS3 version with nice markers support is expected to be out when? :)
Loading Profile...



EMPLOYEE