# swapDepths without using an onClipEvent

**URL:** <https://forum.kirupa.com/t/swapdepths-without-using-an-onclipevent/174505>\
**Category:** flash\
**Created:** [January 6, 2006, 8:17am UTC](https://forum.kirupa.com/t/swapdepths-without-using-an-onclipevent/174505 "2006-01-06T08:17:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slazareth](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Slazareth](https://forum.kirupa.com/u/Slazareth)\
**Post date:** [January 6, 2006, 8:17am UTC](https://forum.kirupa.com/t/swapdepths-without-using-an-onclipevent/174505/1 "2006-01-06T08:17:41Z")

</div>

I have 2 images that I want to swap places on a certain frame in my animation. I’ve been messing with it for quite sometime now and I can accomplish one of two things. Either the animation goes smoothly and the images don’t swap depths or the images swap depths and the animation hangs. Can anyone help me out here?
