]> git.pond.sub.org Git - eow/blob - static/dojo-release-1.1.1/dojox/av/tests/flash.html
add Dojo 1.1.1
[eow] / static / dojo-release-1.1.1 / dojox / av / tests / flash.html
1 <html>
2         <head>
3                 <title>DojoX A/V Flash Detection Test</title>
4                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5                 <style type="text/css">
6                         @import "../../../dojo/resources/dojo.css";
7                         @import "../../../dijit/tests/css/dijitTests.css";
8                 </style>
9                 <script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug: true"></script>
10                 <script type="text/javascript">
11                         dojo.require("dojox.av._base.flash");
12
13                         /*******************************************************************
14                                 A note.
15
16                                 You *can* dojo.require dojox.av._base.flash on the fly (i.e.
17                                 after load), but if you do so, you *must* give Safari and IE
18                                 a little bit of time before you can start using any of the 
19                                 methods.  Quick tests showed that 200ms is more than enough,
20                                 but you should test intervals at your discretion.
21                         ********************************************************************/
22                         var testMovieUrl=dojo.moduleUrl("dojox", "av/tests/resources/hfp.swf");
23                         dojo.connect(dojox.av.flash, "onInitialize", function(){
24                                 dojo.byId("results").innerHTML = dojo.toJson(dojox.av.flash.version);
25                                 dojox.av.flash.place(dojo.byId("flashHolder"), { path: testMovieUrl });
26                         });
27                 </script>
28         </head>
29         <body>
30                 <h1>DojoX A/V: Flash detection tests.</h1>
31                 <p>
32                         This page is testing the base Flash movie generator.
33                 </p>
34                 <p>Installed Flash version: <span id="results"></span>.</p>
35                 <div id="flashHolder">
36                         A movie will be inserted here on load.
37                 </div>
38         </body>
39 </html>