Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-03-01 Thread Alex Harui
I'm not sure what you mean by "(has the skin)". TextButton.as should have a TextButtonView.as already. One option would be to replace TextButtonView with a version that changes states in a skin class. The skin class would be TextButtonSkin.as or TextButtonSkin.mxml that references a set of fxg f

Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-03-01 Thread OmPrakash Muppirala
On Sat, Mar 1, 2014 at 8:13 AM, Alex Harui wrote: > OK. Do you think you can build a new example in MXML/AS/FXG? The > skin/view would simply choose a different FXG file for each state. In > theory you should be able to get a working SWF without any Falcon changes, > then I can run that throug

Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-03-01 Thread Alex Harui
OK. Do you think you can build a new example in MXML/AS/FXG? The skin/view would simply choose a different FXG file for each state. In theory you should be able to get a working SWF without any Falcon changes, then I can run that through FalconJX. Thanks, -Alex On 3/1/14 12:01 AM, "OmPrakash M

Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-03-01 Thread OmPrakash Muppirala
So, if it were up to me, we'd start with a test case where an MXML or AS > skin points to an fxg file for each state. The Falcon compiler should > already generate the right thing for the AS side. Then, we have to apply > a similar hook to the FXG compiler that we did to get JS output for > Falc

Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-02-27 Thread Alex Harui
On 2/27/14 2:38 PM, "OmPrakash Muppirala" wrote: >On Thu, Feb 27, 2014 at 1:43 PM, Alex Harui wrote: > >> >> >> On 2/27/14 11:53 AM, "OmPrakash Muppirala" wrote: >> >> > >> >Lets do it! Where do we start? I want to start building some JS side >>SVG >> >drawing APIs that I want to use with o

Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-02-27 Thread OmPrakash Muppirala
On Thu, Feb 27, 2014 at 1:43 PM, Alex Harui wrote: > > > On 2/27/14 11:53 AM, "OmPrakash Muppirala" wrote: > > > > >Lets do it! Where do we start? I want to start building some JS side SVG > >drawing APIs that I want to use with our Charts. The BarChart on the JS > >side uses CSS to draw, whi

Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-02-27 Thread Alex Harui
On 2/27/14 11:53 AM, "OmPrakash Muppirala" wrote: > >Lets do it! Where do we start? I want to start building some JS side SVG >drawing APIs that I want to use with our Charts. The BarChart on the JS >side uses CSS to draw, which will become limited very soon. Having a >robust JS based SVG d

Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-02-27 Thread OmPrakash Muppirala
On Thu, Feb 27, 2014 at 9:16 AM, Alex Harui wrote: > This is just my opinion, but I would not count on FXG being a feature of > Adobe Creative Cloud forever. Agreed. I share the same concern. And I dont think they will ever lose the option of exporting to SVG. > I anticipate that the AS sid

Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-02-27 Thread OmPrakash Muppirala
On Thu, Feb 27, 2014 at 1:24 AM, Carlos Rovira < carlos.rov...@codeoscopic.com> wrote: > Very cool Om! I'll take a look and will try to make my hands dirty with > this stuff :) > > After read your email I think that maybe only getting a SVG version of > spark components skin could be sufficient t

Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-02-27 Thread Alex Harui
This is just my opinion, but I would not count on FXG being a feature of Adobe Creative Cloud forever. I anticipate that the AS side of FlexJS will have to do SVG->Sprite conversion someday. I'm wondering if you are using XSLT for a reason other than not having the time to learn the FalconJX code

Re: [FlexJS] Building SVG skins from existing Spark component skins

2014-02-27 Thread Carlos Rovira
Very cool Om! I'll take a look and will try to make my hands dirty with this stuff :) After read your email I think that maybe only getting a SVG version of spark components skin could be sufficient to create a good looking set of FlexJS components, so in the end we really doesn't need FXG. I lik

[FlexJS] Building SVG skins from existing Spark component skins

2014-02-27 Thread OmPrakash Muppirala
Thanks Carlos! I created the SVG skins from the current spark component skins through a combination of automation and manual coding. One of the tools I use is the FXG -> SVG XSLT translator available here [1] Notice that there are three xslt files, transform.xslt, transform-over.xslt and transfo