blake-education/flashcanvas — pull request #1 by dvdotsenko (2012-08-05 23:30:45+00:00)
Title: Cross-frame FlashCanvas support

We needed a way to populate a child iframe with content from parent window. Original FlashCanvas.js pushes "window" into its closure and, thus, did not allow parent window to reach into child window/frame and instantiate the canvas.

This version allows that. The frame must some bare-bones HTML loaded from same-domain. Even about:blank will not work - all because of Flash's restrictions. After that, inject canvas tag into child window and parentwindow.FlashCanvas.initElement(canvas_from_iframe) works.

If this is something you might need, partake.

Daniel.