3 Replies Latest reply on Jul 12, 2010 12:55 PM by kglad

    How can i use a new movieclip as a button i created with actionscript? AS2


      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 :/


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

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