Hi,
I hope somebody can help me, I think I'm to tired to find a solution for this problem right now so I hope someone here is able to give a hint as I have to have this done in less than 3 hours!
Simplified, my problem looks like this:
var counter = 0;
sym.$("count-button1").click(function() {
counter ++;
sym.$("number-clicks").html(moneycounter);
});
sym.$("count-button2").click(function() {
counter ++;
sym.$("number-clicks").html(moneycounter);
});
I have two buttons that can be clicked, and everytime I click on one of them "1" is added to the var "counter". Simultaniously .html writes the number of clicks in the text-field "number-clicks". Everything works fine until I get to a click event like "sym.play(1000);" that i assigned to a different div. on the timeline. As soon as the user clicks on it, the variable starts from zero again the next time count-button1/2 is clicked.
Why?? Please can someone help me! I'd really apreciate it!
Thanks!
edit: nobody any hint? I really didn't get it to work by now... Is there any workaround? Or is it just a stupid mistake?