Embedding Flash in Google Wave

Oh hi! So you want to embed Flash in a Google Wave, huh? Well you can!
First add this HTML gadget via ‘add gadget via URL’: http://wave-ide.appspot.com/html.xml
Then, click ‘Edit’ on the gadget, and paste your embed code. Now click ‘view’ to see the code rendered. The Flash movie will be embedded in a crappy gray frame, but hey, you got embedded Flash in your Wave! Yay, right?
WRONG! Gray crap is crap! So, let’s add some javascript to remove the frame. Below your Flash embed code, paste the following script:

<script type=text/javascript>
var div = parent.document.getElementById('toolbarPane');
div.style.display = 'none';
div.parentNode.parentNode.style.backgroundColor = 'transparent';

And there you have it! Clean, borderless Flash in a Wave.
This entry was posted in Geen categorie. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s