var script:XML = <![CDATA[ function () { document.write("<html><head></head><body></body></html>"); }]]>; ExternalInterface.call(script);