Sha256: 5a6420f17c73586834c1bd101e66a6ae637324dc1d2fd301e674f023a65c77c8
Contents?: true
Size: 726 Bytes
Versions: 4
Compression:
Stored size: 726 Bytes
Contents
require File.dirname(__FILE__) + "/../../node/base" module FN module SWF module Node def Page(number, bkg) FN::Node::Base("page", :number => number, :bkg => bkg).extend(Page) end module Page include FN::Node::Base def visit(struct) n = self[:number] bkg = self[:bkg] struct << ".frame #{n}" struct.<< ".sprite page#{n}" do struct << ".put bkg 0 0" struct << ".put #{bkg} x=0 y=0" visit_children(struct) end struct << ".put page#{n} 0 00" struct.<< ".action:" do struct << "stop();" 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/page.rb |
fn_document-0.9.4 | lib/fn/swf/node/page.rb |
fn_document-0.9.3 | lib/fn/swf/node/page.rb |
fn_document-0.9.2 | lib/fn/swf/node/page.rb |