Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 013BD11527 for ; Sat, 6 Sep 2014 21:23:02 +0000 (UTC) Received: (qmail 93131 invoked by uid 500); 6 Sep 2014 21:22:57 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 93115 invoked by uid 500); 6 Sep 2014 21:22:57 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 93065 invoked by uid 99); 6 Sep 2014 21:22:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Sep 2014 21:22:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of flexcapacitor@gmail.com designates 209.85.218.51 as permitted sender) Received: from [209.85.218.51] (HELO mail-oi0-f51.google.com) (209.85.218.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Sep 2014 21:22:53 +0000 Received: by mail-oi0-f51.google.com with SMTP id e131so1522353oig.10 for ; Sat, 06 Sep 2014 14:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=9V9AYZhorzdTJiimi2pdYSI+EPfNhB8PEjYb5U5+Kvk=; b=G7gZZjcO+jqED2iueTDGWqvZlowQlwW1kDGD8BKmvEhiG0Sd2Sr3DzXYAMgYYz8Ivj fZK8hTZIZQkLqOW2LgUf6/+NXIjuWJimnTv4f08YYLrx+a22PvKgyHj+GNczw6RHsSTn UemUjQSP3wiaxbBkDS2DaJQp8ni9KiQxUOo24yAWDQgRN/yXBITm0QlMEwW1RBIJ11Zj 61iAVJk3Iwn+78yQqOfTlRwfP9N4DxKf6a5Wzk2AymF5EJoeqq78NJ0nRNYPPiWdvGKP ROf/lavsWhzJdU+SHuG92ydzS6En/JbokgqXPU+C+ZhHmF1aN7NqExlp5c0lcucr6Kgr N7sg== X-Received: by 10.60.147.130 with SMTP id tk2mr4007657oeb.68.1410038553127; Sat, 06 Sep 2014 14:22:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.18.129 with HTTP; Sat, 6 Sep 2014 14:22:12 -0700 (PDT) In-Reply-To: References: <804A96A0-1E4A-4DA2-A0B5-1CA6D162472F@icloud.com> <701B2C06-4B63-4963-906B-BE9C7ECB3CC5@icloud.com> From: jude Date: Sat, 6 Sep 2014 16:22:12 -0500 Message-ID: Subject: Re: SVG/SWF to FXG Converter To: "users@flex.apache.org" Content-Type: multipart/alternative; boundary=047d7b3a80fc14352405026c2fb1 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3a80fc14352405026c2fb1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable FYI There is some new commands in AS3 to getGraphicsData(). Basically, you may be able to load a SWF and run exportGraphicsData to get the vectors data and then you can use that to create SVG or FXG. http://www.bytearray.org/?p=3D4893 Also, there is this, http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macro= media_Flash/Q_28213225.html Om, there are XML processors in almost all the browsers. Do you know is it only Webkit that has an XSLT processor or do others as well? I'm thinking if what you guys are talking about would run in the browser. For example, this JS function is used to create an XML document: // IE if (window.ActiveXObject) { var xmlDoc =3D new ActiveXObject("Microsoft.XMLDOM"= ); xmlDoc.async =3D "false"; xmlDoc.loadXML(txt); } // Mozilla, Firefox, Opera, etc. else if (document.implementation.createDocument) { var parser =3D new DOMParser(); var text =3D txt; var xmlDoc =3D parser.parseFromString(text, "text/xml"); } On Sat, Sep 6, 2014 at 9:43 AM, Sascha Ahrend wrote: > A direct way to export FXG from Illustrator CC would be to e.g. run an > AppleScript to Export SVG. Example here: > > > http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/illustrator/sdk/CC= 2014/Illustrator%20Scripting%20Reference%20-%20AppleScript.pdf > > Then add an additional code line in the AppleScript to call the > 'svg2fxg.xls' (included in the app source code) just the same way I did b= y > using 'xsltproc=E2=80=98. > > > > I will see to add some (silent) command line arguments to the converter a= s > well together with a Win/Mac version. > > S > > > > > Am 05.09.2014 um 21:32 schrieb Sascha Ahrend : > > > > > I meant to convert the swf to fxg after. > > > > Yes, of course there is dependencies. It's rather meant as a workaround= . > > > > Rgds., > > > > Sascha > > > > > > > > > > > >> Am 05.09.2014 um 21:28 schrieb OmPrakash Muppirala < > bigosmallm@gmail.com>: > >> > >> On Fri, Sep 5, 2014 at 12:24 PM, Sascha Ahrend > wrote: > >> > >>>> Any thoughts on creating an plugin/extension for Illustrator CC? It > >>> would > >>>> be a great feature to have this integrated into the workflow. > >>> > >>> Actually the best way to convert AI files is to import an .ai into th= e > >>> stage of a Flash Pro file with 'Text as vector outline=E2=80=98 and '= all layers > >>> into a single flash-layer=E2=80=98 and release straight away as .swf. > >>> Supposed you removed all bitmap data, you will get pretty accurate > results. > >> That is one way, but you don't get it in the FXG file format and all t= he > >> benefits that come with it. Also, it adds a dependency on Flash Pro. > >> > >> Thanks, > >> Om > >> > >> > >>> S > >>> > >>>> Am 04.09.2014 um 19:56 schrieb OmPrakash Muppirala < > bigosmallm@gmail.com>: > >>>> > >>>>> On Thu, Sep 4, 2014 at 10:47 AM, Sascha Ahrend > >>>> wrote: > >>>> > >>>>> Hello all, > >>>>> > >>>>> > >>>>> following a recent thread on Design tools for Flex, I built a > SVG/SWF to > >>>>> FXG converter. > >>>>> The SVG conversion scheme is a modified version of Inkscape=E2=80= =99s > upcoming > >>> FXG > >>>>> export scheme (no release date yet.) > >>>>> The SWF conversion is based on the as3swf library. > >>>> > >>>> Sascha, this is awesome. Thanks for working on this. I will play > with > >>> it > >>>> and give you some feedback soon. Any chance you will be willing to > >>> donate > >>>> it to Apache Flex so that we can have the community work on it and > make > >>> it > >>>> better? > >>>> > >>>> > >>>>> > >>>>> You can find the converter as well as the source code here: > >>>>> http://www.realcreation.com/S2F_Converter/ > >>>>> > >>>>> Windows users: > >>>>> As Microsoft Windows doesn't ship with any built-in XSL processor > >>>>> (necessary for the SVG conversion), this code is for Mac OS only. > >>>>> However, you can adjust it to use a Windows 3rd party XSL command > line > >>>>> processor (e.g. Saxon, msxsl, etc.) by just changing a few lines of > >>> code. > >>>> > >>>> When I built an FXG to SVG converter (reverse of what you have done > >>> here), > >>>> I built an AIR app and called the XSLT function from the embedded > >>> browser. > >>>> Webkit comes with an XSLT converter, so it should be pretty > >>> straightforward > >>>> to make this tool cross-platform when used with AIR. > >>>> > >>>> > >>>>> > >>>>> I also wrote a small tutorial, what may be of some general use, whe= n > >>>>> working with FXG conversion. > >>>> > >>>> Any thoughts on creating an plugin/extension for Illustrator CC? It > >>> would > >>>> be a great feature to have this integrated into the workflow. > >>>> > >>>> Thanks, > >>>> Om > >>>> > >>>> > >>>>> I hope you like it. > >>>>> > >>>>> > >>>>> Best Regards, > >>>>> > >>>>> Sascha > >>> > >>> > > --047d7b3a80fc14352405026c2fb1--