Flash
  Home arrow Flash arrow Page 4 - Flexing the Flash Review
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
FLASH

Flexing the Flash Review
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 9
    2006-06-06

    Table of Contents:
  • Flexing the Flash Review
  • My first Project with Flex Builder2
  • Create a new project
  • The NewFlex Project
  • Some hands-on experiments
  • How do you make changes to the MXML source code?

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Flexing the Flash Review - The NewFlex Project


    (Page 4 of 6 )

    This next picture shows the expanded view of the Flex project, NewFlex. As installed, the project is set to build automatically, which means adding a new file or saving the file compiles the project automatically. If not, you can set it to build automatically in the drop-down from the Project menu. After the build, the compiled Flash file (NewFlex.swf) is placed in the bin directory. The NewFlex.html file is a wrapper for displaying it on a web browser. This requires the Flash Player 8.5 that was conveniently installed when Flex Builder was installed.

    The NewFlex.mxml file

    The application file NewFlex.mxml is also created, as discussed earlier. A project can have several application files, but the main application file is the one that is complied and placed in the bin folder. When you click on the tab Source or Code in the NewFlex.mxml file, you will see the window shown next. It is an MXML file with Macromedia namespace, and absolute positioning as the default. The file has the  parent application tag <mx:Application/>. The Design shows an empty canvas as seen earlier. Clicking on the NewFlex with the globe icon on its left brings up a web rendering of this application file from its html wrapper.

    MXML and ActionScript

    MXML and ActionScript are the building materials for Flex applications. The application is defined with MXML and the interactivity is provided by the ActionScript. MXML will look very familiar if you are used to HTML. Like HTML it is tag based. Tags are available for both visible and invisible components. Visible components as in HTML provide the GUI objects such as buttons, text boxes, and so forth. The variety of GUI objects available with Flex Builder is much larger than with HTML. It provides tags for trees, tabbed navigators, menus and so on. The invisible components will do the data binding, animation, web services and so forth. The bigger difference is that the MXML is compiled into a SWF file, which uses the Flash Player to render it to the browser. This brings in an incredible user experience. Action Scripts bring in, of course action, like JavaScript. Of course you also have CSS for styling. An MXML application can be single or multiple file based depending on your choice.

    Controls and their relations to the application

    The next picture shows the completely expanded view of the window Components. It has mainly four folders that contain objects related to Layout, Navigation, Controls (several customs are also hidden in this picture), and Custom (this is hidden in this picture).

    More Flash Articles
    More By Jayaram Krishnaswamy


       · The tutorial was written when Flex2 was in beta 1. Now it is in Beta 3, but the same...
     

    FLASH ARTICLES

    - Decorator Pattern
    - Organizing Frames and Layers for Flash Anima...
    - Organizing Frames and Layers
    - Using XML and ActionScript with Flex Applica...
    - Interfaces and Events with ActionScript and ...
    - Manipulating Data with ActionScript in Flex ...
    - ActionScript Syntax for Flex Applications
    - ActionScript in Flex Applications
    - A Closer Look at Apollo`s File System API
    - Using the File System API
    - ActionScript 101
    - Flash Buttons
    - Advanced Flash Animation
    - Creating Your First Animated Movie with Flas...
    - Flash: Building Blocks






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT