You will find a problem once you get to making connections automatic not triggered, because browsers sometimes hate when there is code executing that wasn't user triggered. I can't remember my solution for that. If you run into that problem, you can hunt message me.
I used this to create a project where we went from flash video to construct game back to flash video. amalgamedia.com