A Flex introduction

A short introduction about Flex, sliced from my seminar. I will update the download link later😉

1. What is Flex ?

  • Flex is a collection of technologies that enables you to rapidly build applications deployed to Flash Player, a runtime environment for delivering sophisticated user interfaces and interactivity.
  • Flex was the first Macromedia product to be re-branded under the Adobe name.

2. Flex Framework

  • The Flex framework is synonymous with the Flex classes  library.
  • Flex framework is a collection of ActionScript classes used by Flex applications.
  • Written entirely in ActionScript classes, and defines controls, containers, and managers designed to simplify building Rich Internet applications (RIAs).

3. MXML – Magic eXtensible Markup Language

  • MXML is an XML-based markup language that primarily describes screen layout. In that respect it is much like HTML.
  • MXML uses tags to create components and to specify how those components interact with one another and with the rest of the application, including data sources.
  • All MXML must appear within MXML documents, which are plain-text documents.
  • All MXML documents can have just one root node.
  • There are two types of MXML documents, Application document (Application tag)‏ and Components document (such as Canvas tag …)‏

4. MXML – Sample code

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Array id="sampleArray">
<mx:String>Sample Label 1</mx:String>
<mx:String>Sample Label 2</mx:String>
</mx:Array>
<mx: Panel title="Example Panel">
<mx:ComboBox dataProvider="{sampleArray}"></mx:ComboBox>
</mx: Panel>
</mx:Application>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s