A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Is the modern AS3 constructor compiled? Or Interpreted?

  1. #1
    Registered User
    Join Date
    Jun 2016
    Posts
    1

    Is the modern AS3 constructor compiled? Or Interpreted?

    I've heard from a couple of people and from sonarqube's flash static analysis tool that

    "In ActionScript 3, constructor code is always interpreted rather than compiled by the JIT at runtime, which is why the body of a constructor should be as lightweight as possible. As soon as a constructor contains branches ("if", "for", "switch", ...) an issue is logged."

    Does anyone know if this is more than just rumor and superstition? Is it old knowledge, or is it still true? Does it apply to Flex/AIR mobile builds too? I can't find any sources newer than 2009 discussing it and even those aren't very in-depth.

  2. #2
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    This is from http://labs.jasonsturges.com/stack-o...IT.pdf?page=43 (page 43) I doubt anything has changed in AVM2 significantly since then.
    who is this? a word of friendly advice: FFS stop using AS2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center