Backwards

k when i want to play a frame i use

on(press) {
mc.gotoandplay(2);
}

is there anyway to make it play backwards i mean like from frame 40 to 1 …