Re: [swfmill] alternative vector sources

2007-02-28 Thread Christopher Brian Jack
On Wed, 28 Feb 2007, Darren Cook wrote:

  What about the second question then?  Is there something I can store
  vectors as that the AS can access the controls point and vertices
  with?

 If you had your vertices in JSON format it is basically actionscript so
 could be compiled by MTASC. You could then use actionscript's drawing
 functions.

Is there a description of this format somewhere?

Or would I be better off making a Haxe class for each vector object (that
creates its own movieClip when constructed)?

.=.
|  Christopher BRIAN Jack aka Gau of the Veldt  |
+='
| [EMAIL PROTECTED]
`=-
Hi Spambots, my email address is [EMAIL PROTECTED]
Hi Humans, my email address uses rot13 cipher

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread Jon Molesa
I think he want to take a swf created in flash that does contain a
vector object and

swfmill swf2xml vector.swf vector.xml

What tags should he look for in the xml output?

What does a vecotr object drawn in flash proper come out as in smfmill's
XML output?
 
 ? i dont understand this question.
 
 -dan

-- 
Jon Molesa
[EMAIL PROTECTED]

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread daniel fischer
Christopher Brian Jack [EMAIL PROTECTED] (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/


star.xml
Description: application/xml
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] alternative vector sources

2007-02-28 Thread daniel fischer
Christopher Brian Jack [EMAIL PROTECTED] (on Wed, 28 Feb 2007 09:13:29 -0800 
(PST)):

   Am I catching that right?  Flash just imports everything to a bunch of
   actionscript?  With the only difference being the stuff in DefineShape
   supports multiple frames whereas runtime AS doesn't?

There is no script code in the star.xml at all, it's basic SWF tags. 
Actionscript is compiled to bytecode (to be found in DoAction2 tags, amongst 
others) by Flash (or MTASC, or haXe).

There's a lot you can't do from script (importing fonts comes to mind), and a 
lot you can't do without script (any program logic more complex than really 
simple buttons). That's why there's MTASC/haXe *and* swfmill :)

-dan

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org