How MXML relates to standards

MXML uses standards extensively. This section describes how MXML relates to standards for the following:

XML standards

You write Flex applications in XML documents. XML documents use tags to define pieces of structured information and the relationships between them. In MXML, the <mx:Application> tag defines the root of an application. You define the parts of the application in child tags of the <mx:Application> tag. Examples of MXML tags include container tags, such as <mx:VBox>, which define rectangular regions of the user interface, and control tags, such as <mx:TextInput>, which define typical user interface controls.

Event model standards

The Flex event model is a subset of Document Object Model (DOM) Level 3 Events, a World Wide Web Consortium (W3C) working draft. DOM Level 3 defines an event system that allows platform- and language-neutral registration of event handlers, describes event flow through a tree structure, and provides basic contextual information for each event. MXML provides tag properties that let you specify ActionScript code to handle events. For example, the click event handler specified in the following example sends a web service request:

<mx:Button click="mywebservice.myOperation.send()"/>

Web services standards

Flex provides MXML tags for interacting with web services that define their interfaces in a Web Services Description Language (WSDL) document available as a URL. WSDL is a standard format for describing the messages that a web service understands, the format of its responses to those messages, the protocols that the web service supports, and where to send messages.

Flex applications support web service requests and results that are formatted as Simple Object Access Protocol (SOAP) messages and are transported using the Hypertext Transfer Protocol (HTTP). SOAP provides the definition of the XML-based format that you can use for exchanging structured and typed information between a web service client, such as a Flex application, and a web service.

Java standards

Flex provides MXML tags for interacting with server-side Java objects, including plain old Java objects (POJOs), JavaBeans, and Enterprise JavaBeans (EJBs).

HTTP standards

Flex provides MXML tags for making standard HTTP GET and POST requests, and working with data returned in HTTP responses.

Graphics standards

Flex provides MXML tags for using JPEG, GIF, and PNG images in an application. Flex also provides tags for importing Macromedia SWF files and Scalable Vector Graphics (SVG) files into an application.

Cascading Style Sheets standards

MXML styles are defined and used according to the W3C Cascading Style Sheets (CSS) standard. CSS provides a mechanism for declaring text styles and visual effects that you can apply to Flex components.


Version 1.5

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/15/flex_docs_en/00000039.htm