
42
Chapter 2: Using MXML
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.
Summary of Contents for FLEX-GETTING STARTED WITH FLEX
Page 1: ...Getting Started with Flex...
Page 4: ...4 Contents...
Page 22: ...22 Chapter 1 Introducing Flex...