Hacker News new | ask | show | jobs
by simonw 5335 days ago
Did AS1 have closures? I was under the impression that it didn't, which makes it a very different language from JavaScript, even if the syntax looks similar.
1 comments

Saying they are "very different" because of closures is hyperbolic, but at any rate, yes, AS1 had closures like JS.
Can you provide a syntax example? I couldn't find any documentation/sample code of AS1 closures.