basic.html revision b5ea9923e255f649110ea11465ba8db74a5eb395
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich <link type="text/css" rel="stylesheet" href="/build/logreader/assets/skins/sam/logreader.css" />
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich <script type="text/javascript" src="/build/yui/yui.js"></script>
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich<div id="testdiv" style="height:400px;width:550px">
8a485a720d4a37f68766d1022297dca2bd4549b7Allen RabinovichThis content will be replaced by an instance of a Flash player.
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich filter: "raw",
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich}).use('node', 'event-custom', 'swfdetect', 'swf', function (Y) {
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovichvar params = {version: "9.0.115",
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich useExpressInstall: false,
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich fixedAttributes:
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich {allowScriptAccess:"always", allowNetworking:"all", width:50},
8a485a720d4a37f68766d1022297dca2bd4549b7Allen Rabinovich {flashvar1: "One word", flashvar2: "A word & another", flashvar3: "Three words - 100% done & done"}
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovichvar newswf = new Y.SWF("#testdiv", "assets/Simple.swf?x=" + Math.floor(Math.random()*100000), params);
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovichnewswf.on("swfReady", talkToFlash);
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovichfunction talkToFlash (e) {
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich newswf.callSWF("addText", ["\nExternalInterface bridge is working.\n"]);
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich newswf.createInstance("mystr", "String", ["Hello world"]);
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich newswf.exposeMethod("mystr", "charAt", "mystr_charAt");
b5ea9923e255f649110ea11465ba8db74a5eb395Allen Rabinovich alert(newswf.callSWF("mystr_charAt", [3]));