- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::Link::swf
::xowiki::Link::swf 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
::xotcl::Class create ::xowiki::Link::swf \ -superclass ::xowiki::Link::fileMethods (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)
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables