# \[flash8\] is this an issue with scope? no, not bad breath, the other kind of scope

**URL:** <https://forum.kirupa.com/t/flash8-is-this-an-issue-with-scope-no-not-bad-breath-the-other-kind-of-scope/214238>\
**Category:** Uncategorized\
**Created:** [January 26, 2007, 4:08pm UTC](https://forum.kirupa.com/t/flash8-is-this-an-issue-with-scope-no-not-bad-breath-the-other-kind-of-scope/214238 "2007-01-26T16:08:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dalewb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dalewb/32/3029_2.png) [@dalewb](https://forum.kirupa.com/u/dalewb)\
**Post date:** [January 26, 2007, 4:08pm UTC](https://forum.kirupa.com/t/flash8-is-this-an-issue-with-scope-no-not-bad-breath-the-other-kind-of-scope/214238/1 "2007-01-26T16:08:43Z")

</div>

I feel like such an idiot. This _should_ have been a really simple operation and it’s turned into an hour-long issue. I’ve been trying to migrate from putting my button code on buttons and move the code onto the timeline instead. However in this instance it no workie :\*(. The following code, specified for cancelMC affects every other button in this scene as if I’d written the code [FONT=Courier New]with(this){[/FONT].

If someone would please just scan this code, and/or look at the picture and tell me what key ingredient I am missing I would really appreciate it:

```auto

    with(this.cancelMC){
        onRollOver = function(){
            this.ExplainMC.gotoAndStop("cancel");
        }
        onRollOut = function(){
            this.ExplainMC.gotoAndStop("void");
        }
        onRelease = onReleaseOutside = function(){
            _root.searchPanelMC.gotoAndStop(15);
            gotoAndStop("user");
        }
    }

```

the code is on the timeline and so is the button (cancelMC). However, the code is on the first frame and the button exists on multiple frames thereafter. Does this matter? Does that put the button outside the scope of the code? I tried an onEnterFrame to no effect.
