0

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.

0

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

Hi think EaseJS is what I need. It's OOP styled, and have some features as filters, sprites, tweening. createjs.com/#!/EaselJS/demos/apitest

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.