How can I port an application from ActionScript2 to ActionScript3?

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?

+3
source share
4 answers

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.

+1

AS2 AS3, - , , , . AS2 , , , AS3 - , AVM2 , AVM1.

script, , , , , , , - FLA, , , , . , , , 40 .

, , .

+1

, . , , .

, _level0.variableName AS2 movieClip _root, FlashVar, HTML, , . . ( varname , .

. - AS2 , , AS3 , .

0

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 ...

0
source

Source: https://habr.com/ru/post/1697203/


All Articles