Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

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

$
0
0

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


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>