# Using a movieclip as a button?

**URL:** <https://forum.kirupa.com/t/using-a-movieclip-as-a-button/311594>\
**Category:** Uncategorized\
**Created:** [July 11, 2010, 9:25pm UTC](https://forum.kirupa.com/t/using-a-movieclip-as-a-button/311594 "2010-07-11T21:25:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![milna93](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@milna93](https://forum.kirupa.com/u/milna93)\
**Post date:** [July 11, 2010, 9:25pm UTC](https://forum.kirupa.com/t/using-a-movieclip-as-a-button/311594/1 "2010-07-11T21:25:20Z")

</div>

Hey, I have searched everywhere for how to do this and couldnt find anything i need to create a new movieclip in the actionscript and then be able to click the new movieclip so it rotates ? any help, thanks 8)

Below is what i already have as my code, shape1 is the movieclip i am duplicating and square 1 is the new movieclip but i cant seem to get it to work when i click it 😕

```auto

duplicateMovieClip(shape1, square1, 1);
setProperty(square1, _x, 200);

square1.onPress = function()
{
    setProperty(square1, _rotation, 90);

}

```
