# (Function) / (With) Issues

**URL:** https://forum.kirupa.com/t/function-with-issues/82063
**Category:** flash
**Created:** [March 7, 2005, 4:01pm UTC](https://forum.kirupa.com/t/function-with-issues/82063 "2005-03-07T16:01:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chiaroobscuro](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@chiaroobscuro](https://forum.kirupa.com/u/chiaroobscuro)
#### Post date: [March 7, 2005, 4:01pm UTC](https://forum.kirupa.com/t/function-with-issues/82063/1 "2005-03-07T16:01:05Z")

</div>

Forgive me if I am vague but I currently can’t post any code since the file is too large. I’ll do my best to explain the issue despite my newbieness.

OK, here we so.

Frame 1 consists of a start menu. When you click on ‘Start’ you go to frame 2. All my code is in frame 2. In the mess of code located in frame 2 there are various user-defied functions. Some of these functions include ‘with’ statements. These functions deal with the movement of a character around the screen.

Anyway.

Also located on Frame Two is a button that takes you back to Frame 1.

THE PROBLEM with this however is that when I go back to Frame 1 I get the follow error repeating over and over again.

“A ‘with’ action failed because the specified object did not exist.”

Even though I have no code in Frame 1 the Functions from Frame 2 are still running and are upset that some of the MC in Frame 2 are not in Frame 1.

So what I am trying to figure out is how do I set it up so that when I click on the button to go back to Frame 1 I also stop the functions. Is that even possible?

Any help would be greatly appreciated.

Brian Peterson
