ActionScript 3 and camelcase package name

Posted by Paul Dinh on Stack Overflow See other posts from Stack Overflow or by Paul Dinh
Published on 2012-09-12T08:19:53Z Indexed on 2012/09/15 21:38 UTC
Read the original article Hit count: 463

I'm using Flash Builder 4 to build my AIR application.

For a certain reason, I need to declare my package name in camelcase, and class names in lowercase:

//test.as
package Core { 
   public class test {
   }
}

The folder structure is like this (the dir 'Core' matches the package name):

src/
  Core/
    test.as

However, Flash Builder shows error and it doesn't compile at all, only when I put the package name as 'core' then it compiles.

Does AS3 syntax allow uppercase letters in package name? Or just because Flash Builder implicitly disallows this?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about flex