Thread: trying to learn
View Single Post
# 6 25-02-2004 , 12:33 PM
Alan's Avatar
Moderator
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
When you "scope" a variable you enclose it in curly brackets (like those used for a function). What that means is that that variable can only be seen inside of that scope. However if you declare it outside of that scope then it can be used inside of that scope and outside. It basically allows you to have private variables within a function that can't be modified by any other function directly (you would have to pass them through as a param).

To save off the inital settings just use a getAttr on the variable and save it user added image

Alan


Technical Director - Framestore

Currently working on: Your Highness

IMDB