Re: [swfmill] alternative vector sources
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] mix simple and lower level tags
Benjamin Campin [EMAIL PROTECTED] (on Mon, 26 Feb 2007 14:56:03 -0500): I was not able to get the expected results, I am not able to mix the 2 formats. My font is not included in the result. Perhaps I missed something ? can you send me a sample of this? maybe i can get it to work :) -dan -- http://0xDF.com/ http://iterative.org/ ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: [swfmill] alternative vector sources
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
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
[swfmill] Getting started question
I am new to swfmill and have two questions. First, is there a way to search the archives for a subject. I don't want to post a question that has been already answered but I can't find any way to research it (without reading the whole list). Second, my problem I am seeking assistance with: I have a swf file that contains 12 frames. When I follow the examples provided by Mark Winterhalder's Using swfmill to create SWFs without Flash, I end up with a single frame SWF that contains all 12 of my original SWF files frames. I am trying to print the first frame and then with a second print request frames 2 thru 12. I am using the activeX component flash9b.ocx under Windows XP. Regards, Joe Donth My three files are as follows: application.xml ?xml version=1.0 encoding=iso-8859-1? !--clip id=PeeingDog class=PeeingDog import=src/library/PeeingDog.swf / -- movie version=8 width=240 height=170 framerate=30 background color=#ff/ clip import=build/classes.swf / frame library clip id=Application class=Application / clip id=PeeingDog class=PeeingDog import=src/library/flash_vb.swf / /library place id=Application name=app x=0 y=0 depth=1000 / /frame /movie application.as class Application extends MovieClip { function onLoad (){ attachMovie (PeeingDog, peeingDog, 1000); } } peeingdog.as import flash.external.ExternalInterface; class PeeingDog extends MovieClip { var dateField:TextField; function PeeingDog(){ createTextField(dateField,1,0,0,100,25); dateField.text = ; if(ExternalInterface.available){ ExternalInterface.addCallback(callMe, this, callMe); ExternalInterface.addCallback(DoPrint, this, DoPrint); } } function callMe(value) { dateField.text = value; } function onLoad(){ ExternalInterface.call(Ready); } function DoPrint(value){ dateField.text = value; print(PeeingDog,bframe); } } ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: [swfmill] Getting started question
* Joseph Donth [EMAIL PROTECTED] wrote: Welcome, hope you find it useful. I am new to swfmill and have two questions. Google: site:osflash.org/pipermail/swfmill_osflash.org [Your Search Term] First, is there a way to search the archives for a subject. I don't want to post a question that has been already answered but I can't find any way to research it (without reading the whole list). Not sure what flash9b.ocx, or how you use just an OCX. You doing this in some VB? Does that compile you ActionsScript? If not you'd need something to compile it. I'd run some simpler tests for it's ability to compile code. Second, my problem I am seeking assistance with: I have a swf file that contains 12 frames. When I follow the examples provided by Mark Winterhalder's Using swfmill to create SWFs without Flash, I end up with a single frame SWF that contains all 12 of my original SWF files frames. I am trying to print the first frame and then with a second print request frames 2 thru 12. I am using the activeX component flash9b.ocx under Windows XP. -- Jon Molesa [EMAIL PROTECTED] ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: [swfmill] alternative vector sources
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
Re: [swfmill] mix simple and lower level tags
Hi Dan, Here is the example: ?xml version=1.0? swf version=8 compressed=1 Header framerate=12 frames=1 size Rectangle left=0 right=11000 top=0 bottom=8000/ /size tags font objectID=1 id=vera import=library/vera.ttf glyphs=0123456789/ FileAttributes hasMetaData=0 useNetwork=0/ SetBackgroundColor color Color red=255 green=255 blue=255/ /color /SetBackgroundColor DefineEditText objectID=2 wordWrap=0 multiLine=1 password=0 readOnly=1 autoSize=1 hasLayout=1 notSelectable=0 hasBorder=1 isHTML=0 useOutlines=1 fontRef=1 fontHeight=240 align=0 leftMargin=0 rightMargin=0 indent=0 leading=40 variableName= initialText=0123456 color Color red=0 green=0 blue=0 alpha=255/ /color /DefineEditText PlaceObject2 replace=0 depth=2 objectID=3 transform Transform transX=2480 transY=3699/ /transform /PlaceObject2 ShowFrame/ End/ /tags /Header /swf Thank you, Benjamin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of daniel fischer Sent: February 28, 2007 10:26 AM To: swfmill@osflash.org Subject: Re: [swfmill] mix simple and lower level tags Benjamin Campin [EMAIL PROTECTED] (on Mon, 26 Feb 2007 14:56:03 -0500): I was not able to get the expected results, I am not able to mix the 2 formats. My font is not included in the result. Perhaps I missed something ? can you send me a sample of this? maybe i can get it to work :) -dan -- http://0xDF.com/ http://iterative.org/ ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: [swfmill] mix simple and lower level tags
Ah, Obviously, Thanks Dan, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of daniel fischer Sent: February 28, 2007 1:32 PM To: swfmill@osflash.org Subject: Re: [swfmill] mix simple and lower level tags Benjamin Campin [EMAIL PROTECTED] (on Wed, 28 Feb 2007 13:10:29 -0500): [boiled down quote:] font objectID=1 id=vera import=library/vera.ttf glyphs=0123456789/ DefineEditText objectID=2/ PlaceObject2 depth=2 objectID=3 this works if you place the right object. With DefineEditText, you're defining id 2, but with PlaceObject2 you're placing #3 (which doesnt exist). It's maybe not quite obvious that PlaceObject2's objectID *references* an existing object while Define* -well- *define* them. hth, -dan -- http://0xDF.com/ http://iterative.org/ ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: [swfmill] mix simple and lower level tags
Dan, correct me if I am wrong, This works if we use the swfmill simple foo.xml foo.swf However it is not working with swfmill xml2swf foo.xml foo.swf Benjamin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of daniel fischer Sent: February 28, 2007 1:32 PM To: swfmill@osflash.org Subject: Re: [swfmill] mix simple and lower level tags Benjamin Campin [EMAIL PROTECTED] (on Wed, 28 Feb 2007 13:10:29 -0500): [boiled down quote:] font objectID=1 id=vera import=library/vera.ttf glyphs=0123456789/ DefineEditText objectID=2/ PlaceObject2 depth=2 objectID=3 this works if you place the right object. With DefineEditText, you're defining id 2, but with PlaceObject2 you're placing #3 (which doesnt exist). It's maybe not quite obvious that PlaceObject2's objectID *references* an existing object while Define* -well- *define* them. hth, -dan -- http://0xDF.com/ http://iterative.org/ ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: [swfmill] mix simple and lower level tags
Benjamin Campin [EMAIL PROTECTED] (on Wed, 28 Feb 2007 15:34:02 -0500): Dan, correct me if I am wrong, This works if we use the swfmill simple foo.xml foo.swf However it is not working with swfmill xml2swf foo.xml foo.swf no correction here, you're exactly right. sorry, could've mentioned that. all the hard lifting for import (ttf,png,jpg) is coded in c and triggered by swft: functions from the simple stylesheet. no grand automatisms when you use lowlevel... -dan -- http://0xDF.com/ http://iterative.org/ ___ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org