Hey.
Here’s my situation. Lets say i have 5 submit buttons for example. When each submit button is clicked, a portion of the application is done. When all 5 portions are completed(or when 5 variables == true) I want something to happen.
As of right now, on my submit buttons I am checking to see if all variables are true like so…
mySub.onPress = function(){
someVar1 = true;
if(someVar1 == true && someVar2 == true){// 3 more conditions here....
// do something
}
}
Is there a way to “watch” these variables, and when all are true do something, instead of having these conditions on my submit buttons?
I know there is a watch function, but I’m not sure that’s what I need. The AS dictionary doesnt have too much on this topic.
Thanks