Converting AS1 to AS3. Please help me
I'm working on converting an old flash using AS1 into AS3. Please tell me if exists any software solution for this. This is the code:
steps = 10;
fscommand ("allowscale","false");
fscommand ("Showmenu","false");
Playmusic = true;
Motorlyd = new Sound();
Motorlyd.attachSound("motorlyd");
motorlyd.setVolume(0);
blink = 1;
rotation = 90;
_root.Rotation = -90
gotoAndPlay (5);
| diff = Math.abs(this._rotation - _root.rotation); | ||
| if( diff < 10) {Hast = 2} | ||
| if( diff > 10) {Hast = 10} | ||
| if( diff > 30) {Hast = 30} |
| if (this._rotation > _root.rotation) { This._rotation = This._rotation - Hast} | |
| if (this._rotation < _root.rotation) { This._rotation = This._rotation + Hast} | |
| //_root.tester2._rotation = (180 / 100) * faderval; |
gotoAndPlay (2);
on (press) {
startDrag ("", false,_X, 28,_x, 198);
}
on (release) {
stopDrag ();
fader = int(100-((_y -28) / 1.70));
_root.var1 = 85 + (0.89 * (100-fader));
faderval = fader;
fader = fader +'%';
_root.blink = 0;
_root.vagten.gotoAndStop(1);
_root.vagten.play(1);
//_root.tester2._y = 150 - faderval;
_root.Rotation = 30 - (180 / 101) * faderval;
}