[swfmill] alternative vector sources

daniel fischer dan at f3c.com
Wed Feb 28 12:02:45 EST 2007


Christopher Brian Jack <brian at brians-anime.com> (on Wed, 28 Feb 2007 08:21:24 -0800 (PST)):

  > >   > Yes.  So if I went to flash, drew a star, then run the above what would I
  > >   > be getting in the XML?
  > >
  > > Why not just try it? This is how i started understanding the SWF format.
  > 
  > I don't own flash. :(


fair enough, me neither-- i had my flatmate produce test swfs at the time :)

i've attached a simple star swf (boiled down from
http://swfmill.org/trac/browser/trunk/test , imported from svg :) for your review. The LineTos is what you're probably interested in. CurveTo works just the same but with x1,y1 (control point) and x2,y2 ("destination" point). Note that the flash player doesnt render cubic beziers natively (you need to approximate them with quadratic ones :().

obviously, you'd need to understand some basics of SWF too (DefineSprite, PlaceObject2) to analyze/produce more complex drawings. also, please note that the structure of these is not swfmill's domain- swfmill's "lowlevel dialect" just resembles the SWF structures as XML. all weirdness thanks to macromedia (or even futuresplash) :)

hope that helps.
-dan


-- 
http://0xDF.com/
http://iterative.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: star.xml
Type: application/xml
Size: 2537 bytes
Desc: not available
Url : http://osflash.org/pipermail/swfmill_osflash.org/attachments/20070228/cc50aff8/star.rdf


More information about the swfmill mailing list