Posts

Showing posts from March, 2012

Using List Component in Mobile Flex Progrmming

Image
Mobile Flex 4.5 programming : List Component in Mobile Flex Programming : output: Program: ListDemo.xml -------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.ListDemoHomeView" applicationDPI="160"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> </s:ViewNavigatorApplication> --------------------------------------------------------------------------------------------- ListDemoHomeView.mxml --------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.ado

Flex 4.5:Passing data between the mobile Views/Activity

Image
Flex 4.5 (mobile development with Flex): Passing data between the mobile Views/Activity In this Tutorial I am going to pass the data between to Activity/View/Screens.. I am taking two Views are 'Home' and 'seeName' screens   in First Screen--Home we need to create one object like object_Name:Object=new Object(); example: x:Object=new Object(); after that ,we should add the data to the object,take variable name like                                                                                                                              x.variable1 then pass the screen1(Home)  data to    that variable like                                                                                                  x.variable1=textBox.text here textBox is TextInput id. and we can use the variable1 in the next screen/View like       {data.name} main.mxml: <?xml version="1.0" encoding="utf-8"?> <s:ViewNavigatorApplication xmlns:

Navigation between Screens in Mobile Flex Project 4.5

Image
Flex 4.5 (mobile development with Flex): Navigation between Screens in Mobile Flex Project Output: Use the Simple method   "navigator.pushView()" to navigate between Screens . Pass next screen view as the parameter in the method . Main.mxml: <?xml version="1.0" encoding="utf-8"?> <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"  xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.HomeView" applicationDPI="160"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> </s:ViewNavigatorApplication> HomeView.mxml: <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" actionBarVisible="false" tabBarVisible="true&