ActionScript 3 unlike earlier versions of ActionScript (JavaScript) is very similar in syntax to Java. Both languages are strongly type and object oriented. Unlike strange prototype notation in earlier ActionScript AS 3 code have normal class declaration with fields and methods.
Porting code from java:
1) Use automatic converter to change syntax (mainly moving variable type definition to beginning)
2) Check types used. Numerical libraries probally will only use classes from Java Collection Framework other libraries may contains IO classes. Make your custom ActionScript version of these classes
3) Convert JUnit tests into FlexUnit
4)Run tests
And voila, your library is ported. In reality it is not so easy and you will need a lot of time to tweak your ported library.
Brak komentarzy:
Prześlij komentarz