Rich Internet Applications and Flex - 2
Upcoming SlideShare
Loading in...5
×
 

Rich Internet Applications and Flex - 2

on

  • 290 views

 

Statistics

Views

Total Views
290
Views on SlideShare
290
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Rich Internet Applications and Flex - 2 Rich Internet Applications and Flex - 2 Presentation Transcript

  • Rich Internet Applications and Flex Vijay Kalangi
  • MVC• Isolate domain logic from UI• Model - Manages data. Model also notifies observers.• View - Renders the model, multiple views!• Controller -accepts input and instructs model and view
  • Exercise 3 Next ...• How to load images at runtime with the Image control• How to display blocks of text• How to link simple controls to an underlying data structure with data binding• How to build user forms with a minimum of effort using the Form container
  • Simple controls• Few controls• Label, TextInput and Datagrid etc.,
  • • Events • Loosely coupled applications, not flow based • System events, user events • Event dispatcher • Event listener
  • <fx:Script><![CDATA[private function clickHandler(event:MouseEvent):void{trace(event.type);}]]></fx:Script><s:Label id=”myL”/><s:Button id=”myButton”label=”Click Me”click=”clickHandler(event)”/>
  • • Inspecting the Event Object• system events, example • creationComplete - instantiated and knows its size and position and is dispatched after creationComplete of all its children.
  • • Event propagation in detail • 3 phases - capture, target, bubble• Example • Stage > SystemManager > EventPropagation > blueBox > redBox > button
  • • Enable capture • this.addEventListener( MouseEvent.CLICK, onClick, true );