Sha256: bef68c43b34254a741e840e311d24bfa5fe3f5969bc659915846400706511fbc
Contents?: true
Size: 617 Bytes
Versions: 4
Compression:
Stored size: 617 Bytes
Contents
require File.dirname(__FILE__) + "/../../node/base" module FN module SWF module Node def Flash(width, height) FN::Node::Base("flash", :width => width, :height => height).extend(Flash) end module Flash include FN::Node::Base def visit(struct) w = self[:width] h = self[:height] size = "#{w}x#{h}" struct.<< %[.flash bbox="#{size}" compress version=6] do struct.<< %[.box bkg width=#{w} height=#{h} color=white fill] visit_children struct end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fn_document-0.9.6 | lib/fn/swf/node/flash.rb |
fn_document-0.9.4 | lib/fn/swf/node/flash.rb |
fn_document-0.9.3 | lib/fn/swf/node/flash.rb |
fn_document-0.9.2 | lib/fn/swf/node/flash.rb |