[swfmill] Tint or Inline Low-Level

Ryan Hill rhill at manlab.com
Wed Aug 6 13:07:53 PDT 2008


Okay, so I pulled xslt_simple out of simple.cpp and played around with that
a little.  I've created two additional tags, one which draws a rectangle
whose colour I can specify, and one that places it on the stage.  I had to
make my own placeShape tag rather than use the existing place tag from
simple, because the basic code uses different IDs from the simple code.  But
that does the job enough that I could assemble just about anything I want
from bits and pieces of swf2xml generated code.

====================================================
Date: Wed, 30 Jul 2008 12:47:25 +0200
From: "Icey Shard" <iceyshard at gmail.com>
Subject: Re: [swfmill] Tint or Inline Low-Level

I'm pretty new myself, so take this with a grain of salt, but I don't
think there is support for "tint" or a way to inline any code in the
current  "simple"... but you can add support for "tint" yourself.

I'm going to do some moderately simple animations, and I'm currently
adding various features I need to "simple" (which becomes not so
simple in the process.), here's how I do it:

"simple" is in fact an XSLT stylesheet, stored inside the program in a
big string constant.
I'm not sure if there's any simple/official way of getting it, I just
downloaded the source code and did something like
#include "xslt/simple.cpp"
int main()
{ printf("%s",xslt_simple); }
Once I had the "simple" as a separate simple.xls file, I started
changing it. Doing minor adjustements is pretty simple. You can even
add new tags and arguments.
Then I compile to swf with "swfmill xslt modified_simple.xls source
output.swf"

If you post a short sample of low-level code that does what you want,
I could probably code it for you. Or send you a clean simple so you
can do it yourself.





More information about the swfmill mailing list