I just wrote a small tool to convert LZX-Files from 4.0.x (or even older ones) to the new Class system.
http://code.google.com/p/laszlo4converter/
What it does do
I parses your hole project for ClassNames and writes the Names them to a File. This File is not yet used, just for controling.
The application holds the list of your Project-Classes in the Instance and replaces all
new $YOURCLASSNAME
with
new lz.$YOURCLASSNAME
instanceof $YOURCLASSNAME
with
instanceof lz.$YOURCLASSNAME
new global
with
new lz
method event=”blafoo” … method
with
handler name=”blafoo” … handler
== Note ==
It does not scan for the Base-Classes, only drawview is handled, you can handle more classes or extend the system to first parse through the Laszlo Components (or just copy lps-dir to the input directory)