public String createDefinition ( WidgetUtil . FlashObject obj ) { String transparent = obj . transparent ? "transparent" : "opaque" ; String params = "<param name=\"movie\" value=\"" + obj . movie + "\">" + "<param name=\"allowFullScreen\" value=\"true\">" + "<param name=\"wmode\" value=\"" + transparent + "\">" + "<param name=\"bgcolor\" value=\"" + obj . bgcolor + "\">" ; if ( obj . flashVars != null ) { params += "<param name=\"FlashVars\" value=\"" + obj . flashVars + "\">" ; } String tag = "<object id=\"" + obj . ident + "\" type=\"application/x-shockwave-flash\"" ; if ( obj . width . length ( ) > 0 ) { tag += " width=\"" + obj . width + "\"" ; } if ( obj . height . length ( ) > 0 ) { tag += " height=\"" + obj . height + "\"" ; } tag += " allowFullScreen=\"true\" allowScriptAccess=\"sameDomain\">" + params + "</object>" ; return tag ; }
Creates the HTML string definition of an embedded Flash object .