I believe JSFL can get at the curve/vertex data - but only at author-time, not at runtime.
Perhaps you could use JSFL to extract that data into a form you _can_ use? Alternatively, could you use JSFL to pregenerate various states of your object? e.g. copy the graphic, randomly delete 10% of the points; copy the graphic, randomly delete 20% of the points... I think if I were writing this sort of thing I'd probably be looking at some sort of reveal of the final graphic - for example, starting very pixellated and gradually improving the resolution; or starting very blurred and gradually sharpening. Something like that, which doesn't depend on the underlying data. Although your idea about only drawing some of the points could look very pretty, I'd imagine. :-) (Or - if it's a very simple object, is there any mileage in splitting it up into different MovieClips and making them appear one by one?) Hope something there is useful... Ian On Tue, Jan 13, 2009 at 1:40 AM, Todd Kerpelman <[email protected]> wrote: > Hmmm... well, for the record, my art is currently just stored as a plain ol' > Graphic in my Flash IDE library (after tracing it from a bitmap) although I > can convert it to other formats if need be. I was hoping Flash had some way > of getting at the vector data, given that it's storing it internally > already. > > In any case, I'm not working in Flex at the moment, so Defraga doesn't seem > like it would help this current project, but you're right; it definitely > looks cool... > > > --T > > > On Mon, Jan 12, 2009 at 4:57 PM, Nate Beck <[email protected]> wrote: > >> A big issue here is that you need a format that can be parsed at runtime. >> Which I'm quickly finding out is not all that easy to do with the new >> Adobe >> Format... FXG. :( >> I'm writing a tile based game right now, and I want to store my tile >> library >> in a runtime-loadable format, like FXG or degrafa... It's not working so >> well. :/ >> >> >> >> On Mon, Jan 12, 2009 at 4:38 PM, Joel Stransky <[email protected] >> >wrote: >> >> > something I've always wanted to try is write a script for Illustrator >> that >> > would output all of the path info including bezier handles to a text file >> > for use in flash. >> > >> > Maybe there's something in the api that will help. >> > >> > >> http://partners.adobe.com/public/developer/en/illustrator/sdk/AIJavaScriptReference.pdf >> > >> > On Mon, Jan 12, 2009 at 7:04 PM, Nate Beck <[email protected]> wrote: >> > >> > > How are you storing the vector art? >> > > You need a way to parse out the data so that you can choose which lines >> > to >> > > draw. Degrafa is an excellent way to go. http://www.degrafa.org/ >> > > >> > > I don't know Degrafa well enough to tell you if there is something >> > already >> > > in there that will make what you're trying to accomplish easier. >> > > >> > > Also, something that comes to my mind to watch out for... would be to >> > move >> > > the graphics "drawing head" to the correct place before drawing the >> next >> > > curve. Think if it like an Etch-a-sketch, you need to pick up the head >> > and >> > > move it somewhere else before you continue to draw, or else it's going >> to >> > > continue drawing from where you left off. >> > > HTH, >> > > Nate >> > > >> > > >> > > >> > > On Mon, Jan 12, 2009 at 3:53 PM, Todd Kerpelman <[email protected]> wrote: >> > > >> > > > Hey, Flash Coders! Wondering if you can help me out with a little >> > problem >> > > > I'm working on... >> > > > >> > > > - I have a complicated piece of vector art in my Flash file. >> > > > >> > > > - I'm basically trying to find a way to "partially" draw it. That is, >> > out >> > > > of >> > > > the 2000 curves that are in my piece of art, I'd like to randomly >> draw >> > > 50% >> > > > of them, and then people can guess what the original piece of art >> was. >> > > > >> > > > - Speed and elegant coding aren't a primary concern here. It's just a >> > > > prototype. >> > > > >> > > > Any ideas of how to do this? >> > > > >> > > > I was hoping I could find some sort of function that would let me >> > iterate >> > > > through each curve in my original piece of art, and then I could >> > randomly >> > > > decide whether or not to draw each curve into a new graphic, but I >> > can't >> > > > seem to find anything like that. If anybody has any clever >> suggestions, >> > > I'd >> > > > love to hear 'em... >> > > > >> > > > --T >> > > > _______________________________________________ >> > > > Flashcoders mailing list >> > > > [email protected] >> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > > >> > > >> > > >> > > >> > > -- >> > > >> > > Cheers, >> > > Nate >> > > ---------------------------------------- >> > > http://blog.natebeck.net >> > > _______________________________________________ >> > > Flashcoders mailing list >> > > [email protected] >> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > > >> > >> > >> > >> > -- >> > --Joel Stransky >> > stranskydesign.com >> > _______________________________________________ >> > Flashcoders mailing list >> > [email protected] >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > >> >> >> >> -- >> >> Cheers, >> Nate >> ---------------------------------------- >> http://blog.natebeck.net >> _______________________________________________ >> Flashcoders mailing list >> [email protected] >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

