0 Replies Latest reply on May 28, 2006 10:20 AM by laymanman2006

    The moving problem of the picture..HELP><

    laymanman2006
      I got some problems when i made the button for calling the big photos moving to the right postion

      i wrote the AS for the photos:

      _root.onEnterFrame=function(){
      photo.mc._x+=(speedx-photo.mc._x)/5
      photo_mc._y+=(speedy-photo_mc._y)/5

      }

      and for the btn,i have set:

      btn1.onPress=function(){
      _root.speedx=0
      _root.speedy=0
      }
      btn2.onPress=function(){
      _root.speedx=0
      _root.speedy=-300
      }

      btn3.onPress=function(){
      _root.speedx=-300
      _root.speedy=0
      }


      for the btn 1,2 is ok..........but for the btn 3...i don't know why it just make the photo to move along Y axis but remain unchange in X axis....



      The result i got now
      When click on btn"THREE", the photo just upward moving
      the result i wanna get is the photomove to lefthand side

      can anyone tell me what problem i have made on it?
      really thanks!!!
      Source File