Do Swiffy animations trigger an event when they\'re complete? Or is there perhaps a way to grab the current frame vs. total frames?
I tried de-minifying runtime.js as men
Flash timeline frame script:
import flash.net.navigateToURL;
import flash.net.URLRequest;
navigateToURL(new URLRequest("javascript:document.dispatchEvent(new CustomEvent('animation_done', {detail:{name:'sparkle'}}))"), "_self");
stop();
Javascript:
document.addEventListener("animation_done", animationDone, false);
function animationDone(e /* Event */){
console.log('animation done ' + e.detail.name);
}