Our application is written in ActionScript2 and contains about 50,000 lines of code. We want to port it to ActionScript3, and we are trying to figure out what our options are. Do we need to do this manually or can we use a converter and what problems can we expect?
Some time ago I asked a similar question that may come in handy:
What is the best approach to moving an existing project from Flash 7 / AS2 to Flex / AS3?
Some minor tasks can be automated (mainly packet declarations are recorded), but apart from that, I doubt that this can be automated.
AS2 AS3, - , , , . AS2 , , , AS3 - , AVM2 , AVM1.
script, , , , , , , - FLA, , , , . , , , 40 .
, , .
, . , , .
, _level0.variableName AS2 movieClip _root, FlashVar, HTML, , . . ( varname , .
. - AS2 , , AS3 , .
Some websites are available for converting AS2 to AS3 code. But, as in the past, this was not very good, and the result was 100%. In AS3, a lot has changed. So, you can automate some parts, and most of you work manually. if you used _global in AS2, you can declare one class named "_global" that will contain the static variables that used the _global.XXXX variables in AS2.
Just think of a few ways to make it easier to use OOP features. I give you one example for _global variables ...
Source: https://habr.com/ru/post/1697203/More articles:Subclass per monthCal control in Win32 - winapiChoosing XPath Version for .net IIS Applications - .netSetting up a general Rails error message - ruby-on-railsScan MOSS 2007 - searchIronClad equivalent for Jython - cКак выбрать всеэлементы класса "sortasc" в таблице с конкретным идентификатором? - javascriptDebugging error VS vstest - visual-studio-2008Why will VS2005 check the project for editing without any changes? - visual-studio-2005A method that returns the line number for a given JTextPane position? - javaHow to determine the transmission rate? - asp.netAll Articles