-
1. Re: jerky mouseenter and mouseleave
Bharadwaj Sep 18, 2014 12:48 AM (in response to ianloh123)Link only has the .an file.
Can you zip the entire composition and share the link.
-
2. Re: jerky mouseenter and mouseleave
bernhard oehler Sep 18, 2014 1:02 AM (in response to ianloh123)I have the same problem, I think, when I leave the buttons the "wrong" way (probably too quick or wrong angle?) the animation does not play further
-
3. Re: jerky mouseenter and mouseleave
ianloh123 Sep 18, 2014 1:10 AM (in response to Bharadwaj)thx for letting me know! here's the new link
-
4. Re: jerky mouseenter and mouseleave
Bharadwaj Sep 18, 2014 2:07 AM (in response to ianloh123)On mouse leave you are trying to playReverse from label "off". But there is a trigger at "off" to stop the symbol.
Because of which animation stops and next time when you mouseover it plays from the beginning.
Is this the issue what you are facing. Or is my understanding wrong?
-
5. Re: jerky mouseenter and mouseleave
ianloh123 Sep 21, 2014 7:34 PM (in response to Bharadwaj)Hi Bharadwaj,
Sorry for the late reply, but yes thats the issue i'm facing. My colleague managed to work out a solution, however, i'm wondering if there's a better practiced one that is more commonly used. Here's the updated project with the new code (ignore "untitled2.an").
Now there's new issues with it; mainly some lag that occurs on mouseenter and mouseleave, which seems to be happening at random.
ian
-
6. Re: jerky mouseenter and mouseleave
Bharadwaj Sep 22, 2014 1:19 AM (in response to ianloh123)For MouseEneter event,
if (pos2 < 1499 && pos2 < 1) {
sym.getSymbol("name").play("over");
}
if (pos2 < 1499 && pos2 > 1) {
sym.getSymbol("name").play(pos2);
}
Here, if pos2 is 0 then you are starting from label "over", which is the reason why when you mouseenter first time animation plays fine.
Now, when you mouseenter after a mouseleave, pos can be anything, suppose if it is <500 then you try to play it from pos. But animation starts from "over" which is 500, hence the lag.
if (pos2 < 500 ) {
sym.getSymbol("name").play("over");
}
else if(pos2 < 1500) {
sym.getSymbol("name").play(pos2);
}
Check whether replacing the above code(bold) in mouseenter works for you.
-
7. Re: jerky mouseenter and mouseleave
ianloh123 Sep 23, 2014 1:03 AM (in response to Bharadwaj)thx for weeding that out Bharadwaj!

