Running a Flex Mobile/PHP Application

This procedure describes how to run your Flex Mobile/PHP application. This allows you to run and test your application during development.

Before running your Flex Mobile/PHP application, you must introspect your PHP service and develop your Flex Mobile and PHP projects. You must also have an existing database with your application's content that is located on the server.

Running a Flex Mobile/PHP Application

 

 

Instructions on how to complete a procedure

To run a Flex Mobile/PHP application:

  1. To change the default web browser to work with while running, go to Windows | Preferences | General | Web Browser. For more information see Web Browser Preferences in the Workbench User Guide.
    The 'Use Internal Web Browser' option does not apply to running and debugging applications. Applications are always run and debugged in an external web browser.

  1. From the Right Click Menu of your Flex Project select Run As | Mobile (PHP) Application.
    The debug configuration opens with automatically configured settings according to your project.

Note:

If you have more than one configuration for Mobile (PHP) Application, select the configuration you would like to use from the Launch Configuration Selection dialog and click OK.

  1. The application opens in a browser.

See  Managing Your Mobile (PHP) Run Configuration for information on editing options in the runconfiguration.

Managing Your Mobile (PHP) Application Run Configuration

 

 

Instructions on how to complete a procedure

To manage your Mobile (PHP) run configuration:

  1. Click the arrow next to the run button run_icon.png on the toolbar and select Run Configurations -OR- go to Run | Run Configurations.
    A Run Configurations dialog will open.

  2. Double-click the Mobile (PHP) option to create a new debug configuration and open the Main tab.

mobile_run_config.png

  1. The dialog is made up of the following:

    • Name - Enter a name for the new configuration.
    • Project - The name of your Flex project. Click Browse to select from a list of an available list of projects.
    • Application file - Select the application file you would like to use from the dropdown list.
    • Target platform - The mobile platform on which you would like to debug your application. Select an available platform from the dropdown list.
    • Launch method - The method you would like to use to launch your application. Choose from the following options:
      • On desktop - Choose an available device to simulate from the dropdown list. This option allows you to debug your application on a simulated mobile operating system, meaning you don't need a mobile device for the debug process.
      • On device - This option allows you to debug your application on a mobile device. When selecting this option, you must have your device connected via USB and have access to WiFi. The server side of your application will be downloaded via USB to the device, and debugged via WiFi.
        For the client side of your application, you must debug on a device that is attached to your machine via USB.
    • 'Clear application data on each launch' - Mark this checkbox to clear the application's data each time you launch it.
  1. Click Apply to save your changes. To run now click Run, or click Close to save your changes and run later.

See Running a Flex Mobile/PHP Application for information on running your application once the run configuration has been edited.

 

 

Related Links

Related Links:
Running a Flex/PHP Application

Debugging a Flex Mobile/PHP Application