Skip to main content
May 9, 2008
Question

Possible to export graphics as Vector using AS3?

  • May 9, 2008
  • 1 reply
  • 765 views
I'm developing an application in which users will draw on screen, type in text: create their own small artwork. We won't be drawing to bitmaps, in order to try to keep

I would like to (and need to, really) save this in vector format, not bitmap. The data will be uploaded to a DB and then later downloaded and displayed (there will be many users).

I've looked far and wide and can't see any method(s) for saving vector (drawing) data in Flash. I've seen some basic examples of how to save Flash graphics data as SVG format, but this wasn't recommended for large-scale applications, and I don't know much about SVG syntax to expand the sample code I saw.

Are there any native AS3 calls that will do this? If no, is there any way to accomplish the goal? Can one export a SWF of specific sprites, etc using AS3?

Failing that, are there 3rd party tools that would help, including batch tracers? (I've seen some commercial online printing sites that present uploaded data in Flash format, maintaining the vector nature of fonts, etc -- how do they do it?)

Thanks for any help

Robert

Thanks for any help
This topic has been closed for replies.

1 reply

Inspiring
May 9, 2008
At the most basic level, if artwork is indeed small, you can create arrays of x and y on mouse move. Back when shared objects were first coming in I remember finding this worked pretty well, doing a lineTo point to point of the array.