Sorry for actually asking this as it's a ridiculously simple problem, but I'm brand new to JavaScript. I know how to do what I want to in ActionScript, but I'm not sure what the syntax is to accomplish it in JavaScript. In ActionScript I've written a chunk of code that looks something like this: ---...