Riley D.
said: Alex is correct. An example might be: //At the top of your script. var MAX_DISTANCE = 50; // <snip>, later on down the script on("change:graphic", function(obj) { //You can do something with MAX_DISTANCE here... }); In addition, remember that *all* your scripts run in the same context (scope), so you if you define MAX_DISTANCE at the top of one script, you can use it any script. Likewise if you overwrite MAX_DISTANCE with a different value in one script, it will affect all of them. Doh! I was putting them inside the main calling event thinking all the other functions, etc. would see the variables. Glad its so simple! :)