{"title":"Getting to Know Events","id":52039,"link":"https:\/\/env.averta.net\/en\/step\/getting-to-know-events\/","parent":[51858],"content":"<p>Beside the slider <a href=\"https:\/\/env.averta.net\/en\/step\/getting-to-know-actions\/?b=52038,52038\" title=\"Getting to Know Actions\">actions<\/a>, you can also add custom events to the slider. In this article you can find the list of all supported events.<\/p>\n<pre class=\"lang:xhtml decode:true \">    slider.addEventListener(MSSliderEvent.INIT , function(){\r\n      \/\/ dispatches when the slider's current slide change starts.\r\n    });\r\n      \r\n    slider.addEventListener(MSSliderEvent.CHANGE_START , function(){\r\n        \/\/ dispatches when the slider's current slide change starts.\r\n    });\r\n      \r\n    slider.addEventListener(MSSliderEvent.CHANGE_END , function(){\r\n        \/\/ dispatches when the slider's current slide change ends.\r\n    });\r\n      \r\n    slider.addEventListener(MSSliderEvent.WAITING , function(){\r\n        \/\/ dispatches whenever the slider timer updates.\r\n    });\r\n      \r\n    slider.addEventListener(MSSliderEvent.RESIZE , function(){\r\n        \/\/ dispatches when the slider is resized.\r\n    });\r\n      \r\n    slider.addEventListener(MSSliderEvent.VIDEO_PLAY , function(){\r\n        \/\/ dispatches when the slide video played.\r\n    });\r\n      \r\n    slider.addEventListener(MSSliderEvent.VIDEO_CLOSE , function(){\r\n        \/\/ dispatches when the slide video closed.\r\n    });\r\n      \r\n    slider.view.addEventListener(MSViewEvents.SWIPE_START , function(){\r\n        \/\/ dispatches when swipe dragging starts.\r\n    });\r\n      \r\n    slider.view.addEventListener(MSViewEvents.SWIPE_END , function(){\r\n        \/\/ dispatches when swipe dragging ends.\r\n    });\r\n      \r\n    slider.view.addEventListener(MSViewEvents.SWIPE_MOVE , function(){\r\n        \/\/ dispatches when swipe dragging moves.\r\n    });\r\n      \r\n    slider.view.addEventListener(MSViewEvents.SWIPE_CANCEL , function(){\r\n        \/\/ dispatches when swipe dragging cancels.\r\n    });<\/pre>\n","type":"solution"}