AS2 Looping code translated to as3

if (!thisloop) {
thisloop = 1;
}

if (thisloop == 3) {
stop();
}

if (thisloop < 3) {
thisloop++;
} else {
stop();
}

For some reason i’m having a tough time translating this code to as3, i feel like it should be pretty simple!