Home arrow Flash arrow Page 2 - Introduction to Flex
FLASH

Introduction to Flex


If you're familiar with traditional programming languages and you want to develop some rich Internet applications that take advantage of the power of Flash, you might want to take a look at Flex. Read on to learn how this presentation server can help.

Author Info:
By: Adi Reddy Mora
Rating: 4 stars4 stars4 stars4 stars4 stars / 30
March 07, 2005
TABLE OF CONTENTS:
  1. · Introduction to Flex
  2. · Flex Languages: MXML and ActionScript 2.0
  3. · About ActionScript 2.0 in MXML applications
  4. · Writing a simple application
  5. · More Flex features

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
Introduction to Flex - Flex Languages: MXML and ActionScript 2.0
(Page 2 of 5 )

You use two languages to write Flex applications: MXML and ActionScript.

MXML is an XML mark-up language that you use to lay out user-interface components. You also use MXML to declaratively define non-visual aspects of an application, such as access to data sources on the server and data bindings between user-interface components and data sources on the server.

Like HTML, MXML provides tags that define user interfaces. MXML will seem very familiar if you have worked with HTML. However, MXML is more structured than HTML, and it provides a much richer tag set. For example, MXML includes tags for visual components such as data grids, trees, tab navigators, accordions, and menus, as well as non-visual components that provide Web service connections, data binding, and animation effects. You can also extend MXML with custom components that you reference as MXML tags.

ActionScript is an object-oriented programming language which you use to write programmatic logic for responding to both user-initiated and system-initiated events at runtime. The object-oriented programming (OOP) features in ActionScript 2.0 are based on the ECMAScript 4 Netscape Proposal (www.mozilla.org/js/language/es4/index.html). Because the ECMA-4 proposal is not yet a standard, and because it is still changing, ActionScript 2.0 does not conform exactly to this specification.

One of the biggest differences between MXML and HTML is that MXML defined applications are compiled into SWF files and rendered by Macromedia Flash Player, providing a richer and more dynamic user interface than page-based HTML applications do.

MXML does not use concepts specific to Flash, such as the timeline and library. However, you can always use the Flash authoring environment to create or modify components for use in Flex.

You can write an MXML application in a single file or in multiple files. MXML supports custom components written in MXML files, ActionScript files, and files created using the Flash MX 2004 authoring environment. Some MXML tags, such as the <mx:Script> tag, have a property that takes a URL of an external file as a value. For example, you can use the source property in an <mx:Script> tag to reference an external ActionScript file instead of typing ActionScript directly in the body of the <mx:Script> tag.


blog comments powered by Disqus
FLASH ARTICLES

- More Top Flash Game Tutorials
- Top Flash Game Tutorials
- Best Flash Photo Gallery Tutorials
- The Top Flash Tutorials for Menus
- 7 Great Flash Tutorials
- Adobe Creative Suite 5.5 Now Available
- Critical Flash Vulnerability Heats Up the Web
- More on Nonpersistent Client-Side Remote Sha...
- Nonpersistent Client-Side Remote Shared Obje...
- Using the Decorator Pattern for a Real Web S...
- Using Concrete Decorator Classes
- Delving More Deeply into the Decorator Patte...
- The Decorator Pattern in Action
- A Simple Decorator Pattern Example
- Decorator Pattern

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 1 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials