#!/usr/bin/python2.3 import SWF import Image swf = SWF.create(version=5, bbox=(0,0,512,512), fps=50) color_darkblue = SWF.Color(r=0,g=0,b=50) color_firebrick = SWF.Color(r=178,g=34,b=34) shape = SWF.Shape("moveTo 10,10 lineTo 100,10 lineTo 10,100 lineTo 10,10", fill=color_darkblue, line=(2.5, color_firebrick), ) swf.tags += shape swf.tags += SWF.PlaceObject(shape, depth=3, matrix=SWF.Matrix(x=50,y=75)) for frame in range(1,100): swf.tags += SWF.MoveObject(shape, depth=3, matrix=SWF.Matrix(x=frame*2+50,y=frame*2+75)) swf.tags += SWF.ShowFrame() swf.save("tmp/test.swf")