Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Flash Builder for PHP and Mobile development

4,670 views

Published on

These are the slides from the Flash Camp San Francisco 2011.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Flash Builder for PHP and Mobile development

  1. 1. Flash Builder/Flex with PHP on Mobile Devices<br />Kent Mitchell | Sr. Product Manager | Zend<br />Mihai Corlan | Developer Evangelist | Adobe<br />
  2. 2. About Us<br />Kent Mitchell<br />Sr. Director, Product Management<br />kent@zend.com<br />Mihai Corlan<br />Adobe WW Developer Evangelist (since 2008)<br />http://corlan.org<br />http://twitter.com/mcorlan<br />mihai.corlan@adobe.com<br />2<br />
  3. 3. Zend & Adobe<br />PHP is the perfect back end for Mobile<br />Highly scalable & Light wieght<br />Proven technology – Over 35% of the web runs PHP today<br />Abode is the complete solution for rich mobile applications<br />Cross-device support on iOS, Android, Blackberry, Desktop<br />Flash Builder for PHP includes integrated Zend Studio™<br />Integrated development<br />Data & service centric development wizards for PHP and Flex<br />Integrated debugging (desktop->device->server)<br />Bringing remote server support to Flash developers<br />Integrated with Zend Server for a seamless runtime server<br />
  4. 4. Agenda <br />New Flex Mobile and PHP Project <br />Using DCD wizards to consume PHP services<br />Testing your mobile Flex & PHP app on desktop and device<br />Debugging your application on device<br />Network Monitor<br />Q&A<br />
  5. 5. Flex Mobile and PHP Project – new wizard<br />New wizard that creates two projects:<br />PHP project<br />Flex Mobile Project<br />It supports Android.<br />June update will enable support for BlackBerry Tablet OS and iOS.<br />
  6. 6. Flex Mobile and PHP Project<br />1.<br />3.<br />2.<br />
  7. 7. Connecting to PHP Services <br />Flex Mobile and PHP project supports Data Centric Development<br />You can connect to<br />PHP Remoting (using the Zend Framework)<br />REST “Style” Service<br />Web Service (WSDL/SOAP)<br />XML Service<br />
  8. 8. Testing and Debugging<br />You can test or debug your mobile application:<br />On the desktop simulator<br />On the device<br />
  9. 9. Network Monitor <br />If you run or debug your application on the desktop simulator, you can use the Network Monitor view:<br />Inspect the data sent and received<br />Check the elapsed time between request and response<br />
  10. 10. Running the app on the device (Testing/Debugging)<br />When you run the app on the desktop simulator, the Flex URLs towards the PHP services are using localhost.<br />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.<br />There are two scenarios:<br />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;<br />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.<br />
  11. 11. Enabling Debugging on the Device for Flex Mobile and PHP apps<br />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)<br />Edit the .flexProperties file and change the serverRootURL from http://localhost/[…] to http://IP_ADDRESS/[…]<br />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.<br />Note: You have to increment the value of the debug_session_id for each launch.<br />
  12. 12. Q&A<br />Resources:<br />http://www.adobe.com/devnet/<br />http://corlan.org<br />Email addresses:<br />kent@zend.com<br />mihai.corlan@adobe.com<br />Thank you!<br />
  13. 13. Demo time<br />
  14. 14.
  15. 15. 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.<br />© 2010 Adobe Systems Incorporated. All rights reserved. Printed in the USA. 9102xxxx 3/10<br />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.<br />Printed in the USA. 91023957 3/10<br />

×