Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Nested If else statements in Flash 5
From: Paul Steven
Date: Thu, 21 Sep 2000 22:14:11 +0100

Hi all

I am trying to do some code using nested if else statements but it doesn't
seem to be working.

I have the following code:

////////////////////////////////////////////////////////////////////////////
///////
onClipEvent (enterFrame) {

if (Character_Direction == "Right") {

alert= "Character Direction Is Right";

if (Character_Current_Segment == 5) {

alert="Character Segment is 5";

} else {

alert="Gone Into Right Else"

}

} else if (Character_Direction == "Left") {

alert= "Character Direction Is Left";

if (Character_Current_Segment == 5) {

alert="Character Segment is 5";

} else {

alert="Gone Into Left Else"

}
}

} // End Of Clip Event
////////////////////////////////////////////////////////////////////////////
////

It never seems to be going into the else with the alert "Gone Into Right
Else" or the
else with the alert "Gone Into Left Else".

I have spent all day trying to get this to work. Basically if the value of
Character_Current_Segment variable is not 5 I would have expected it to set
alert. Can anyone see where I am going wrong with my logic or syntax. I am
not getting any syntax errors.

Thanks

Paul


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]