Help on a variable...

I have tried the following with no luck.


There are 4 transparent buttons, all buttons need to be clicked in order to make a 5th button appear.

Discussion (4)

Alternative solution:


Transparent button 1

on mouseclick --> modify variable "visit_all" - add to it - "a"

on mouseclick --> show button 5 if "visit_all" contains "a" AND contains "b" AND contains "c" AND contains "d"


Transparent button 2

on mouseclick --> modify variable "visit_all" - add to it - "b"

on mouseclick --> show button 5 if "visit_all" contains "a" AND contains "b" AND contains "c" AND contains "d"


Transparent button 3

on mouseclick --> modify variable "visit_all" - add to it - "c"

on mouseclick --> show button 5 if "visit_all" contains "a" AND contains "b" AND contains "c" AND contains "d"


Transparent button 4

on mouseclick --> modify variable "visit_all" - add to it - "d"

on mouseclick --> show button 5 if "visit_all" contains "a" AND contains "b" AND contains "c" AND contains "d"


Button 5

whatever actions it has...


WHY?

Because this way you need 1 variable for storing the progress, not 4 (or 12 in case of let's say 12 buttons to click / chapters to visit / etc).

On each of the transparent buttons, add an action to modify a variable and an action to check the status of the variables. Once the conditions are met, then the mouse click will trigger the fifth button to show. Someone might have another way to do this, but this is what I do:


Transparent button 1

on mouseclick --> modify variable button1 = 1

on mouseclick --> show button 5 if button 1 = 1 button 2 = 1 button 3=1 button 4 =1


Transparent button 2

on mouseclick --> modify variable button2 = 1

on mouseclick --> show button 5 if button 1 = 1 button 2 = 1 button 3=1 button 4 =1


Transparent button 3

on mouseclick --> modify variable button3 = 1

on mouseclick --> show button 5 if button 1 = 1 button 2 = 1 button 3=1 button 4 =1


Transparent button 4

on mouseclick --> modify variable button4 = 1

on mouseclick --> show button 5 if button 1 = 1 button 2 = 1 button 3=1 button 4 =1


Button 5

whatever actions it has...


Also add on whatever action the button would do w/ the variable actions to hide/show/whatever you want the buttons on their own to do. Just make sure that the show button 5 action is after the modify variable one for each since actions are done in order.

Be sure to have an action on the page that enables the button if the learner returns the page. It can be very frustrating for learners to have to go through all at stuff again just to advance forward if they came back to review something.

ssneg, I knew you would have a better way to do that! :)

Discussions have been disabled for this post