You need to detect button combinations whenever a button has been clicked
…and then you also need to run a function when a button is clicked that toggles the state of the button.
Below is an example:
//setup your buttons
var ButtonA = false;
var ButtonB = false;
var ButtonC = false;
var ButtonD = false;
// Toggle Button A to 'on'. Run this 'on mouse click' for your button:
ButtonA = true;
// Detect a combination.
// This should run whenever a button has been clicked
if (ButtonA = true && ButtonB = true){
hypeDocument.startTimelineNamed('Timeline 1');
}
// all you other combinations go here, or they can be inserted
// within the initial 'if' statement above.
if (ButtonA = true && ButtonC = true){
hypeDocument.startTimelineNamed('Timeline 2');
}
Thanks Daniel, I have added an else statement as well to move the AE cloud timeline to the start if a different combination is entered other than (ButtonA = true && ButtonC = true) but it doesn’t seem to be responding