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/
Written by Arnaud Tanielian
Related protips
1 Response
Any Example here?
can U explain
how to trace mouseWheel action in swiffy?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Flash
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#