1 Reply Latest reply on Jan 20, 2009 5:58 PM by shintashi

    how to rotate an object incrementally?

    Level 7
      Hi all,
      I have a button on the stage.
      How can I rotate it clockwise by 90° by using the right arrow key?

      here is my code (it doesn't work...):

      on (keyPress "<right>") {
      set("myobj_rot", Number("myobj_rot")+90);
      setProperty(myobj, _rotation, "myobj_rot");

      Please note I have to use FLASH 5 compatibility (I'm using Flash CS 3).

      Any suggestione will be very appreciated.