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 3 | 1120: Access of undefined property ratio. |
Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 20 | 1180: Call to a possibly undefined method number. |
Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 7, Column 27 | 1120: Access of undefined property _root. |
Symbol 'MoneySlider', Layer 'AS', Frame 1, Line 9, Column 27 | 1120: 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...