Sorry to pop in, the youtube video you mention there was based on my post about micronavigation, and what you do here is mixing up things totally. You should add the code that you use for the Replay button as well, because if for the On Enter action of the slide you are capturing the slide number instead of the number of the first frame of that slide, you also have to change the Replay button code. Please post the code you are using there.
And moreover I find it much easier just to assign this advanced action to a Replay button, there is no real need for a user variable or an On Enter Slide event.