swfの動的生成はswfmillやmingという方法があるけれど、ひな形となるswfの変数だけを動的に変えるだけでよい場合にはswfバイナリを直接変更するという方法もあるという例。 生成した変数はルートムービークリップの変数になるようだ。変数名と同じ変数名でダイナミックTextインスタンスをステージに配置すれば、動的設定した文字列を表示することもできる。 swf.rb#!/usr/bin/env ruby # -*- encoding: utf-8 -*- require 'stringio' module SWF def self.read(src) header = src.read(9) x = (header[8] >> 3) * 4 + 5 header_size = ((((8 - (x & 7)) & 7) + x) / 8) + 12 + 5 header << src.r
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く