O'Reilly logo

Essential ActionScript 3.0 by Colin Moock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ActionScript Namespaces

In ActionScript, a namespace is a qualifier for the name of a variable, method, XML tag, or XML attribute. A qualifier limits, or "qualifies" the meaning of an identifier, giving us the ability to say in code "this orange variable is a fruit, not a color" or "this search( ) method applies to Japanese language searching, not English" or "this <TABLE> tag describes HTML page layout, not a piece of furniture."

Using ActionScript namespaces to qualify variable and method names we can:

ActionScript namespaces also provide direct access to XML namespaces in XML documents. For coverage of XML namespaces in ActionScript see the section "Working with XML Namespaces" in Chapter 18.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required