[RESOLVED] Multiple checkboxes must be selected before button is activated
I am using the default 'advanced presentation' template to create a presentation. I've gotten the presentation to run perfectly, adjusted the size to my PNG files... but my client wants 4 checkboxes on the last page to be selected before the user can hit a 'next' button. the button redirects them to a URL.
I've tried to search on several different solutions and the most obvious seems to be to 'validate' the 4 fields (called 'complete1, complete2, complete3, complete4) and generate an alert when the button is pushed. I also tried to create listeners and arrays that took note of when all the checkboxes are selected but I've had no luck. I have not come close to 'disabling' the button or generating an alert ... at least I don't think I have. Every time I plug in some code in the script frame or attached to the button it just cycles through the screens effectively breaking what did work.
Here is the script used in the default player:
// USER CONFIG SETTINGS
var buttonsOn:Boolean = true; // true, false
var pageNumberOn:Boolean = true; // true, false
var transitionOn:Boolean = true; // true, false
var transitionType:String = "Fade"; // Blinds, Fade, Fly, Iris, Photo, PixelDissolve, Rotate, Squeeze, Wipe, Zoom, Random
// END USER CONFIG SETTINGS
if(evt.keyCode == 37) // LEFT
else if (evt.keyCode == 39 || evt.keyCode == 32) // RIGHT OR SPACE
// END EVENTS
Thank you! I failed to mention some things about the presentation in my original post but was able to sort it out using your code. It's working perfectly. Again - thank you! (there was actually a button on the last slide called 'next_page' and the slides were all in a movie clip so I had to move some of my code around as well as the 'next_page' button to prevent errors in the code). Learned a lot!