Notice: Array to string conversion in /var/www/ on line 304

Warning: Parameter 1 to Language::getMagic() expected to be a reference, value given in /var/www/ on line 58
Arduino1 - SourceBinder Wiki


From SourceBinder Wiki

Jump to: navigation, search

Arduino and SourceBinder

You need the following things to be able to use an Arduino board with SourceBinder

  1. a connected arduino with uploaded firmata serial proxy
  2. a crossdomain.xml policy file
  3. a small script to serve this policy file on your computer localhost

SourceBinder uses the latest version (r59) of the as3glue library to communicate with arduino. Please check the as3glue google code page to get detailed instructions.

Small guide to set up a valid policy file

For a brief tutorial to set up a socket policy file see:

for more information on this topic check:

The Arduino node uses socket connection to communicate via the serialproxy. In order to let online flash applications communicate with your localhost there must be a policy file available to enable socket connections. Flash looks for the policy file at 843 port number of the the host which in our case is localhost. This problem can easily be solved with a small script made available by adobe step by step

  • download and unzip the script from adobe
  • make sure the content of the flashpolicy.xml that comes with the zip above does have the correct settings

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="" to-ports="1000-20000" />

  • Run the policy file proxy like described in the Adobe tutorial. For mac users it's quite simple: run the standalone script from the flashpolicyd_v0 6 standalone folder

sudo flashpolicyd py --file flashpolicy.xml --port 843

  • run serialproxy
Personal tools