Sha256: 72a2b5619f1dacb95a4d0e35b1b61fcafe9731ea054b4e9348ccd60b51211012
Contents?: true
Size: 640 Bytes
Versions: 12
Compression:
Stored size: 640 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, debug = false) 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, debug) end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems