3 Replies Latest reply on Sep 8, 2014 7:06 AM by Ned Murphy

    Can anyone please help me translate flash AS1.0/2.0 code to AS3.0 please?

    Mikagura Level 1

      var speed:Number = 15;

      nextScroll_btn.onPress = function(){

           _root.onEnterFrame = function(){

                  if(scroll_img._x > - 475){

                    scroll img._x -= speed;

                  }

             }

      }

       

       

      nextScroll_btn.onRelease = function(){

             delete_root.onEnterFrame;

      }

       

       

       

       

       

       

      prevScroll.onPress = function(){

           _root.onFrameframe = function(){

                  if(scroll_img._x < 23){

                    scroll img._x += speed;

                  }

             }

      }

      prevScroll.onRelease = function(){

             delete_root.onEnterFrame;

      }

       

      I don't know anything about AS1.0/2.0, i tried to do a image gallery with button to scroll the image using this video:

      http://www.youtube.com/watch?v=wZCE1w-zxj4