Jul 292013

This took me a while to figure out, in the end it was quite simple so I’m posting this to remind myself and possibly help someone else.

The “advanced telemetry” option in FlashDevelop doesn’t seem to do anything (as of FD 4.4.2). So you need to run a Python script on the compiled SWF. This can be done automatically after each build with a command in “Post-Build Command Line” in the FD project options.

1. Install Python (if you don’t already have it).

2. Download the script.

3. Specify the post-build command.
Go to Project > Properties > Build and enter:

[path to python.exe] [path to script] [path to output swf]

In my case I have

"D:\Program Files (x86)\Python33\python.exe" $(ProjectDir)\add-opt-in.py $(OutputDir)\$(OutputName)

4. Done!
The script is now run on the file after each build.

More info: http://www.adobe.com/devnet/scout/articles/adobe-scout-getting-started.html

  • anonrab

    Tried flash develop option first – does not work. Tried your method – nice result in output, but flash player drops with black screen after launch.

    (fcsh)Running Post-Build Command Line…
    cmd: “C:Python34python.exe” E:svnadd-opt-in.py E:svnbinHairs.swf
    Added opt-in flag with no password