Hit test

Okay I have two movie clips on my main timeline. (red and con) i have con do a hit test


onClipEvent (enterFrame) {
    if (_root.con, hitTest(_root.red)) {
        hit = 1;
    } else {
        hit = 0;
    }
}

hit is a text box inside con. This, so far, works just like the code says. The mc “con” has two frames. The first frame contains:

stop();
if (hit == 1) {
    gotoAndStop(2);
}
if (hit=! 1) {
    gotoAndStop(1);
}

and the second frame contains

stop();

So, the mc “con” is supposed to goto frame two when hit==1 and when hit=! 0 it should goto frame one ( or just stay where it is). This whole part doesnt seem to work and I cant figure out why.