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

Need help converting from Actionscript 2.0 to 3.0

$
0
0

I have an old flash file that I need to update. Ufortunately I only ahve access to Flash Pro CC and when I open the file it says the program no longer supports Actionscript 2.0. When I test the file, I get the following compiler errors:

 

 

 

Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 31120: Access of undefined property ratio.
Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 201180: Call to a possibly undefined method number.
Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 271120: Access of undefined property _root.
Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 9, Column 271120: Access of undefined property ratio.

 

And on the MoneySlide layer in Actions:

 

this.ratio = 0;

this.loadBar._width = 0;

this.dragger.ratio.text= "$0";

dragger.onPress=function(){

          this.startDrag(true,0,0,line._width,0);

          this.onEnterFrame=function(){

                    ratio=Math.round(number(_root.transitBenefitLimit/100)*(thi s._x/(line._width/100)));

                    loadBar._width = Math.round(this._x);

                    dragger.ratio.text= "$"+ratio;

          }

}

dragger.onRelease=dragger.onReleaseOutside=stopDrag;

 

Any help changing the code to be compatible with Actionscript 3? thanks in advance...


Viewing all articles
Browse latest Browse all 13519

Trending Articles



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