Namespaces in Actionscript 3.0

Well it seems like I made a common newbie mistake with namespaces in my last post! Thanks Rich for pointing out my error. Eventhough I made a mistake, because I did not understand the namespaces and why or where you will want to use each of the four namespaces, this has lead me to my current learning quest for today!

the four Namespaces are:

public – specifies a property or method that is visible to all classes

private – specifies a property or method that is visible only within the current class

protected – specifies a property or method that is visible within the class, or other classes in the package

internal -specifies a property or method that is visible only within the same package!


If you find any error with the Namespaces above, please let me know!

That is I plan to figure out when to use the four different name spaces in AS 3. My first starting point is of course the Adobe Live Docs

My first clue is pointed out on this page,


Namespaces give you control over the visibility of the properties

and methods that you create.

Leave a Reply