TwelvestoneFlash

"package" in AS3


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
Big Ern
 
2008-07-30

I am still just learning AS3, but the first thing that got my attention was the "package" thing...

What is the point of that? You would never have more than one class in a single .as file... would you?

Is it really necessary?

JLM
 
2008-07-30

moock's book goes into ins and outs but I just look at it as syntax rearrangement.

lithium
 
2008-07-30

you can define private classes as well as 1 externally accessible public class in an .as file. packages organize classes into namespaces too.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

"package" in AS3