Re: [FlexJS] Metadata (was Re: [FlexJS] SVG based TextButton and example checked in)

2014-02-28 Thread Carlos Rovira
> 1) IDE metadata like [Inspectable] that the IDE uses to do its job and > generally does not end affect compiler output or end up in the output. > IMO, this is the less valuable kind of metadata, since does not serves a final output purpose, and implies support in IDEs. > 2) Compiler directives

[FlexJS] Metadata (was Re: [FlexJS] SVG based TextButton and example checked in)

2014-02-28 Thread Alex Harui
Metadata probably deserves its own thread. Fear not, there will be Metadata support in FlexJS. IIRC, there was a long thread about Metadata a long time ago, but now might be a good time to re-collect the various uses of Metadata so we can understand how we want to implement it, especially on the

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-28 Thread Alex Harui
On 2/28/14 7:24 AM, "Carlos Rovira" wrote: >>We already have significant metadata in FlexJS.. >So I understand that [Binding] is working in FlexJS in the same way it did >in actual SDK (the compiler generates the additional code to dispatch >proper change events), isn't it? For the AS side, yes.

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-28 Thread Carlos Rovira
>We already have significant metadata in FlexJS.. So I understand that [Binding] is working in FlexJS in the same way it did in actual SDK (the compiler generates the additional code to dispatch proper change events), isn't it? btw, I see that asjs build removes this lines in flex-config.xml, is s

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-28 Thread Erik de Bruin
> > This got cut off so I'm not sure what your thoughts were. I'm not a huge > fan of MetaData but we will have it in FlexJS > We already have significant metadata in FlexJS... Each class has a FLEXJS_CLASS_INFO member that is basically pure metadata and contains information about the class itsel

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-28 Thread Carlos Rovira
>This got cut off so I'm not sure what your thoughts were. I'm not a huge fan of MetaData but we will have it in FlexJS Alex, Metadata is one of the things we have in Flex and not available in pure JS. I'm a huge advocate of metadata, both for generating code at compilation time or for later proc

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-27 Thread Alex Harui
On 2/27/14 12:11 PM, "OmPrakash Muppirala" wrote: >On Thu, Feb 27, 2014 at 8:50 AM, Alex Harui wrote: > >> Thanks for that information about web components. I thought it was >>still >> a popular trend. Here's my latest thoughts based on your feedback. >> Everything in this reply is top-poste

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-27 Thread OmPrakash Muppirala
> > I've create a code path to FlexJS that does this and I've adapted the > TexButton component and SVG to make use of this code path. > > Please take a look and let me know what you think. > > EdB > > > Just tested this. Works perfectly fine now. Thanks for quickly addressing this! Regards, Om

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-27 Thread OmPrakash Muppirala
On Thu, Feb 27, 2014 at 8:50 AM, Alex Harui wrote: > Thanks for that information about web components. I thought it was still > a popular trend. Here's my latest thoughts based on your feedback. > Everything in this reply is top-posted so you don't have to go dig through > the prior posts. > >

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-27 Thread Alex Harui
On 2/27/14 2:13 AM, "Carlos Rovira" wrote: >Hi Alex, > >I think spark was a huge step in Flex, and it was copied by other >technologies (I think JavaFx has the SkinPart element and other things >like >that thanks to Flex 4 Spark arquitecture). >But as you said there's some draw backs. Here's my

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-27 Thread Alex Harui
Thanks for that information about web components. I thought it was still a popular trend. Here's my latest thoughts based on your feedback. Everything in this reply is top-posted so you don't have to go dig through the prior posts. 1) I don't think using background-image is limited to built-in H

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-27 Thread Erik de Bruin
> > Just curious, how to other apps using GCC include their assets? > GCC is 'just' to compile and optimise one or more JavaScript files into one. Publishing it and the assets it requires is done either manually (through an FTP client or whatever) or via tools such as an dedicated IDE. > I sugges

AW: [FlexJS] SVG based TextButton and example checked in

