Started to look into
haXe (pronounced as hex).
haXe is a multiplatform language, possible targets: Javascript, Flash, NekoVM, PHP and C++.
C# and Java targets are coming soon (so they say...).
The standard library works the same on all platforms
If haXe is used as o2 target you could make all haXe targets your own