0 Replies Latest reply on Jun 21, 2007 2:33 PM by irbull

    GWT and FABridge

    irbull
      I am trying to add an swf file using GWT and access it across the FABridge. I don't know a lot about GWT, but I have found some code that seems to add the movie ok:
      htmlElement += "<object id=\"flexApp\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,5,0,0\" height=\"400\" width=\"400\">\n";
      htmlElement += ("<param name=\"flashvars\" value=\"bridgeName=example\"/>\n");
      htmlElement += ("<param name=\"src\" value=\"" + swfPath + "\"/>\n");
      htmlElement += ("<embed name='flexApp' pluginspage=' http://www.macromedia.com/go/getflashplayer' src='" + swfPath + "' height='400' width='400' flashvars='bridgeName=example'/>\n");
      htmlElement += "</object>\n";

      //DOM.setInnerHTML(objectElement, htmlElement);
      DOM.setInnerHTML(divElement, htmlElement);

      but when I say: $wnd.FABridge.example.target, there is no getRoot() on it. So therefore calling FABridge.example.root() fails.

      This problem has also been discussed here:

      http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/b3ee92477012404e/7c 37b80ba6c958f7?lnk=gst&q=flex&rnum=1

      This works ok on Firefox, but not IE.