%3 ::xowiki::Link::js ::xowiki::Link::js render_found ::xowiki::Link::file ::xowiki::Link::file align autostart controller controls endtime href loop mastersound name pluginspage pluginurl render_found starttime volume ::xowiki::Link::js->::xowiki::Link::file ::xowiki::Link::swf ::xowiki::Link::swf render_found ::xowiki::Link::swf->::xowiki::Link::file ::xowiki::Link::css ::xowiki::Link::css render_found ::xowiki::Link::css->::xowiki::Link::file ::xowiki::Link::image ::xowiki::Link::image render render_found resolve_href ::xowiki::Link::file->::xowiki::Link::image ::xowiki::Link ::xowiki::Link ::xowiki::Link::image->::xowiki::Link

Class ::xowiki::Link::swf

::xowiki::Link::swf[i] create ... \
           [ -align align ] \
           [ -bgcolor bgcolor ] \
           [ -height height ] \
           [ -loop loop ] \
           [ -menu menu ] \
           [ -play play ] \
           [ -quality quality ] \
           [ -salign salign ] \
           [ -scale scale ] \
           [ -version version ] \
           [ -width width ] \
           [ -wmode wmode ]

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::Link::file[i]
::xotcl::Class create ::xowiki::Link::swf \
     -superclass ::xowiki::Link::file

Methods (to be applied on instances)

  • align (setter)

  • bgcolor (setter)

  • height (setter)

  • loop (setter)

  • menu (setter)

  • play (setter)

  • quality (setter)

  • render_found (scripted)

    ::xo::Page requireJS /resources/xowiki/swfobject.js
    #set link [::${:package_id} pretty_link -absolute true  -siteurl http://localhost:8003 ${:name}]/download.swf
    lassign {320 240 7} width height version
    foreach a {width height version} {if {[info exists :$a]} {set $a [set :$a]}}
    set id [::xowiki::Includelet html_id ${:item_id}]
    set addParams ""
    foreach a {quality wmode align salign play loop menu scale} {
      if {[info exists :$a]} {append addParams "so.addParam('$a', '[set :$a]');\n"}
    }
    
    return [ns_trim [subst {<div id='[ns_quotehtml $id]'>$label</div>
      <script type='text/javascript' nonce='[security::csp::nonce]'>
      var so = new SWFObject('[ns_quotehtml $href]', '[ns_quotehtml ${:name}]',
                             '[ns_quotehtml $width]', '[ns_quotehtml $height]', '[ns_quotehtml $version]');
      $addParams so.write('$id');
      </script>
    }]]
  • salign (setter)

  • scale (setter)

  • version (setter)

  • width (setter)

  • wmode (setter)