basic.html revision 5aef1e34ea3e70b4c1c1dd59deb0748c82d45b93
<html>
<head>
<title>SWF Tests</title>
</head>
<body>
<h1>SWF Tests</h1>
<div id="testdiv" style="height:400px;width:550px">
This content will be replaced by an instance of a Flash player.
</div>
<script>
YUI({
base: '/build/',
filter: "raw",
modules: {
swfdetect: {
path: "swfdetect/swfdetect.js"
},
swf: {
}
}
}).use('node', 'event-custom', 'swfdetect', 'swf', function (Y) {
var params = {version: "9.0.115",
useExpressInstall: false,
fixedAttributes:
{allowScriptAccess:"always", allowNetworking:"all", width:50},
flashVars:
{flashvar1: "One word", flashvar2: "A word & another", flashvar3: "Three words - 100% done & done"}
};
var newswf = new Y.SWF("#testdiv", "assets/Simple.swf?x=" + Math.floor(Math.random()*100000), params);
newswf.on("swfReady", talkToFlash);
function talkToFlash (e) {
newswf.callSWF("addText", ["\nExternalInterface bridge is working.\n"]);
}
});
</script>
</body>
</html>