From September, Flash will no longer be supported by Chrome. Prepare for the shift towards HTML5 by visiting our Flash to HTML5 help page

Check it out!

Preload and States

Even if the HTML asset is not visible, it will be preloaded in the background after the page load. This will help, e.g., to avoid blinking on expand action in double file expanding banner.

Restart animation is no longer supported in an HTML asset, so you should add, stop or remove unwanted content depending on asset state by yourself. An HTML asset has 3 states: initial, visible, and hidden. You can get the current state of the asset using dhtml.getState() or listen for state change events through dhtml.sharedEvents.


var state = dhtml.getState();

console.log('The current state is: ' + state);

dhtml.sharedEvents.on('changed:state', function (s) {
    console.log('Last state was: ' + state);
    console.log('State has changed to: ' + s);
    state = s;