A way to put my inkscape SVG's into Flash CS3?

Using Inkscape with other software? Talk about it here.
GdaTerry
Posts: 2
Joined: Tue Feb 19, 2008 8:40 am

A way to put my inkscape SVG's into Flash CS3?

Postby GdaTerry » Thu May 08, 2008 5:28 am

Hello, I recently got flash CS3, however, I really dislike the drawing part of it. I really would rather put in my SVG files from inkscape however for whatever reason, it does not have SVG import. Is there anyway I can import my inkscape SVGs?

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: A way to put my inkscape SVG's into Flash CS3?

Postby microUgly » Thu May 08, 2008 9:05 am

Perhaps if you save your drawing as another filetype that Flash does support. I would try PDF.

adamcolton

Re: A way to put my inkscape SVG's into Flash CS3?

Postby adamcolton » Sat May 17, 2008 2:55 pm

None of the file formats inherent to each does a decent job. You can export a raster image from Inkscape, import that into Flash and select Trace bitmap from the menu, but it does not do a particularly good job, and it's inefficient. If there is a way to export Inkscape to the Adobe Illustrator format that would be best, but I don't know of a soloution.

Rikaix

Re: A way to put my inkscape SVG's into Flash CS3?

Postby Rikaix » Sun May 18, 2008 6:41 pm

hello,

there's some experimentations see here : http://flash-creations.com/notes/sample_svgtoflash.php

the 'oldy' : http://robla.net/1996/svg2swf/

and this one interesting too : http://www.eprg.org/research/SVG/flash2 ... vganim.php

hope these can help, im am also interesting for this 'export' if you got some other ressources, don't hesitate ...

adamcolton

Re: A way to put my inkscape SVG's into Flash CS3?

Postby adamcolton » Fri May 23, 2008 7:28 am

These are all very interesting projects, but none of them provided the necessary functionality . What I really need is a way to translate svg into fla or swc.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: A way to put my inkscape SVG's into Flash CS3?

Postby microUgly » Fri May 23, 2008 10:50 am

You might want to try looking for an indirect path to getting SVG to FLA. I would have thought once you had converted an SVG to SWF it would be easy to convert the SWF to FLA. Flash CS3 can't do that?

If you don't get your answer here you might want find a flash community to ask.

Juonio

Re: A way to put my inkscape SVG's into Flash CS3?

Postby Juonio » Sat Jul 05, 2008 8:34 pm

You can save file as .emf in Inkscape and then import it to flash.

NuckChorris
Posts: 1
Joined: Tue Apr 14, 2009 4:55 am

Re: A way to put my inkscape SVG's into Flash CS3?

Postby NuckChorris » Tue Apr 14, 2009 6:01 am

I found an article that tells how to embed an svg in flash, but you have to use Flex builder or the Flex SDK (SDK is a free download from Adobe), since it requires the [embed] tag. Still, the code is actually quite simple, and it works fairly well. I tried it out, with some very slight changes, removing the textarea, as that seemed superfluous when I was working with the code, and reformatting the code a bit:

Code: Select all

package {
import flash.display.DisplayObject;
import flash.display.Sprite;
[SWF(width="200", height="200")]
public class svgEmbed extends Sprite
{
    public function svgEmbed()
    {
        var svg:DisplayObject = DisplayObject( new EmbeddedSVG() );
        addChild(svg);
    }
    [Embed(source='svgImage.svg', mimeType='image/svg')]
    protected const EmbeddedSVG:Class;
}
}

The result is that Flex's compiler transcodes (embeds) the SVG (svgImage.svg), with a Class referencing it (EmbeddedSVG). The main function then initializes a new instance of the EmbeddedSVG class in the variable svg. The variable svg is a DisplayObject, so it explicitly coerces the DisplayObject type onto the EmbeddedSVG instance, to cover all base. Finally, it adds the svg DisplayObject as a child of the svgEmbed class (hence the 'extends sprite' thing). The result is a 200x200 SWF with an embedded SVG.

This method of embedding an SVG into an SWF, as I understand from reading stuff on Adobe's livedocs pages, allows you to manipulate SVGs as Sprites or something, which is nice. Still, I noticed that there were small lines in a grid-like formation when I used it on a big SVG, probably due to Flash rendering it in blocks, which are then positioned in such a way that the edges should line up, but often don't, resulting in small gaps between blocks. On all my experiments so far, I have used SVGs which showed little or no difference in quality when I switched between High and Low qualities. Oh, and because the SVGs are just converted to vector objects in flash, they don't lose quality if you zoom in with Flash!

Source(s):
http://twelvestone.com/forum_thread/view/37584
http://livedocs.adobe.com/flex/2/docs/w ... tml#176435
Some places linked from above sites (I follow links to links to other links and get to really untraveled corners of the web that way, but I can never keep track)

hjalle
Posts: 89
Joined: Wed May 20, 2009 8:42 pm

Re: A way to put my inkscape SVG's into Flash CS3?

Postby hjalle » Tue Jun 16, 2009 12:39 am

Try EPS, I have used EPS from Adobe Illustrator to flash many times, and from InkScape to Adobe Illustrator (export every layer as separate EPS file to import it to separate layer in Adobe Illustrator)

InkScapes layer effect can't other program read in any format, is my experience.
/Tommy Hjalmarsson

jedermansch

Re: A way to put my inkscape SVG's into Flash CS3?

Postby jedermansch » Fri Aug 28, 2009 11:26 pm

Ctrl+C in Inkscape and Ctrl+V in Flash usualy works, but you can't copy gradient fills that way.

Guest

Re: A way to put my inkscape SVG's into Flash CS3?

Postby Guest » Sat Aug 29, 2009 12:37 am

the
Juonio wrote:You can save file as .emf in Inkscape and then import it to flash.

excelent!!! it work pretty good :)

showboy1080
Posts: 10
Joined: Tue Nov 03, 2009 12:43 am

Re: A way to put my inkscape SVG's into Flash CS3?

Postby showboy1080 » Sun Jan 10, 2010 1:39 pm

I've found a way. Of course, this may not be completely perfect, I happen to be using CS4. But, you should try, never the less.
1. Draw your drawing. Make it pretty.
2. Save as .EMF.

I hope CS3 supports .EMF!
Inkscape doesn't work without me...and Ctrl+Z

showboy1080
Posts: 10
Joined: Tue Nov 03, 2009 12:43 am

Re: A way to put my inkscape SVG's into Flash CS3?

Postby showboy1080 » Tue Jul 27, 2010 2:53 pm

Use a program called UNI-CONVERTER. Download here: http://sk1project.org/modules.php?name= ... p=download
Inkscape doesn't work without me...and Ctrl+Z

serje
Posts: 1
Joined: Tue May 17, 2011 4:37 pm
Location: London

Re: A way to put my inkscape SVG's into Flash CS3?

Postby serje » Tue May 17, 2011 4:49 pm

showboy1080 wrote:Use a program called UNI-CONVERTER. Download here: http://sk1project.org/modules.php?name= ... p=download


I am sorry, but this program doesn't works on my computer. Maby you can recommend me another one else?


Return to “Inkscape & other”