Created
July 14, 2012 17:12
-
-
Save alebianco/3112223 to your computer and use it in GitHub Desktop.
Run Flash CS6 Touch Simulator Panel from Flash Builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Run Flash CS6 Touch Simulator Panel from Flash Builder (on anywhere else you | |
like) to test your AIR applications. | |
Instructions: | |
Just drop the file in your project folder, change the APP_NAME property | |
appropriately and maybe fix the tools' paths so they will work on your system. | |
Gotchas: | |
- windows only, for now | |
- the -profile argument must be extendedMobileDevice or mobileDevice even if the | |
project itself targets the desktop. Not sure if this will cause any problems. | |
- the -nodebug argument will prevent to connect to the fdb tool (if you ever | |
tought of debugging your app from a console) but it's needed for the trace | |
outputs to be shown in the console. | |
Author: Alessandro Bianco | |
http://alessandrobianco.eu | |
Copyright (c) 2012 Alessandro Bianco | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in | |
all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |
THE SOFTWARE. | |
--> | |
<project name="touch simulator hack" default="run" basedir="."> | |
<property name="SDK_HOME" value="C:/Program Files (x86)/Adobe/Adobe Flash Builder 4.6/sdks/latest"/> | |
<property name="FLASH_HOME" value="C:/Program Files (x86)/Adobe/Adobe Flash CS6"/> | |
<property name="ADL" value="${SDK_HOME}/bin/adl.exe"/> | |
<property name="SIM" value="${FLASH_HOME}/Common/Configuration/simulator/SimController.exe"/> | |
<property name="APP_NAME" value="TouchTest"/> | |
<property name="APP_DESCRIPTOR" value="${APP_NAME}-app.xml"/> | |
<target name="run"> | |
<exec executable="${SIM}" dir="./bin-debug" spawn="true"> | |
<arg line="-once"/> | |
<arg line="-lang en_US"/> | |
<arg line="-port 7840"/> | |
</exec> | |
<exec executable="${ADL}" dir="./bin-debug"> | |
<arg line="-profile extendedMobileDevice"/> | |
<arg line="-nodebug"/> | |
<arg line="-Xsimulation 7840"/> | |
<arg line="${APP_DESCRIPTOR}"/> | |
</exec> | |
</target> | |
</project> |
Hi, could you help me? I try it and I got this error
run:
[exec] application descriptor not found
[exec] Result: 6
I using windows and flash builder 4.6 for run it simcontroller for flex mobile project android. what's wrong? I already change the APP_NAME with my project name / -app.xml
is there any change for me to debug the error? thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cool!