Flash help pleeze!!
- Started
- Last post
- 3 Responses
- truemaxim
Anyone know the best way or any way to do this.
Here it is..
I have four buttons and need to send the code "javascript:activityCompl
ete()" only after all of them have been pressed already. I know there is a variable to be set but so far I had no luck in making it function. Any help will be greatly appreciated!
Pleeze and Thank You!!
- dehryll0
possible idea:
make 4 vars. set them all to 0. when you press a button set the var to 1 and check the value of all 4 vars to see which buttons have been pressed.
seems pretty simple. am i missing something?
- agnosix0
try this:
preseed=0;
function complete(){
getURL("javascript:activityCompl...
}function checkPress(){
pressed+=1
if (pressed==2) {
complete();
}
}button1.onPress = function(){
checkPress();
}button2.onPress = function(){
checkPress();
}
- truemaxim0
Thanks very much->