summaryrefslogtreecommitdiff
path: root/swat.obsolete/apps/qooxdoo-examples/example/Flash_1.html
blob: 3e2f0ceca83ca2f2c49e6030cd55ba59fc109832 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>qooxdoo &raquo; Demo</title>
  <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
  <!--[if IE]>
  <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
  <![endif]-->
  <script type="text/javascript" src="../../script/qx.js"></script>
</head>
<body>
  <script type="text/javascript" src="../../script/layout.js"></script>

  <div id="demoDescription">
    <p>Simple test for qx.ui.embed.Flash.</p>
  </div>

  <script type="text/javascript">
  qx.core.Init.getInstance().defineMain(function()
  {
    var d = qx.ui.core.ClientDocument.getInstance();

    // Try no version required
    var fo1 = new qx.ui.embed.Flash("./image/flash/fo_tester.swf");

    // Try version 7 required
    // var fo1 = new qx.ui.embed.Flash("image/flash/fo_tester.swf", "7");

    // Try version 9 required
    // var fo1 = new qx.ui.embed.Flash("image/flash/fo_tester.swf", "9");

    // Error handling methods:
    // #1: Enable Express Install: Available in Flash Players >= 6.0.65
    // fo1.setEnableExpressInstall(true);
    // #2: Enable Redirect URL: Jump to an installer page
    // fo1.setRedirectUrl("http://www.google.de");

    fo1.setVariable("flashVarText", "this is passed in via FlashVars");
    fo1.setScale("noscale");

    fo1.setLeft(20);
    fo1.setRight(335);
    fo1.setTop(48);
    fo1.setBottom(48);

    fo1.setBorder(qx.renderer.border.BorderPresets.getInstance().inset);
    fo1.setBackgroundColor("#FF6600");

    d.add(fo1);
  });
  </script>
</body>
</html>