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
run a Flex Mobile/PHP application:
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.
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.
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
The application opens in
Your Mobile (PHP) Run Configuration for information on editing
options in the runconfiguration.
Your Mobile (PHP) Application Run Configuration
To manage your Mobile (PHP) run
the arrow next to the run button on the
toolbar and select Run Configurations
-OR- go to Run
| Run Configurations.
A Run Configurations dialog will open.
the Mobile (PHP) option to create a new debug configuration
and open the Main tab.
dialog is made up of the following:
- Name - Enter a name for the new configuration.
- Project - The name of your Flex project.
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
- 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
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.
- Click Apply to
save your changes. To run now click Run,
or click Close
to save your changes and run later.
Running a Flex
Mobile/PHP Application for information on running your application
once the run configuration has been edited.