Code Conversion from ActionScript2 To BlitzMax

Miscellaneous Forums/General Discussion/Code Conversion from ActionScript2 To BlitzMax

Well someone mentioned something very intersting.
Flade.
An open physics lib writen in actionscript2 for flash.
I was wandering ... is it possible to be converted in BlitzMax?
I don't mean something like the BB import but to be converted from scrach.

Does anybody ever done something similar so he can point me the critical steps and the overall organization ?

Perhaps it possible to convert syntax, but that doesn't mean
it will work. Flash works totally different. The way it draws elements, the way code is structured....I don't think
it will be possible to convert the code and keep
performance effectivly. Its better to think about what
the strong points of BB are, and write a library for BB
from scratch.

Actionscript 2.0 is Javascript. It is relatively close to BlitzMax. I'll give Flade a look.

I quickly browsed the code (I do ActionScript for living) and I don't see any reasons why it could not be converted to BlitzMax. I'll give it a try later when I get home. :)

It is quite a nice system, but collision detection could be better.

Yep collision detection it's not very good. But as you said it's to close to BlitzMax.

now I don't really know how I can trick that
class org.cove.flade.surfaces.CircleTile Extends AbstractTile implements Surface

extends it's ok but implements....