# Help with swapdepth

**URL:** <https://forum.kirupa.com/t/help-with-swapdepth/69349>\
**Category:** Uncategorized\
**Created:** [November 3, 2004, 2:47pm UTC](https://forum.kirupa.com/t/help-with-swapdepth/69349 "2004-11-03T14:47:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)\
**Post date:** [November 3, 2004, 2:47pm UTC](https://forum.kirupa.com/t/help-with-swapdepth/69349/1 "2004-11-03T14:47:24Z")

</div>

hello, i’m using the tutorial [http://www.kirupa.com/developer/actionscript/swapdepth.htm](http://www.kirupa.com/developer/actionscript/swapdepth.htm) but as my file is an external swf i changed the code to

```auto
on (press, dragOver) {
	startDrag(_parent.pola3,false, -285, 100, 210, -25); 
}
on (release, rollOut, dragOut) {
	stopDrag();
}
on (press, release, dragOver, dragOut) {
	_parent.x +=2;
	_parent.pola3.swapDepths(_parent.x);
}

```

but it’s totally messing my file, i can’t drag my mc’s anymore but the swapdepth work while it seems to be incrementing more and more. my file is here (quite big!)[http://www.artefakt.be/pola.zip](http://www.artefakt.be/pola.zip) :h:  
Thanks,

Ubik
