Is there any way to convert ActioScript3 code to JavaScript?
Noting both languages I noticed that they have many similarities.
I'm used to write OOP code in ActionScript 3 and would be very useful to be able to port it automatically.
It depends on what do you want to convert. If it's a visual application with animation and transitions - you won't be able to do anything. Javascript doesn't have interfaces, nor it has such types as Vector or other strongly typed things.
However, there is Haxe which enables you to write code in one language and automatically convert it both to AS3 and JavaScript (and others).
There's also a canvas lib EaseJS which has flash-like API