# How do I execute this code when a movieclip ends?

**URL:** https://forum.kirupa.com/t/how-do-i-execute-this-code-when-a-movieclip-ends/74048
**Category:** flash
**Created:** [December 23, 2004, 1:53am UTC](https://forum.kirupa.com/t/how-do-i-execute-this-code-when-a-movieclip-ends/74048 "2004-12-23T01:53:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JPigford](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jpigford/32/959_2.png) [@JPigford](https://forum.kirupa.com/u/JPigford)
#### Post date: [December 23, 2004, 1:53am UTC](https://forum.kirupa.com/t/how-do-i-execute-this-code-when-a-movieclip-ends/74048/1 "2004-12-23T01:53:46Z")

</div>

So I have a quick movie clip and when that clip finished I want to do the following:

```auto

 _root.logo_top.attachMovie("sabotage_media_logo", "sabotage_media_logo_mc", _root.logo_top.getNextHighestDepth());
 _root.logo_top.sabotage_media_logo_mc._x = 50;
 _root.logo_top.sabotage_media_logo_mc._y = 50;
 

```

What do I need to do? I tried doing onClipEvent(load) but it loads it at the start of the clip.
