mobile apps development using flash builder 4.5

25
Ahmedabad Flash Platform User Group Mobile apps development using Adobe Flash Builder 4.5 www.bharatria.wordpress.com Bharat Patel

Upload: bharat-patel

Post on 22-Apr-2015

1.815 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Mobile Apps Development Using Flash Builder 4.5

Ahmedabad Flash Platform User Group

Mobile apps development using

Adobe Flash Builder 4.5

www.bharatria.wordpress.comBharat Patel

Page 2: Mobile Apps Development Using Flash Builder 4.5

Objective

- Overview of Flash Builder 4.5- Create Hello World mobile application

Page 3: Mobile Apps Development Using Flash Builder 4.5

Overview of Flash Builder 4.5

- FB 4.5 provides easy way to build mobile apps

- You can build apps for Apple iOS, Google Android and BlackBerry Tablet OS platform

Page 4: Mobile Apps Development Using Flash Builder 4.5

Overview of Flash Builder 4.5

- Developing mobile and multiscreen apps- Accelerated coding for apps- Improved performance

Key features of Flash Builder 4.5:

Page 5: Mobile Apps Development Using Flash Builder 4.5

Developing mobile & multiscreen apps

- Adds comprehensive support for developing, testing, deploying mobile AIR apps

- Encapsulate common design patterns (templates) for mobile apps

Page 6: Mobile Apps Development Using Flash Builder 4.5

Developing mobile & multiscreen apps

Page 7: Mobile Apps Development Using Flash Builder 4.5

Accelerated coding for apps

- Generating getter/setters- Enhanced CSS content assists, navigations & refactoring- Content assists for event handlers

Page 8: Mobile Apps Development Using Flash Builder 4.5

Code templates

- Speed-up to reduce your coding efforts by auto-insert frequently used coding patterns

- Flash Builder > Editors > Code Templates

- Type the name of the template in the code editor, and press Control+Space

Page 9: Mobile Apps Development Using Flash Builder 4.5

8/26/2011

Page 10: Mobile Apps Development Using Flash Builder 4.5

Mobile web components- 21 new touch-enabled, optimized, mobile components

For e.g - View - ViewNavigator - TabbedViewNavigator - MobileApplication

Page 11: Mobile Apps Development Using Flash Builder 4.5

Creating a new mobile project

Page 12: Mobile Apps Development Using Flash Builder 4.5

Creating a new mobile project

1) Select File > New > Flex Mobile Project

Page 13: Mobile Apps Development Using Flash Builder 4.5

Creating a new mobile project

Page 14: Mobile Apps Development Using Flash Builder 4.5

Creating a new mobile project Permissions tab to see which permissions are allowed by the app on the device at runtime

Page 15: Mobile Apps Development Using Flash Builder 4.5

Creating a new mobile project

- Click Next to advance to the Server Settings screen of the wizard. Leave the settings as-is and then click Next

- In Next step, you can add libraries or source paths that required in application then Click Finish

Page 16: Mobile Apps Development Using Flash Builder 4.5

Creating a new mobile project

Page 17: Mobile Apps Development Using Flash Builder 4.5

Creating a new mobile project

- ProjectName.mxml → application file for the project - ProjectNameHomeView.mxml → initial screen (or view) of the project

When you create a Flex mobile project, FB generates the following files for the application :

Page 18: Mobile Apps Development Using Flash Builder 4.5

Creating a new mobile project Now add a Lable (Hello World) and Button and generate following code, in ProjectNameHomeView :

<s:VGroup width="100%" height="100%" verticalAlign="middle" horizontalAlign="center">

<s:Label text="Hello, World!"/><s:Button label="Continue" click="navigator.pushView(MyNewView)" styleName="next"/> </s:VGroup>

Page 19: Mobile Apps Development Using Flash Builder 4.5

Creating a new mobile project Now create MyNewView mxml component and add new Button called 'Back' and Lable 'Success' as below:

Page 20: Mobile Apps Development Using Flash Builder 4.5

Creating a new mobile project

Now its time to Run the application :)

Page 21: Mobile Apps Development Using Flash Builder 4.5

Export packages for release

1) Select Project > Export Release Build2) Target platforms and the location to export3) Sign a platform-specific application package - Digital Signature - Package Contents - Deployment

Page 22: Mobile Apps Development Using Flash Builder 4.5

Export packages for release

Page 23: Mobile Apps Development Using Flash Builder 4.5

Deploy apps on mobile device

1) Connect device to development computer2) In FB, select Run → Run Configurations → select the mobile you want to deploy3) Select the launch configuration method as 'On Device' 4) Click Apply

Page 24: Mobile Apps Development Using Flash Builder 4.5

Resources

1) Getting Started with Flash Builder2) Flex Test Drive for Mobile3) Start Mobile Application Development

Page 25: Mobile Apps Development Using Flash Builder 4.5

Thank You