Thursday, June 21, 2012

Gesture, Accelerator and Geolocation simulator (Flex mobile)

Have you notice new so necessary simulator  for mobile development in Flash Professional CS6.






 Most of us were waiting lengthy packaging and deploy to device in order check some of the gesture or acceleration, and after finding stupid bug redoing the whole thing again. Or use some rudimentary free simulator thru socket servers or local connection, or pay for libs like gestureworks. Finally polished simulator by Adobe as air app(using away3D and not Proscenium???) which also creates socket server and option to ADL(Air Debugger launcher) -Xsimulation ,known only to Lee Brimelow and Thibault Imbert, :) to force ADL to connect to Simulator.

 Why couldn't use it with Flash Develop or Flash Builder. Damn. :)))

Download and install Flash Professional trail. You can find simulator app in your installation folder
ex "E:\Program Files\Adobe\Adobe Flash CS6\Common\Configuration\Simulator\simcontroller.exe"

Run the Simulator
"E:\Program Files\Adobe\Adobe Flash CS6\Common\Configuration\Simulator\simcontroller.exe" -once  -lang en_US -port 7842

Run ADL from command prompt:
ex adl.exe application.xml -Xsimulation 7842

Whoolla you can use simulator in your application.

You are too lazy. Me too. Lets edit Run.bat in Flash Develop IDE mobile application template



Create and add SimController.bat into bat folder. Change reference, pointing to your SimController instalation folder.


 Next find out how we can pass Xsimulation as application.xml tag in Flash Builder somewhere somenamed somehow HO HO HO
Update: 25.09.12
Flash Builder 4.7 allows ADL custom compiler  params.

If you like this please click +1;

1 comment:

  1. Hi !
    I have been desperately trying to use that simulator with flash builder 4.7 for quite some time now. But I couldn't make it work.

    Did they removed the arguments or something ?
    Thanks !

    ReplyDelete