PDA

View Full Version : SVG format


amandeepsiin
02-03-2007, 03:20 AM
Hi,

Can anyone tell me that how can I get the SVG format from flash through ActionScript at runtime.

Let say I am designing a template in flash which uses text, images, and vector graphics. I need to export the same as a high resolution JPEG and also need to export the same as SVG format.

I know how to export the high resolution JPEG, but I don’t know how to export the SVG format. Can anyone help me in doing the same?

Thanks in advance.

CyanBlue
02-05-2007, 12:26 PM
Howdy and Welcome... :)

I don't think you can export SVG out of Flash...

newblack
02-05-2007, 04:08 PM
take a look at this: http://flash-creations.com/notes/sample_svgtoflash.php

i'm currently working on an app that exports svg- it's really just .xml. if i was able to share the source with you, i would... sorry

CyanBlue
02-05-2007, 04:13 PM
Interesting... :)

amandeepsiin
02-06-2007, 03:39 AM
take a look at this: http://flash-creations.com/notes/sample_svgtoflash.php

i'm currently working on an app that exports svg- it's really just .xml. if i was able to share the source with you, i would... sorry

I am also working on the same... SVG is very similar to XML... just the difference it has its own tags... rest the structure is same as XML... so we can use the flash XML object class to accomplish our goal...

working on the same... will let you when done...

Anyways thanx for replying... :)

amandeepsiin
02-06-2007, 03:41 AM
Howdy and Welcome... :)

I don't think you can export SVG out of Flash...

It is possible and will let you know when done...

Anyways thanx for replying... :)

CyanBlue
02-06-2007, 12:17 PM
Hm... Interesting... Yeah... Please let me know what you find out... ;)

jsebrech
02-06-2007, 12:55 PM
That example seems to be importing SVG into flash, which I can attest is very feasible. Exporting is simply the reverse process, assuming you have a data structure containing all the drawing operations necessary to recreate a drawing. Which, ofcourse, is a big if.

SVG is richer than flash's native drawing abilities, so if it can be done with the drawing API in flash, it can be translated into SVG.