実験中

実行

response.content_type = 'application/x-shockwave-flash'

movie = SWFMovie.new()
movie.set_dimension(50, 50)
font = SWFBrowserFont.new('_serif')
text = SWFTextField.new()

text.set_font(font)
text.add_string('Hello, world')

info = movie.add(text)
for i=1,9 do
  info.move_to(0, i * 5)
  movie.next_frame()
end

movie.add(SWFAction.new('stop();'))
response.output_movie(movie)