Captivate 5, actions and variables

I'm trying to create a learning game in Lectora using Captivate 5 files. The theory behind it is that if the player finishes clicking through the interactive SWF before the non-interactive SWF finishes playing, their score increases.


I have both SWF files inserted on the same slide and variables set up for the player score and the opponent score. I added an action to the interactive SWF file telling it that if the interactive file finishes playing in less than the length of the other SWF, it should increase the "player score" variable by one; if not, it should increase the "opponent score" variable by one.


My issue is that the variables are being increased after each slide in the SWF files. I've found a few similar posts addressing how to add javascript to the end of the Captivate file that gets it to move on to the next slide, but I can't figure out how to do something similar that updates a variable. Any ideas?


Thanks!

Discussions have been disabled for this post