Page 1 of 1

MapAnimationEvent.ZOOM_END, MapAnimationEvent.ZOOM_START

Posted: 09 Feb 2010, 15:00
by laxersaz
Are the MapAnimationEvent.ZOOM_END and MapAnimationEvent.ZOOM_START events already implemented in the beta 2 release? When I use the zooming, those events are never fired.

Posted: 09 Feb 2010, 20:51
by Bax
Where did you find a reference to these events?

Posted: 10 Feb 2010, 09:10
by laxersaz
Those are static constants inside the MapAnimationEvent class :shock:

Posted: 10 Feb 2010, 09:36
by Bax
Actually the MapAnimationEvent class is used internally by the OpenSpace engine only. The only members you should take care of are those exposed by the OpenSpace class, and the only events available are those you can see in the initializeOpenSpace method of the example's main.as file.

Posted: 10 Feb 2010, 10:28
by laxersaz
Alright, thanks for making that clear.
I'll stick to the official methods then :wink:

It would be nice, though if those events could be exposed in order to be able to achieve a customized handling.

Posted: 10 Feb 2010, 13:46
by Bax
Can you describe a use case scenario for those events?

Posted: 10 Feb 2010, 13:53
by laxersaz
For example, if you want to zoom in on a building and trigger an animation or some kind of hint or dialog for the player as soon as the zooming stops.

Posted: 10 Feb 2010, 14:06
by Bax
Usually zoom is quite fast. Anyway we will take this suggestion into account.