Home » Adobe, Flash Catalyst, Flex 4, _Favourites, _Featured

Optimizing MXML code in Flash Catalyst “Panini”

31 January 2011 No Comment

In this tutorial (divided in 9 chapters) we will create a prototype of a typical RSS reader for mobile devices using Adobe Flash Catalyst “Panini” importing the entire layout from Adobe Illustrator CS5.

We will use some of the most important components available in Flash Catalyst – “DataList”, “VerticalScrollBar”, “ScrollPanel”, “TextInput” - applying transitions and iterations in order to enable navigation and create a more pleasant user experience.

We will also analyze the UI import process from Illustrator to Flash Catalyst and we’ll structure the project so that the mxml code generated by Catalyst is of good quality and well-structured, suitable for subsequent use in Flash Builder.

For this reason, after each chapter we’ll take a look at the source code to see what’s going on behind the scenes.

PREREQUISITE KNOWLEDGE

Familiarity with Adobe Flash Catalyst, Flex and MXML

Note: This tutorial focuses on the use of Flash Catalyst to build a mobile-style application.
The use of Illustrator for the user interface design is beyond the scope of this tutorial.

RELATED PRODUCTS

You only need Flash Catalyst CS5 to try this tutorial.
Source code contains the Adobe Illustrator file and a Catalyst project for each chapter.

OVERVIEW

This application will consist of three main states:

001_applicationstates

1. SplashScreen: simple static page of content imported from Adobe Illustrator

2. BlogList: this page will uses a “Vertical Scrollbar” and a “DataList” components to create a scrollable list of clickable items. At the top, in addition, we’ll also use the “TextInput” component to create an input text field to simulate a search box.

3. ArticleDetails: this state represents a hypothetical page to display the details of the selected item.
In addition to containing some graphics imported from Illustrator, we’ll also create a scrollable text area using the “ScrollPanel” component. We’ll also add some interations to the buttons.

Here is the application diagram, which represents the hierarchical structure of components that we will create in this project:

flowchart2

Important notes about MXML generated files:

• “Custom/generic components” represents custom MXML components and usually extend the Group class;
• “Other Catalyst components” are necessary parts for components that contain them;
• Orange rectangles instead represent the Spark Skins (other MXML files that extend the Skin class and that can be used to skin Spark Flex 4 components);

-
RELATED ENTRIES

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.