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 2F0EB11866 for ; Sun, 7 Sep 2014 00:49:42 +0000 (UTC) Received: (qmail 78537 invoked by uid 500); 7 Sep 2014 00:49:41 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 78501 invoked by uid 500); 7 Sep 2014 00:49:41 -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 78488 invoked by uid 99); 7 Sep 2014 00:49:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Sep 2014 00:49:41 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of omuppi1@gmail.com designates 209.85.212.180 as permitted sender) Received: from [209.85.212.180] (HELO mail-wi0-f180.google.com) (209.85.212.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Sep 2014 00:49:13 +0000 Received: by mail-wi0-f180.google.com with SMTP id ex7so1021778wid.13 for ; Sat, 06 Sep 2014 17:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=4MpFLTIOH7O6NumE3HmgBDe6zNlBrKuKdjpGjWdHv/Q=; b=XOvGk8mO8ONl0cYnwIJsSW8Y+6Fp+SG43zSXQQdn8EwF8utlJpfj9KViqS7XwNypij 0vaj8CpLcgX8sc9NbHTr4M2inJBpLYmr745VJFYDvqKyqIt99qaSaC89xJuTJthcn79H gmGNnsLYrcjmjOHXtLrID6KoAZZArt/HA3SCc42ij5PBLikcB1qM/PxFhkCltshVsisE kactETdjGgIC9A92My6ezF1Z4GXxg2Nz4jbyw9Nt7zNMYp2opMBzZIZfZuW1xIL7sRIo txbAxFWbF33YruWjBBztUmMyvvsl1FSK3kNUdc1JpZFMElGUa2wA5n1ePyczniQYP5yp SzxQ== MIME-Version: 1.0 X-Received: by 10.180.186.230 with SMTP id fn6mr13088005wic.44.1410050952414; Sat, 06 Sep 2014 17:49:12 -0700 (PDT) Sender: omuppi1@gmail.com Received: by 10.216.97.208 with HTTP; Sat, 6 Sep 2014 17:49:12 -0700 (PDT) Received: by 10.216.97.208 with HTTP; Sat, 6 Sep 2014 17:49:12 -0700 (PDT) In-Reply-To: References: <804A96A0-1E4A-4DA2-A0B5-1CA6D162472F@icloud.com> <701B2C06-4B63-4963-906B-BE9C7ECB3CC5@icloud.com> Date: Sat, 6 Sep 2014 17:49:12 -0700 X-Google-Sender-Auth: ALF80BJV1d_XgIx8Aoi7KSehrEI Message-ID: Subject: Re: SVG/SWF to FXG Converter From: OmPrakash Muppirala To: users@flex.apache.org Content-Type: multipart/alternative; boundary=001a1133a838224cd505026f12d5 X-Virus-Checked: Checked by ClamAV on apache.org --001a1133a838224cd505026f12d5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sep 6, 2014 2:23 PM, "jude" wrote: > > FYI There is some new commands in AS3 to getGraphicsData(). Basically, yo= u > 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 i= t > 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. I know that XSLT works on Safari(webkit) and Firefox. Google has declared a an intent to remove it from their Blink engine. I believe you need to do some ActiveX calls for IE. Thanks, Om > > 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/CC20= 14/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 by > > using 'xsltproc=E2=80=98. > > > > > > > > I will see to add some (silent) command line arguments to the converter as > > 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 the > > >>> 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 .sw= f. > > >>> 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 the > > >> 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 t= o > > >>> 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 don= e > > >>> 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, when > > >>>>> 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 > > >>> > > >>> > > > > --001a1133a838224cd505026f12d5--