1

I've thought about learning ActionScript (3.0) before, and, as I've heard, it's a dialect of ECMAscript, making it similar to JavaScript. As I come from a JS background, this makes it all too easy to trip up on things that work in JS but are done differently in AS. What are the crucial differences between the two languages that I should watch out for?

1 Answer 1

2

Classes/Interfaces (static typing) are the main (obvious) difference and the syntax is more strict. But you have all the convenience of dynamic typing if you want, Closures etc ... and an effective API for UI programming (display object life cycle by events Event.ADDED, Event.ADDED_TO_STAGE ... etc). There are already ways for immutable values (const), but not for immutable collections. And check out E4X ... which is nice! Check out the API.

You should feel right at home, after you understand the lexical/syntactical differences.

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

Comments

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.