If statement structure problem
for whatever reason code isnt behaving way should, , wondering if can take @ it.
im trying prevent firing if text select equal name.
it works when have 1 ex. textselect.name != "b3" not when try add or statements
if (textselect.name != "b3" || textselect.name != "b5" || textselect.name != "b6" ||textselect.name != "b7" || textselect.name != "b8" || textselect.name != "b9" ||textselect.name != "b10"||textselect.name != "b11"||textselect.name != "b12"|| textselect.name != "b13" || textselect.name != "b14" ) {
if (textselect.numlines < 2 && control == "on" && menu1.visible == false)
{
trace(textselect.name);
trace("ok");
}
}
your logic not going work. guaranteed 1 of them @ going equal, others have not equal.
if cannot reason out how code want, explain trying code do.
More discussions in ActionScript 3
adobe
Comments
Post a Comment