Flash Mobile Device Simulation
The Mobile Device Simulation allows to simulate Mobile Device Feature using ADL on your desktop.
For BlackBerry PlayBook specific features, checkout the PlayBook Device Simulation which build on top of the
Flash Mobile Device Simulation.
Flash Mobile Device Simulation (ActionScript Library)The ActionScript Library is port of the ActionScript Library for Flex and Flash. The classes have the same features
as the original library
All class paths are prefixed with de.patrickheinzelmann.*. For example: Geolocation can found
Following classes and their function are supported:
Flash Mobile Device Simulator (AIR Application)
It is designed for the development with ADL (AIR Debug Launcher) and communicates with the Mobile Application using
the build-in SocketServer.
With the Mobile Device Simulator, the developer can control all classes of the Mobile Device Simulation Library.
One of the cool features of the Simulator is the support of the GPS Exchange Format 1.1 (GPX) waypoints as input format for the
automated simulation of the Geolocation. This format is widely used for description and exchange of GPS Data and is
supported by GPS navigation device like Garmin. Samples for the GPX Format can be found here.
Integration and UsageI'm using Conditional Compilation for the integration, because it allows me to use both (Adobe ActionScript Libraries for Flex or Flash and the
Mobile Device Simulation) libraries in the same project. Conditional Compilation is replacing ActionScript code based the configuration
variables, which you pass as arguments to the compiler.
If you have no idea how Conditional Compilation works, you can found information in the LiveDocs of Flex or take a look
on the sample applications below.
To use the Mobile Device Simulation simply start the Mobile Device Simulator (AIR application) and when
application is running start your own mobile application. Pretty simple and easy!
website or grab the source code of the samples from
my GitHub account.
VersionActionScript Library (0.0.1) and AIR Appliation (0.0.1) are implementing the lastest productiont build of Adobe Flex SDK (126.96.36.19967)
and are based on the ActionScript Docs of Adobe Flex SDK (4.5.0), which is online available as LiveDocs for the Flash Platform.