1 / 31

Unit-IV

Unit-IV. Building RIA. - Flash Player - Flex framework - MXML introduction - Action script introduction - Working with Action script - Flex data binding

will
Télécharger la présentation

Unit-IV

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Unit-IV Building RIA - Flash Player - Flex framework - MXML introduction - Action script introduction - Working with Action script - Flex data binding - Common UI components using Data grids - Tree controls - Pop-up controls

  2. Flash Player 9 • Supports ActionScript 3.0 ■ Object-oriented scripting programming language ■ Compliant with ECMAScript standard – In 2005 Macromedia chaired the ECMAScript committee and Adobe continues to drive evolution of ECMAScript

  3. • Includes new, optimized ActionScript Virtual Machine (AVM) to execute the ActionScript code ■ Built from the ground up to work with ActionScript 3.0 ■ Significantly faster than earlier versions ■ Full runtime error reporting – In earlier versions many runtime errors would fail in a graceful, but silent fashion ■ Industry standard debugging ■ Stronger compile-time type checking

  4. • New language elements added ■ E4X (ECMAScript for XML), which adds XML as a native data Type ■ Regular expressions ■ Implements event handling based on W3C DOM Events standard

  5. TOOLS USED -> Flex Builder 2 -> Flex Builder 3 -> Flex Builder 4 ((code named Gumbo) will be released in 2009 )

  6. File Format: Shockwave Flash

  7. Benefits of using Flex -> Enhanced user experience -> A complete environment -> Common deployment environment -> Enterprise-class features -> Eliminate page loads -> Standards-based architecture -> Cross- browser Compatibility

  8. List of RIAPlatforms/Approaches -> Adobe Flash, Adobe Flex and Adobe AIR -> Backbase -> Curl -> Google's GWT framework -> Java applets -> Java applications -> JavaFX -> JavaScript / Ajax -> Microsoft ActiveX controls -> Microsoft Silverlight -> Mozilla Prism -> OpenLaszlo -> REBOL 2.6 and Seaside for Smalltalk

  9. Comparison between AJAX and Flex

  10. When a project is created, a number of files and folders are automatically created ■ bin-debug folder: Where your compiled application resides ■ html-template folder: Where the html wrapper page resides ■ .settings folder: Where some project configuration files reside ■ .actionScriptPoperties, .flexProperties and .project files: Project configuration files ■ src folder: Where MXML files and other asset folders reside ■ libs folder: Where custom class files can reside ■ A main application file

  11. Creating data bindings between components • Data binding is the process of binding the data of one object to another object • Two ways to perform a binding: ■ Curly braces syntax ( { } ) ■ <mx:Binding> tag Assigning instance names: • Most MXML tags refer to classes ■ When you use the tag, you create an instance of the class • Use the id property to assign an instance name ■ Allows you to refer to the object created

  12. Creating data bindings • Using the curly braces syntax ■ Assigns a property a dynamic instead of literal value ■ Uses a broadcast/listener method <mx:Label id="labelOne" text="hello"/> <mx:Label text="{labelOne.text}"/> • Using the <mx:Binding> tag ■ Specify the source and destination property values <mx:Label id="labelTwo" text="hello"/> <mx:Label id="labelThree"/> <mx:Binding source="labelTwo.text" destination="labelThree.text"/>

More Related