Why won't my Windows 7 gadget work (xml, html)

Discussion in 'Programming' started by Imozeb, Feb 11, 2010.

  1. #1
    Why won't my Windows 7 gadget work?

    I have created a windows 7 gadget through a bunch of online tutorials. I have linked it to a .swf file so it can be interactive but it won't work on my sidebar. My system is Windows 7.

    My code looks like this:

    XML code:
    <?xml version="1.0" encoding="utf-8" ?>
    <gadget>
    <name>Magic Ball</name>
    <version>1.0.0.0</version>
    <author name="Imozeb">
    <info url="www.example.com" />
    </author>
    <copyright>&#169; 2009</copyright>
    <description>Shake For Your Fortune.</description>
    <hosts>
    <host name="sidebar">
    <base type="HTML" apiVersion="1.0.0" src="MBall.html" />
    <permissions>Full</permissions>
    <platform minPlatformVersion="1.0" />
    </host>
    </hosts>
    </gadget>

    HTML code:

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>MagicBall</title>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="120" height="120" id="MagicBall" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="MagicBall.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="wmode" value="opaque" /><param name="bgcolor" value="#ffffff" /><embed src="MagicBall.swf" quality="high" scale="noscale" wmode="opaque" bgcolor="#ffffff" width="120" height="120" name="MagicBall" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </body>
    </html>

    and the flash file is in the same location so that is fine.


    Why won't it work.

    Thanks to anyone who can help.

    ~Imozeb
     
    Imozeb, Feb 11, 2010 IP