AS3: declaring variables in a for loop

Out of context: Reply #19

  • Started
  • Last post
  • 23 Responses
  • Pupsipu0

    well if you were an experienced programmer, switching from one language to another wouldn't be such a big problem. Maybe AS2 is magical somehow, it lets people code stuff without getting the main concepts.

    When I switched from AS2, I didn't try any OOP stuff, any classes, private/public or any of that, since I didn't do anything of the sort in AS2. So the only difference in AS3 was adding things to arrays to reference them, and adding children took me a day to figure out.

    Then when I started doing things the OOP way, it took me months to get used to it. I haven't coded for a year when I started that, and I still don't really feel comfortable there. Could be an age thing too.

    But if you get AS3 in OOP style, you're set for decades. It's the way Java has been for decades already, it's what they'll turn JavaScript into. It's hard to imagine a drastically different syntax design.

View thread