Detecting frames?

Hey there,

Im like soooo close to doing what I want. I have a movie clip (lightswitch) with a button and 3 frames and a different movie clip (lamp) with 2 frames. Im trying to say:

if (_root.lamp is on frame 1){
} else {

man, it almost worked, but i cant for the life of me figure out how to say 'if its on this frame, go to some frame in a different clip". Please help? tricky stuff.