Code Monkey home page Code Monkey logo

swfmill_ruby's Introduction

SwfmillRuby
===========

SwfmillRuby is a utility-classes to use Swfmill(http://swfmill.org) via Ruby.
This library is assumed to use to fiddle with the SWF published as FlashLite 1.1 - most popular version among mobile phone in Japan.

* features
  * SwfmillUtil::Swfmill
    * calling swfmill-program(xml2swf, swf2xml) from ruby.
  * SwfmillUtil::Swf
    * accessing to images(Magick::Image) included in Swf. (Swf#images)
    * replacing images and texts included in Swf.
      * supported tags: DefineBitsLossless, DefineBitsLossless2, DefineBitsJPEG2 and DefineEditText.
      * converting DefineBitsLossless, DefineBitsLossless2, DefineBitsJPEG2 <=> Magick::Image
    * controlling movieclips in Swf (alpha version)
      * accessing to movieclips as SwfmillUtil::DefineSprite in Swf. (Swf#movieclips)
      * accessing to movieclips by instance-name placed on stage. (Swf#movieclip_ids_named)
      * replacing movieclips with referred shapes, images and texts.
      * making partial xml meaning movieclip from Swf to use for replacing by DefineSprite#[]=. (DefineSprite#partialize)
      * making template text based on original xml to use for replacing by String#gsub. (DefineSprite#templatize)
      * adjusting referred object_ids on replace movieclips.
    * writing out re-generated Swf. (Swf#write)

Requirements
============

 * swfmill 0.2.12
   - patched supporting CP932 encoding
     http://dsas.blog.klab.org/archives/51174693.html
   - patched supporting DefineBitsLossless format=3
     http://cyanogen.dynsite.net/~raia/diary/20090728.html#p01
 * ImageMagick 6.3.7 or greater
 * rubygems and rmagick(2.8.0 or greater) library
 * LibXML2 and libxml-ruby(0.9.7)

Usage
=====

First, Set constant SWFMILL in lib/swfmill.rb to path to swfmill-program for your environment.

Then, see sample/*.rb files or http://github.com/tmtysk

Thanks
======

* http://swfmill.org/
* Great patch-program for swfmill provided by KLab,Inc.
* Sample GIF image is provided by ICHIGO-APORO.

Copyright (c) 2008 tmtysk.
    released under the GNU GENERAL PUBLIC LICENSE Version 2.
    See COPYING for details.

swfmill_ruby's People

Contributors

hokaccha avatar koumiya avatar muraoka17 avatar tmtysk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.