Continuous seperate movie clips part 2

can someone tell me why this code:…

[AS]
stop();
this.panel1.gotoAndStop(2);
this.onEnterFrame = function() {
with (panel1) {
if (_currentframe == _totalframes) {
stop();
this.panel2.gotoAndStop(2);
}
}
with (panel2) {
if (_currentframe == _totalframes) {
this.panel3.gotoAndStop(2);
delete this.onEnterFrame;
}
}
};
[/AS]

give’s me this error:

Error: A ‘with’ action failed because the specified object did not exist.

I have all my instance names named right and everything…