how do something like that?
Insert a mouse object on layer, then capture the scroll-wheel via an event.
If you add sub-events detecting if it's going up or down, then increment zoom based on that.
I'll do an example when I get home if no-one has done in meantime.
Develop games in your browser. Powerful, performant & highly capable.
Did you get this working?
i do something with mouse scroll, change layout size when scroll up 'zoom in 1/2' or scrool down 'zoom out 1/2' But i dont kono how to do smoothly
I made a quick example, hopefully I didn't make it too complex ahah - it's just got some stuff in there so you can customize the amount of zoom and speed, also to do it smoothly, and a little bit faster if you're rolling the mouse fast.
http://www.johnnysix.net/games/MouseZoom/
http://www.johnnysix.net/games/MouseZoom/MouseZoomExample.capx