# Continuous seperate movie clips part 2

**URL:** https://forum.kirupa.com/t/continuous-seperate-movie-clips-part-2/30913
**Category:** Uncategorized
**Created:** [September 16, 2003, 1:56am UTC](https://forum.kirupa.com/t/continuous-seperate-movie-clips-part-2/30913 "2003-09-16T01:56:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![scarce](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@scarce](https://forum.kirupa.com/u/scarce)
#### Post date: [September 16, 2003, 1:56am UTC](https://forum.kirupa.com/t/continuous-seperate-movie-clips-part-2/30913/1 "2003-09-16T01:56:30Z")

</div>

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…
