Building cool web applications with Flex Presenters Joseph Khan Rasmiranjan Nayak
Joseph Khan Senior Software Engineer. Flash, Flex, BI 2.5 yrs of experience. Who are we ? Rasmiranjan Nayak Senior Software Developer Flex, Java, BI 2.3 yrs of experience
Aware about Rich Internet Applications (RIA) Having knowledge of Flex and Action Script . Who are you ?
Flex at present Data binding Containers Skins Item Renderers Effects Synopsis
Flex at Present Builder Flash builder 4.0.1 SDK Flex 4.1 SDK Language Actionscript 3.0 Server BlazeDS Server 4.0 Testing flexUnit 4 FrameWorks Cairngorm 2.2, Mate, Parsley 2.3.0, springActionscript, Swiz, RobotLegs, etc
Controls The Flex framework includes a plethora of basic, and not so basic, controls for building beautiful and functional user interfaces. Image (mx.controls.Image) <mx:Image source=&quot;http://www.adobe.com/adobe-lq.png&quot; /> Button (mx.controls.Button) <mx:Button label=&quot;Push Me&quot; click=&quot;Alert.show('Button Pushed');&quot; /> Text Controls (Label, Text, TextArea, TextInput) <mx:TextInput  text=&quot;TextInput Control&quot; /> DataGrid (mx.controls.DataGrid) <mx:DataGrid>  <mx:columns>  <mx:DataGridColumn headerText=&quot;First Name&quot; />  <mx:DataGridColumn headerText=&quot;Last Name&quot; />  </mx:columns> </mx:DataGrid>
Containers  Group <s:Group id=“groupContainer” width=“100%” height=“100%” /> DataGroup <s:DataGroup id=“dataContainer”  width=“100%” height=“100%” /> SkinnableContainer <s:SkinnableContainer id=“skinnableContainer” width=“100%” height=“100%” /> BorderContainer <s: BorderContainer id=“borderContainer” width=“100%” height=“100%” /> Panel <s:Panel id=“panelContainer” width=“100%” height=“100%” />
Skins What is skining ? “  Skinning is the process of changing the appearance of a component by modifying or replacing its visual elements.” WHY?  To fulfil Client requirements  Make Flex not look like Flex  Cause it looks cool  How ? <s:Button label=&quot;Click&quot;  skinClass=&quot;assets.skins.ButtonSkin&quot;/>
Item Renderers The itemRenderer property of the DataContainer allows you to create a custom component that will be rendered for each item in the data provider that is passed to the Component.  The first way to create the item renderer is to use the <fx:Component> tag, as shown here:  <s:List id=&quot;list&quot; dataProvider=&quot;{provider}&quot; selectedIndex=&quot;0&quot;> <s:itemRenderer> <fx:Component> <s:ItemRenderer> <s:Label text=&quot;{data}&quot;/> </s:ItemRenderer> </fx:Component> </s:itemRenderer> </s:List>
Effects The effects are nonvisual children, so they go in an fx:Declarations block. The Rotate3D effect flips the panel on the y-axis.  The Move effect moves the panel on the x-axis.  The Parallel effect runs a Rotate3D and Move effect in parallel.  The buttons trigger the effects.
Final Demo Requirements Flickr API  http://www.flickr.com/services/feeds/ Cross domain policy files from Flickr Steps: Enter a search string Send a request to Flickr for photo feeds Flickr returns a response Analyze the response Display the images in Flex list control For the list control we will use custom item renderer
From Here… Developer Documentation http://www.adobe.com/devnet/flex/documentation.html Get Inspired http://flex.org/showcase http://www.flexapps.com.au/ http://www.scalenine.com/showcase/ Examples and Code http://www.adobe.com/devnet/flex/tourdeflex.html
Any Thoughts? Reach us at [email_address] [email_address]

