mjzl4a
Last Updated: February 25, 2016
·
1.852K
· danetag

Swiffy hack event

<script>
Y[E].trace=function(a)
{
        for(var b=0;b<this.Ee[D];b++)
        this.Ee[b](a);
        if(a.indexOf("[tojs]") === -1)
        {aa.console&&aa.console.log("[trace] "+a)}
        else
        {
                var toExec = a.substr(6,a.length);
                eval(toExec+"()");
        }
};
Y[E].trace=Y[E].trace;
</script>

This code allows you to "dispatch" some Flash events to Javascript handler through the Swiffy lib. In fact, you can detect roll-over, end of animation...
You just have to trace it like this :

trace("[tojs]name_of_the_js_handler");

Share, custom and enjoy \o/

1 Response
Add your response

4163

Any Example here?
can U explain
how to trace mouseWheel action in swiffy?

over 1 year ago ·