6 Replies Latest reply on Feb 14, 2012 12:37 PM by kglad

    Remembering the rotation value in AS2

    learner102

      I have a movieclip that rotates 180 degrees in one frame of a flash game using the following code:

       

      my_mc.onRelease=function(){

      my_mc._rotation=my_mc._rotation+180;

      if(my_mc._rotation==360){

      my_mc._rotation=0;

      }}

       

      A basic rotation function that works great.  But when I leave the frame and return to it the movie clip has reset itself to a rotation of zero.  How do I get the rotation value to stay 180 degrees when I return to the movieclip's frame?  I know how to do this with a mc's visibility by setting up a var. 

      I have always gotten great help from these forums so thanks in advance.