
158 GOOGLE APPS HACKS
HaCK 64:
Not content with adding games available in the ofcial Google
gadgets directory? A little trick allows you to add almost any Flash
game you can nd.
Google gadgets come in two main avors: those that are self-contained, including the necessary
HTML and JavaScript within the gadget XML itself, and those that simply point to an outside URL
to display content. Using the latter format, you can have the gadget point to a game created for
the Flash plug-in, too. The nice thing about most Flash applications is that they resize dynamically,
perfectly tting your chosen gadget size.
To look for Flash games, enter ash games into a Google search. You will stumble upon many
directories, most of them presenting loud and wildly animated games. Once you discover the
Flash game you want to add, open the HTML source of the page it’s embedded on and search for
occurrences of the extension “.swf”. For sample purposes, I picked a simple mouse-based shooting
game, perfect to balance your stress level during lunch, from a site called FlashGames247.com.
Opening the HTML page, I can see that the source URL is http://ashgames247.com/13770/
games/blastem/blastem.swf.
With that URL in hand, it’s now time to create your gadget. Open the Google Gadget Editor
or any other editor of choice and start with the “hello.xml” sample framework. Notice ...