# Making actionscript2 compatible

**URL:** <https://forum.kirupa.com/t/making-actionscript2-compatible/131157>\
**Category:** Uncategorized\
**Created:** [December 12, 2004, 9:26pm UTC](https://forum.kirupa.com/t/making-actionscript2-compatible/131157 "2004-12-12T21:26:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [December 12, 2004, 9:26pm UTC](https://forum.kirupa.com/t/making-actionscript2-compatible/131157/1 "2004-12-12T21:26:17Z")

</div>

on (press, dragOver){  
startDrag(\_root.1mc);  
}  
on (release, rollOut, dragOut){  
stopDrag();  
}  
on (press, release, dragOver, dragOut){  
\_root.x +=2;  
\_root.1mc.swapDepths(\_root.x);  
}

this doesnt seem to work in AS2. How would i fix it?
