PDA

View Full Version : else if statement..should be an easy one


jennys26
09-01-2005, 02:14 AM
Hello

I have a drop down box that I want to be able to open and close with the same button.

I have written the following if else statement and it does the first half but not the second. The script apparently has no errors. Any ideas?

on(release){

if ( _currentframe = 1){
trace(1);
gotoAndPlay(1) ;
}
else if ( _currentframe = 10 ){
trace(2);
gotoAndPlay(11) ;
}
}

diogo
09-01-2005, 04:35 AM
with if you should use the equality operator (==) instead of the assignment (=)