Module: FN::SWF::Node::Flash
- Includes:
- Node::Base
- Defined in:
- lib/fn/swf/node/flash.rb
Constant Summary
Constants included from Node::Base
Node::Base::CURRENT_PAGE_HEIGHT, Node::Base::CURRENT_PAGE_WIDTH
Instance Method Summary collapse
Methods included from Node::Base
#classify, #has_no_children, #mixin, #value, #visit_children, #with_attributes_like
Instance Method Details
#visit(struct, debug = false) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/fn/swf/node/flash.rb', line 12 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 |