Various modifications here and there... and now it generates a swf! Yay!