# Problems with OnClipEvent and Btn

**URL:** <https://forum.kirupa.com/t/problems-with-onclipevent-and-btn/185877>\
**Category:** flash\
**Created:** [April 17, 2006, 12:31pm UTC](https://forum.kirupa.com/t/problems-with-onclipevent-and-btn/185877 "2006-04-17T12:31:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johannes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@johannes](https://forum.kirupa.com/u/johannes)\
**Post date:** [April 17, 2006, 12:31pm UTC](https://forum.kirupa.com/t/problems-with-onclipevent-and-btn/185877/1 "2006-04-17T12:31:04Z")

</div>

Very very odd…I’ve added a SWF inside a PowerPoint file and one of the buttons which is supposed to take the timeline to “someframe” instead calls the MovieClip, but \*\*only \*\*in PowerPoint and not in Flash.

The MC is using this code:

```auto
onClipEvent (load) {
        new_x = 270;
}
onClipEvent (enterFrame) {
        this._x -= (_x-new_x)*0.5;
}
onClipEvent (mouseDown) {
        new_x = 900;
        
}

```

Button has a standard:

```auto

on (release) {
    gotoAndPlay("someFrame");
}

```

I have tried \_parent. and \_root. on the button but it still doesn’t work…

Why is the button calling the MC in PowerPoint but not Flash?

J

---

<div class="post-metadata">

**Author:** ![yossarian](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yossarian](https://forum.kirupa.com/u/yossarian)\
**Post date:** [April 18, 2006, 11:16am UTC](https://forum.kirupa.com/t/problems-with-onclipevent-and-btn/185877/2 "2006-04-18T11:16:16Z")

</div>

I’d very much like to know the answer to this one as well! I’ve managed to embed the file but not got the whole thing to work…
