DC Motor Control Using Flash/VB/PHP

Here is my setup… I have one SWF housed within a PHP document, and I’m passing variables from PHP to Flash. Then I’d like a set of variables to be passed from “SWF1”, which is housed in the PHP file, to “SWF2” which is housed in a Visual Basic .EXE file and used to control a set of DC motors. I’m assuming that I need two SWF’s for this, but if anyone has a way to do it with one please let me know.
My concern is with how to pass variables from these two seperate SWF files that aren’t housed within a host SWF or even the same host. I suppose it can be done with text files?