lightspark / lightspark

An open source flash player implementation
http://lightspark.github.io/
GNU Lesser General Public License v3.0
1.79k stars 219 forks source link

[AS2] Mouse listening not working #388

Closed ousia closed 4 years ago

ousia commented 4 years ago

@dbluelle,

https://ousia.gitlab.io/free-culture/lfc-presentation.swf contains the following AS2 code for mouse:

Mouse.onMouseDown = function() {
    if ((getTimer() - lastClick) < 400) {
        pause_or_play();
    } else {
        lastClick = getTimer();
    }
};

Mouse.addListener(Mouse);

Double click should pause or restart the sound, but Lightspark doesn’t recognize it.

BTW, the slides and sound of the previous presentation is the same as the one in http://www.free-culture.tk/lessig-freeculture.swf, but AS2 code isn’t the same.

Would you be so kind to implement or fix this?

Many thanks for your help.

dbluelle commented 4 years ago

The link you provided is broken.

ousia commented 4 years ago

Corrected now: https://ousia.gitlab.io/free-culture/lfc-presentation.swf.