开发者

Is there any ActionScript 3 to JavaScript (and vice versa) migration guide?

开发者 https://www.devze.com 2023-01-30 06:53 出处:网络
as a skilled AS3 developer I won开发者_JAVA百科der if there is something like AS3 to JS migration guide. After all both languages have a lot in common.

as a skilled AS3 developer I won开发者_JAVA百科der if there is something like AS3 to JS migration guide. After all both languages have a lot in common.

I have in mind something like the old AS2 to AS3 migration guide - a list where I could simply look up the AS3 functionality and the JS counterpart, or vice versa.

I am not saying you can easily convert all your code like that but it would tell me where to start.


PS: I think it is a great idea and if such guide doesn't exist someone should write one :).


I've read that with Haxe you can compile somewhat transparently to JS code. This requires Haxe code, I think, which is not ActionScript 3.0 but is close and should be easy to pick up if you're already comfortable with AS.

I haven't tried this myself but it's probably worth to check out. Here's a blog post that might give you some ideas: http://gamehaxe.com/2010/05/25/javascript-ready-or-not/


You're going to have a difficult time of this considering a lot of the flash.* packages don't have any native JavaScript counterparts. Maybe a robust JavaScript library can ease the transition, but there will be a lot not migrate-able.

However, many of the Top-level datatypes do have a JavaScript counterpart (i.e; Date, Array, String, Object, null, Number/Integer)

0

精彩评论

暂无评论...
验证码 换一张
取 消