Copy link to clipboard
Copied
I created an elaborate slide with 8 spots to use a click box to create a score. Every time the click box is clicked a variable "buttonpressed" is incremented by 1. I gave the learner the option to try again. I used an Advanced Action when they answer yes to "do you want to try again" to assign "buttonpressed" to zero then restart the slide. Unfortunately it keeps the original score. Assigning the variable "buttonpressed" with zero does seem not work.
Copy link to clipboard
Copied
You have to use an empty variable (or JS). I usually have such a variable v_null and then use the command:
Assign myVar with v_null
I explained this work flow many years ago:
Copy link to clipboard
Copied
Still a complete failure. When the slide restarts it still gives me the old score. I used this advanced action to try and clear the score
Copy link to clipboard
Copied
In that case there must be a logical bug. I need complete information and screenshots of all actions with the events used to trigger them. The action that you showed, is this triggered by the On Enter event of the slide? In that case, are you sure that the event occurs. This is linked with my next question.
What do you mean by 'when the slide restart'? How is this restart orchestrated please? How did you test? Which version are you using. Is it meant for SWF or HTML5 output. I know that at this moment there is a bug in CP2017, where the On Enter action of a slide is not executed if you use just jump again to that slide, you need to insert a dummy slide as a workaround. I showed this in a blog post:
Copy link to clipboard
Copied
OK Here is the logic
On enter is the advanced action to enable all 8 click boxes I sent in
the previous email.
I have 8 click boxes which appear randomly throughout the slide. If the
learner clicks on the click box at the correct time this is the advanced
action. the difference between the 8 is the "disable Click_box_#"
At the end of the slide a smart shape button "click here for your score"
appears with this advanced action. There are a total of 8 conditions all
based upon the variable "buttonpressed" The result is the score out of 8
shows up.
Then the learner has the option to try again. If they click yes this
advanced action takes place. I have tried both assign with zero and with
a v_null variable. I set the jump to the previous slide so that the "on
enter" would occur with the advanced action to assign "buttonpressed"
with either zero or v_null. I even tried putting the advanced action in
the "on exit" of the previous slide.
The slide works perfectly the first time through. if the learner click
yes to try again the slide appears to work but the score will not update.
Thank you I have hours into this and am completely lost on what the
answer is.
Copy link to clipboard
Copied
Which version? Please, are you on CP2017
I would have liked to see the advanced actions as I asked before, not just a description. At this moment I only see the On Enter action.
Maybe you don't know, but I have a lot of experience with debugging advanced actions and in almost all cases the problems were due to logical bugs.
Copy link to clipboard
Copied
Captivate 2017
Copy link to clipboard
Copied
Where are the screenshots of the advanced actions which you didn't post yet?
Copy link to clipboard
Copied
I tried to reply via email with the screen shots. They did not appear here? So
OK Here is the logic
On enter is the advanced action to enable all 8 click boxes I sent in the previous email.
I have 8 click boxes which appear randomly throughout the slide. If the learner clicks on the click box at the correct time this is the advanced action.
At the end of the slide a smart shape button "click here for your score" appears with this advanced action. There are a total of 8 conditions all based upon the variable "buttonpressed" The result is the score out of 8 shows up.
Then the learner has the option to try again. If they click yes this advanced action takes place. I have tried both assign with zero and with a v_null variable. I set the jump to the previous slide so that the "on enter" would occur with the advanced action to assign "buttonpressed" with either zero or v_null. I even tried putting the advanced action in the "on exit" of the previous slide.
Copy link to clipboard
Copied
What is the slide number of the slide with the click boxes. I see 'Jump to slide 63'. Does that mean that the slide with the click boxes is slide 64? What happens on slide 63?
Tthere are more interactive objects than I expected, where are all the pausing points?
How do the click boxes appear at random times?
In the conditional action with 8 decisions, the last command is Continue, which means the playhead is released. That is another reason why I need to see the pausing points on the timeline.
Copy link to clipboard
Copied
OK Really Strange
I decided to clean up the slide by eliminating 8 different score Smart shapes. Each one hidden. I had a smart shape button "Click to get your score". That would use advanced actions to Show smartshape based upon the score. It was messy. So I changed it to a single smartshape with 8 different states. Now the "Click to get score" smartshape uses change state of to reveal the correct score.
Now it works????
This is the original time line.
Thanks for working on this. I am not really sure where the logic error occurred in the original attempt. I did not change any of the other advanced actions, but now it works perfectly.
Copy link to clipboard
Copied
What is the first pausing point? I imagine that the second pausing point is shared by all click boxes. But the action of the click boxes never releases the playhead which remains blocked at that common pausing point.
I found that conditional action very strange. Why not just insert the 'score' buttonpressed as variable in a text container? You don't even need states. WIth all the generic names I couldn't know what those smartshapes meant.
Did you ever get a proper training about variable and advanced actions?