This is meant to be the first of a three part project.
What I have here is an interactive look at implementing some JavaScript.
The guide provides some basic actions that you can interact with and shows you the code that makes them work. This is meant to be a beginner guide and the other two projects will be an intermediate and an advanced guide that help demonstrate more challenging JavaScript. If anyone notices bugs - please let me know so that I can correct it.
The use of JavaScript and prez.object as shown in the project will not control objects on another slide.
If there is a way to address an object on another slide - I have not discovered it.
You might consider accomplishing this task with variables.
If the learner performs an action on slide 3 that should affect an object on slide 5, you might set the variable on slide 3 and then check for that variable onEnter of slide 5 and have it display accordingly.
HTML5 only creates objects for the current slide, so there is no and cannot get objects from other slides.
If you need to set something on different slides, you can do so through variables or by adding properties to the prez object, then set them in the On Load event of that slide as Greg said.
If you create the variable through the UI - you should be able to work with it from any slide.
It will also allow you to display them on the slide using %myVar%