15
© 2011 Adobe Systems Incorporated. Flash Builder/Flex with PHP on Mobile Devices Kent Mitchell | Sr. Product Manager | Zend Mihai Corlan | Developer Evangelist | Adobe

Flash Builder for PHP and Mobile development

Embed Size (px)

Citation preview

Page 1: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Flash Builder/Flex with PHP on Mobile DevicesKent Mitchell | Sr. Product Manager | ZendMihai Corlan | Developer Evangelist | Adobe

Page 2: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

About Us

Kent Mitchell Sr. Director, Product Management [email protected]

Mihai Corlan Adobe WW Developer Evangelist (since 2008) http://corlan.org http://twitter.com/mcorlan [email protected]

2

Page 3: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Zend & Adobe

PHP is the perfect back end for Mobile Highly scalable & Light wieght Proven technology – Over 35% of the web runs PHP today

Abode is the complete solution for rich mobile applications Cross-device support on iOS, Android, Blackberry, Desktop

Flash Builder for PHP includes integrated Zend Studio™ Integrated development Data & service centric development wizards for PHP and Flex Integrated debugging (desktop->device->server) Bringing remote server support to Flash developers

Integrated with Zend Server for a seamless runtime server

Page 4: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Agenda

New Flex Mobile and PHP Project Using DCD wizards to consume PHP services Testing your mobile Flex & PHP app on desktop and device Debugging your application on device Network Monitor Q&A

Page 5: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Flex Mobile and PHP Project – new wizard

New wizard that creates two projects: PHP project Flex Mobile Project

It supports Android.June update will enable support for BlackBerry Tablet OS and iOS.

Page 6: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Flex Mobile and PHP Project

1. 3.2.

Page 7: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Connecting to PHP Services

Flex Mobile and PHP project supports Data Centric Development You can connect to

PHP Remoting (using the Zend Framework) REST “Style” Service Web Service (WSDL/SOAP) XML Service

Page 8: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Testing and Debugging

You can test or debug your mobile application: On the desktop simulator On the device

Page 9: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Network Monitor

If you run or debug your application on the desktop simulator, you can use the Network Monitor view: Inspect the data sent and received Check the elapsed time between request and response

Page 10: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Running the app on the device (Testing/Debugging)

When you run the app on the desktop simulator, the Flex URLs towards the PHP services are using localhost.

When you want to run the Flex on the actual device, you’ll have to use the server IP address where the PHP services are hosted.

There are two scenarios:1. If you want to debug the Flex app on the device, you’ll have to run

the PHP code either on your computer or on a server that has debugging enabled;

2. If you want to run the Flex app on the device, you can have the PHP code deployed on a server or on your computer.

Page 11: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Enabling Debugging on the Device for Flex Mobile and PHP apps1. Connect the mobile device to the same WiFi network as the

computer on which you run the PHP code and Flash Builder for PHP (you can use a shared network from your computer)

2. Edit the .flexProperties file and change the serverRootURL from http://localhost/[…] to http://IP_ADDRESS/[…]

3. Open the Flex Service wrapper file and over write the _serviceControl.endpoint variable. You get the value you have to set by watching the value set for _serviceControl.endpoint in the _Super_ServiceName.as file while launching the app on debug mode.

Note: You have to increment the value of the debug_session_id for each launch.

Page 12: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Q&A

Resources: http://www.adobe.com/devnet/ http://corlan.org

Email addresses: [email protected] [email protected]

Thank you!

Page 13: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Demo time

Page 14: Flash Builder for PHP and Mobile development

© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.© 2010 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Page 15: Flash Builder for PHP and Mobile development

© 2011 Adobe Systems Incorporated.

Adobe, the Adobe logo, Adobe AIR, the Adobe AIR logo, the Adobe PDF logo, AIR, ColdFusion, ColdFusion Builder, Flash, Flash Builder, the Flash logo, Flex, LiveCycle, and Reader are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. All other trademarks are the property of their respective owners.© 2010 Adobe Systems Incorporated. All rights reserved. Printed in the USA. 9102xxxx 3/10

Adobe, the Adobe logo, Adobe AIR, the Adobe AIR logo, ActionScript, AIR, Flash, Flash Builder, Flash Catalyst, the Flash logo, Flex, and LiveCycle are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.Printed in the USA. 91023957 3/10