Method: FlashTool::FlashCombine#initialize

Defined in:
lib/flash_tool/flash_combine.rb

#initialize {|_self| ... } ⇒ FlashCombine

Take two or more SWF files, and combine them into a new SWF file. Can be used with or without master swf file

Use

combinated_file = FlashTool::FlashCombine.new
combinated_file.master("master.swf")
combinated_file.slave("viewport","slave.swf") #viewport is name of frame where can be placed slave
combinated_file.rate(24)
combinated_file.save("merged.swf")

cominated_file = FlashTool::FlashCombine.new do |f|
 f.master("master.swf")
 f.slave("viewport","slave.swf")
 f.output("merged.swf")
 f.save
end

Yields:

  • (_self)

Yield Parameters:



32
33
34
35
36
37
# File 'lib/flash_tool/flash_combine.rb', line 32

def initialize(&block)
  @args = []
  @slaves = []
  @command = "swfcombine"
  yield self if block_given?
end