Building Cool apps with flex

  • 1.
    Building cool webapplications with Flex Presenters Joseph Khan Rasmiranjan Nayak
  • 2.
    Joseph Khan SeniorSoftware Engineer. Flash, Flex, BI 2.5 yrs of experience. Who are we ? Rasmiranjan Nayak Senior Software Developer Flex, Java, BI 2.3 yrs of experience
  • 3.
    Aware about RichInternet Applications (RIA) Having knowledge of Flex and Action Script . Who are you ?
  • 4.
    Flex at presentData binding Containers Skins Item Renderers Effects Synopsis
  • 5.
    Flex at PresentBuilder Flash builder 4.0.1 SDK Flex 4.1 SDK Language Actionscript 3.0 Server BlazeDS Server 4.0 Testing flexUnit 4 FrameWorks Cairngorm 2.2, Mate, Parsley 2.3.0, springActionscript, Swiz, RobotLegs, etc
  • 6.
    Controls The Flexframework includes a plethora of basic, and not so basic, controls for building beautiful and functional user interfaces. Image (mx.controls.Image) <mx:Image source=&quot;http://www.adobe.com/adobe-lq.png&quot; /> Button (mx.controls.Button) <mx:Button label=&quot;Push Me&quot; click=&quot;Alert.show('Button Pushed');&quot; /> Text Controls (Label, Text, TextArea, TextInput) <mx:TextInput text=&quot;TextInput Control&quot; /> DataGrid (mx.controls.DataGrid) <mx:DataGrid> <mx:columns> <mx:DataGridColumn headerText=&quot;First Name&quot; /> <mx:DataGridColumn headerText=&quot;Last Name&quot; /> </mx:columns> </mx:DataGrid>
  • 7.
    Containers Group<s:Group id=“groupContainer” width=“100%” height=“100%” /> DataGroup <s:DataGroup id=“dataContainer” width=“100%” height=“100%” /> SkinnableContainer <s:SkinnableContainer id=“skinnableContainer” width=“100%” height=“100%” /> BorderContainer <s: BorderContainer id=“borderContainer” width=“100%” height=“100%” /> Panel <s:Panel id=“panelContainer” width=“100%” height=“100%” />
  • 8.
    Skins What isskining ? “ Skinning is the process of changing the appearance of a component by modifying or replacing its visual elements.” WHY? To fulfil Client requirements Make Flex not look like Flex Cause it looks cool How ? <s:Button label=&quot;Click&quot; skinClass=&quot;assets.skins.ButtonSkin&quot;/>
  • 9.
    Item Renderers TheitemRenderer property of the DataContainer allows you to create a custom component that will be rendered for each item in the data provider that is passed to the Component. The first way to create the item renderer is to use the <fx:Component> tag, as shown here: <s:List id=&quot;list&quot; dataProvider=&quot;{provider}&quot; selectedIndex=&quot;0&quot;> <s:itemRenderer> <fx:Component> <s:ItemRenderer> <s:Label text=&quot;{data}&quot;/> </s:ItemRenderer> </fx:Component> </s:itemRenderer> </s:List>
  • 10.
    Effects The effectsare nonvisual children, so they go in an fx:Declarations block. The Rotate3D effect flips the panel on the y-axis. The Move effect moves the panel on the x-axis. The Parallel effect runs a Rotate3D and Move effect in parallel. The buttons trigger the effects.
  • 11.
    Final Demo RequirementsFlickr API http://www.flickr.com/services/feeds/ Cross domain policy files from Flickr Steps: Enter a search string Send a request to Flickr for photo feeds Flickr returns a response Analyze the response Display the images in Flex list control For the list control we will use custom item renderer
  • 12.
    From Here… DeveloperDocumentation http://www.adobe.com/devnet/flex/documentation.html Get Inspired http://flex.org/showcase http://www.flexapps.com.au/ http://www.scalenine.com/showcase/ Examples and Code http://www.adobe.com/devnet/flex/tourdeflex.html
  • 13.
    Any Thoughts? Reachus at [email_address] [email_address]