Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Your First inFormation-rich application 11 the application tag We said MXML is an XML-based language. One of the rules of XML languages is to have a root tag, which is a tag that wraps every other tag. That is used by the interpreter to start rendering the application. If you are familiar with HTML you know that the root tag of each page is <html></html> . In Flex, the root tag is <Application></Application> , prepended by a namespace. namespace A namespace does not pertain just to MXML but to every XML-based language. XML elements can have the same name but different sources. To overcome this situation the notion of namespace has been introduced. A namespace is a set of names identified by a unique URI (uniform resource identifier), which represents the source of the names. For example, the Flex 4 SDK includes two different component libraries, the old Flex 3 and the new one. Since some of the components have the same tag name (e.g., Button ), for the Flex compiler it is impossible to detect To be really precise, mx and s are not exactly namespaces but shortcuts to the namespaces defined in the Application tag, via xmlns attributes. Those