basic.html revision 8a485a720d4a37f68766d1022297dca2bd4549b7
<html>
<head>
<title>SWF Tests</title>
<link type="text/css" rel="stylesheet" href="/build/logreader/assets/skins/sam/logreader.css" />
<script type="text/javascript" src="/build/yui/yui.js"></script>
</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: {
path: "swf/swf.js"
}
}
}).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", params);
newswf.on("swfReady", testFlash);
function testFlash () {
newswf.callSWF("addText", ["Hello world\n"]);
}
});
</script>
</body>
</html>