2 Replies Latest reply on Mar 11, 2013 1:32 AM by chiggy83

    Playing swf in html

    chiggy83

      Hi

       

      I have 6 swf files and I want to play them in html.

      I have created a html file that contains 6 hyperlinks to the swf files stored on my pc. however when i click on the hyperlinks it compiles with no video playing this is the code I have

       

      <!DOCTYPE html>

      <html>

       

       

      <head>

      <title>Spacegame</title>

       

       

      <STYLE TYPE="text/css">

      <!--

      .centeralign {text-align:center}

      -->

      </STYLE>

      </head>

       

       

      <body>

       

       

      <table border="0" >

      <tr>

      <td><h1><b> Game Versions</h1></td>

      </tr>

       

       

       

       

      <tr>

      <td><b>Non-Collaborative</td>

      <td><b>Collaborative</td>

      </tr>

       

       

      <tr>

      <td><a href="NonCOLLABORATIONGamePad.html">

      GamePad_2PLAYER </a></td>

      <td><a href="COLLABORATIONGamePad.html">

      GamePad_1PLAYER </a></td>

      </tr>

      <tr>

      <td><a href="NonCOLLABORATIONWiimote.html">

      Wiimote_2PLAYER</a></td>

      <td><a href="COLLABORATIONWiimote.html">

      Wiimote_1PLAYER</a></td>

      </tr>

      <tr>

      <td><a href="NonCOLLABORATIONDancemat.html">

      DanceMat_2PLAYER</a></td>

      <td><a href="COLLABORATIONDancemat.html">

      DanceMat_1PLAYER</a></td>

      </tr>

      </table>

      </body>

      </html>

       

      this on works well. the problem is with the swf files themselves

      here is the code I have

       

      <!DOCTYPE html>

      <html>

      <head>

       

       

      <body>

      <video width="1263" height="663">

        <source src="SPG2Player_2CannonsGAMEPAD_WITH_ONE_ALIENS/spacegame.swf" type="video/mp4">

        <object data="SPG2Player_2CannonsGAMEPAD_WITH_ONE_ALIENS/spacegame.swf" width="1263" height="663">

        <embed src="SPG2Player_2CannonsGAMEPAD_WITH_ONE_ALIENS/spacegame.swf" width="800" height="600" allowfullscreen = "true">

        </object>

      </video>

       

       

      </body>

      </html>

       

      this code is similar for the other 5 swf files except with different filenames