PDA

View Full Version : why can't I use the !=


baileyboop
03-21-2002, 12:59 AM
if (_parent.dragCount == 3) {
_parent.showMe._visible = 1;
}

I have the "dragCount" variable counting up to 5.
On 3 and ONLY 3 I want the visibility of "showMe" true.

This code works but if I go to 4 it stays visible.....why? I've even tried putting in an else statement to set the visibility back to 0 but it stays if I get the dragTarget where it needs to be.

I've tried to change this code to be

if (_parent.dragCount != 3) {
_parent.showMe._visible = 0;
}


Can anyone explain and/or help?

file is attached.

thanks a bunch!

-boopy

pixelwit
03-21-2002, 04:03 AM
I think this is what you're going for:if (_parent.dragCount == 3) {
_parent.showMe._visible = 1;
} else {
_parent.showMe._visible = 0;
}Hope it helps,

-PiXELWiT
http://www.pixelwit.com

farafiro
03-21-2002, 07:53 AM
Or if u still want to use the !, here it is

if (!_parent.dragCount == 3) {
_parent.showMe._visible = 0;
}