Converting Delphi Code to ActionScript

Delphi and ActionScript 3.0 are fairly similar, these are some simple steps to convert one to the other.


The following is just a code fragment (not the complete function)

Delphi

ActionScript 3.0


Common Problems

If you are programming in both Pascal (Delphi) and c-like languages, you will have continuous problems with these - be aware, be careful. I have lost many hours forgetting these points. In particular, for blocks are very different - until vs while.


Other common changes


Author: Robert Clemenzi - clemenzi@cpcug.org
URL: http:// cpcug.org / user / clemenzi / technical / Languages / ActionScript / Converting_Delphi.html