views:

584

answers:

3

Does anyone know of a PHP to ActionScript code converter?

+1  A: 

They are fundamentally different languages. I don't think a converter exists. The fourth dimension of time doesn't even exist in PHP.

zodeus
A: 

I highly doubt it. Once you get beyond the basic functionality it would be almost impossible to "translate" one to the other. PHP has thousands of standard built-in functions, custom AS implementations of all of those would have to be written.

Was there something in particular you're trying to do?

Chad Birch
I need to convert a bunch of functions that do basic math calculations.
lajos
Chances are that those functions actually are pretty similar. Similar, though. Not identical! But you might get the work done over a couple of beers one afternoon.
Martin
+3  A: 

Not exactly, but the haxe language http://haxe.org/ will compile to both Actionscript and PHP.

Daniel Von Fange