# How do I rotate a jigsaw puzzle piece?

**URL:** <https://forum.kirupa.com/t/how-do-i-rotate-a-jigsaw-puzzle-piece/126493>\
**Category:** Uncategorized\
**Created:** [October 24, 2004, 8:37am UTC](https://forum.kirupa.com/t/how-do-i-rotate-a-jigsaw-puzzle-piece/126493 "2004-10-24T08:37:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruce](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Bruce](https://forum.kirupa.com/u/Bruce)\
**Post date:** [October 24, 2004, 8:37am UTC](https://forum.kirupa.com/t/how-do-i-rotate-a-jigsaw-puzzle-piece/126493/1 "2004-10-24T08:37:28Z")

</div>

Hi all,  
I am new to action script and haven’t been able to find any reference as to how to rotate individual jigsaw puzzle pieces using the left and right arrow keys. Can anyone help? Here is the action script that I am using:

on (press) {  
startDrag("\_root.pic9", true);  
this.swapDepths(100);  
}  
on (release) {  
stopDrag();  
if (this.\_droptarget == “/target9”) {  
setProperty(this, \_x, 498.9);  
setProperty(this, \_y, 312.8);  
} else {  
setProperty(this, \_x, 54.1);  
setProperty(this, \_y, 88.9);  
}  
}

Thanks,  
Bruce
