July 25th, 2008 by Kyle
Tags: flash, Flex, gadget, google, google gadget
Posted in: Flash Player, Flex
A while back I posted this entry showing off my first Google Gadget that embedded a swf for Flash Player version detection.
http://blog.flexmonkeypatches.com/2008/01/25/google-gadget-flash-player-version-checker/
Recently someone posted a comment asking how I did that. I figured I might as well post the code. So here it is:
-
-
<?xml version="1.0" encoding="UTF-8" ?>
-
<module>
-
<modulePrefs title="Flash Version Checker" height="295" width="760" scrolling="false"
-
description="Uses the swf from Adobe Support Technote: http://www.adobe.com/go/tn_15507 to detect version of Flash Player used in your browser."
-
author="Kyle Quevillon"
-
author_email="turdontherun+flashversionchecker@yahoo.com"
-
author_photo="http://739saintlouis.com/images/me.jpg"
-
screenshot="http://739saintlouis.com/images/flashversionchecker_screenshot.PNG"
-
thumbnail="http://739saintlouis.com/images/flashversionchecker_thumbnail.png"
-
author_aboutme="I work for Adobe Systems Inc. as a Senior Support Engineer for the Flex product line. I have sort of followed an odd career path in what would typically be a reverse order, having started as a Software Developer/Engineer, moving on to become a Software Quality(Assurance/Control) Engineer and now ending up a Software Support Engineer. I think I have found a good fit as I have always been good at discovering problems, understanding other peoples issues and proposing new (or tried and true) methods for solving them."
-
>
-
<require feature="flash" />
-
</modulePrefs>
-
<content type="html">
-
<![CDATA[
-
<div id="flashcontainer" style="text-align: center; vertical-align:center"></div>
-
-
<script type="text/javascript">
-
-
// Display SWF
-
function showSWF() {
-
// The URL for the .swf
-
var url = "http://www.adobe.com/support/flash/ts/documents/test_version/version.swf";
-
-
// Play .swf file.
-
_IG_EmbedFlash(url, "flashcontainer", {
-
swf_version: 6,
-
id: "flashid",
-
width: 350,
-
height: 250
-
})
-
}
-
-
// When gadget first loads, display still photo.
-
_IG_RegisterOnloadHandler(showSWF);
-
</script>
-
<!--
-
<br/>
-
<center>
-
<a href="http://fusion.google.com/add?source=atgs&moduleurl=http%3A//hosting.gmodules.com/ig/gadgets/file/117092112381789410143/detect-flash-player-version.xml">
-
<img src="http://gmodules.com/ig/images/plus_google.gif" border="0" alt="Add to Google">
-
</a>
-
</center>
-
-->
-
]]>
-
</content>
-
</module>
-
-
Tweet
2 Comments »

Recent Comments