Interraction flash / javascript
Coucou tout le monde , j'ai besoin de votre aide je ne trouve de réponses nul part : j'ai une animation Flash (animate CC) qui est un bouton clickable , je voudrais que lorsque je clique sur ce bouton une variable de ma page html avec du javascript s'incremente par exemple , voici mon brouillon :
Code:
1 2 3 4 5 6 7 8
| <body>
<script>
var test = 0;
</script>
<object id="EdgeID" type="text/html" width="570" height="420" data-dw-widget="Edge" data="animation_assets/brouillon/Assets/brouillon.html">
</object>
</body>
</html> |
Dans animateCC j'ai mis :
Code:
1 2 3 4 5
| this.button_1.addEventListener("click", fl_MouseClickHandler.bind(this));
function fl_MouseClickHandler()
{
test = test+1;
} |