Using back button in flash "like a browser back button"

hey all/reef,

basically this code will work like a browser back button its very simple but “could end up very long” basically it will act “similiar to the browser back button”

on (release) {
    if(page1 = _currentframe){
    } else if (page0 = _currentframe){
    } else if (page2 = _currentframe){
    } else if (page3 = _currentframe){
    } else if (page4 = _currentframe){

it works when the (page1 = _currentframe){ is rotated with the first if statement…because for somereason it seems to not recognise the “else if’s” anybody or reef have any ideas why??