code: public static HTML embedFlashObject (Panel container, String htmlString)
      {
          // Please note: the following is a work-around for an IE7 bug. If we create a Flash object
          // node *before* attaching it to the DOM tree, IE will silently fail to register
          // the Flash object's callback functions for access from JavaScript. To make this work,
          // create an empty node first, add it to the DOM tree, and then initialize it with
          // the Flash object definition.
          HTML element = new HTML();
          container.add(element);
          element.setHTML(htmlString);
          return element;
      }
docs: Given an HTML string that defines a Flash object, creates a new DOM node for it and adds it
  to the appropriate container. Please note: the container should be added to the page prior
  to calling this function.