2014-02-27 Thread Christofer Dutz
ing I am currently missing with any other Framework I have to deal with. Chris Von: [email protected] im Auftrag von Carlos Rovira Gesendet: Donnerstag, 27. Februar 2014 11:13 An: [email protected] Betreff: Re: [FlexJS] SVG based TextButto

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-27 Thread Carlos Rovira
Hi Alex, I think spark was a huge step in Flex, and it was copied by other technologies (I think JavaFx has the SkinPart element and other things like that thanks to Flex 4 Spark arquitecture). But as you said there's some draw backs. Here's my list pros and cons in Spark Skin arquitecture: PROS:

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-27 Thread OmPrakash Muppirala
On Wed, Feb 26, 2014 at 7:44 PM, Alex Harui wrote: > > > On 2/26/14 4:03 PM, "OmPrakash Muppirala" wrote: > > >On Wed, Feb 26, 2014 at 9:57 AM, Alex Harui wrote: > > > >> Sorry, wasn't clear. > >> > >> Thanks for reminding me that FXG is a class linked into the SWF and > >> referenced as a clas

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread Alex Harui
On 2/26/14 4:03 PM, "OmPrakash Muppirala" wrote: >On Wed, Feb 26, 2014 at 9:57 AM, Alex Harui wrote: > >> Sorry, wasn't clear. >> >> Thanks for reminding me that FXG is a class linked into the SWF and >> referenced as a class by the AS code. On the JS side, do we want that >>FXG >> class to b

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread Alex Harui
On 2/26/14 4:59 PM, "Carlos Rovira" wrote: >So it seems we need to wire up a similar functionality to spark >SkinnableComponent to get parts of a component or view (AS3 class) >match thinks in a skin (SVG, and eventually MXML in flash side), isn't it? > >We need [SkinPart] metadata, right? IMO,

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread Carlos Rovira
So it seems we need to wire up a similar functionality to spark SkinnableComponent to get parts of a component or view (AS3 class) match thinks in a skin (SVG, and eventually MXML in flash side), isn't it? We need [SkinPart] metadata, right? 2014-02-27 1:03 GMT+01:00 OmPrakash Muppirala : > On

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread OmPrakash Muppirala
On Wed, Feb 26, 2014 at 9:57 AM, Alex Harui wrote: > Sorry, wasn't clear. > > Thanks for reminding me that FXG is a class linked into the SWF and > referenced as a class by the AS code. On the JS side, do we want that FXG > class to be a "class" (its own JS file that loads or has SVG data in it)

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread OmPrakash Muppirala
On Wed, Feb 26, 2014 at 2:52 AM, Erik de Bruin wrote: > > > > > 1. I can add a file copy pass to the publish operation of the compiler > > > easily enough, but we need to discuss the best option: > > > - copy all 'non-JS and non-CSS' files, whether or not they are > actually > > > used > > >

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread Alex Harui
Sorry, wasn't clear. Thanks for reminding me that FXG is a class linked into the SWF and referenced as a class by the AS code. On the JS side, do we want that FXG class to be a "class" (its own JS file that loads or has SVG data in it)? Or is more "conversion" needed. On the JS side, is there is

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread Carlos Rovira
Hi Om, very cool! I build the example and button looks pretty now! :) As you, Alex and Erik are looking for some internals, could I help making other SVG for other component in the meanwhile? (i.e: CheckBox, RadioButton,...) Could you share more info about the methodology behind the SVG internal

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread Erik de Bruin
> > > 1. I can add a file copy pass to the publish operation of the compiler > > easily enough, but we need to discuss the best option: > > - copy all 'non-JS and non-CSS' files, whether or not they are actually > > used > > - copy only the files that belong to classes that are actually used >

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread OmPrakash Muppirala
On Wed, Feb 26, 2014 at 12:48 AM, Alex Harui wrote: > > > On 2/26/14 12:42 AM, "OmPrakash Muppirala" wrote: > > >>3. Falcon should be able to compile FXG now, but I think it will use > >>Spark > >> components like Group. The compiler either needs to output different > >> primitives or we need t

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread OmPrakash Muppirala
On Wed, Feb 26, 2014 at 12:32 AM, Erik de Bruin wrote: > 1. I can add a file copy pass to the publish operation of the compiler > easily enough, but we need to discuss the best option: > - copy all 'non-JS and non-CSS' files, whether or not they are actually > used > - copy only the files tha

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread Alex Harui
On 2/26/14 12:42 AM, "OmPrakash Muppirala" wrote: >>3. Falcon should be able to compile FXG now, but I think it will use >>Spark >> components like Group. The compiler either needs to output different >> primitives or we need to fake up lighter weight Spark components. I'd >> strongly prefer

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread OmPrakash Muppirala
On Tue, Feb 25, 2014 at 11:17 PM, Alex Harui wrote: > Very nice! > > 1. I think you need an > frameworks\as\src\org\apache\flex\svg\staticControls\TextButton.as > And use it in the example's MXML file. Falcon should use the .as in the > SWF. Then FalconJX should pull in the .js version. > > I wa

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread Alex Harui
Sorry, I may have misread question #1. I think Erik understood. Regarding the options, shouldn't there be a goog.require for the svg file? Maybe from the CSS or however the source for the skin was specified? -Alex On 2/26/14 12:32 AM, "Erik de Bruin" wrote: >1. I can add a file copy pass to

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-26 Thread Erik de Bruin
1. I can add a file copy pass to the publish operation of the compiler easily enough, but we need to discuss the best option: - copy all 'non-JS and non-CSS' files, whether or not they are actually used - copy only the files that belong to classes that are actually used (would require strict na

Re: [FlexJS] SVG based TextButton and example checked in

2014-02-25 Thread Alex Harui
Very nice! 1. I think you need an frameworks\as\src\org\apache\flex\svg\staticControls\TextButton.as And use it in the example's MXML file. Falcon should use the .as in the SWF. Then FalconJX should pull in the .js version. 2. There is an EventDispatcher class for events. It currently mixes in

[FlexJS] SVG based TextButton and example checked in

2014-02-25 Thread OmPrakash Muppirala
I just checked an updated version of the SVG/JS based TextButton component. A lot of things work as I expected. The skin looks exactly like the Spark button skin, the button is positioned and sized correctly, etc. They work with Firefox,Chrome and IE10. A few outstanding issues are there that I