flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS] SVG based TextButton and example checked in
Date Wed, 26 Feb 2014 07:17:51 GMT
Very nice!

1. I think you need an
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
goog events.  You can probably mix it in where you need it.

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 the first option.


On 2/25/14 5:05 PM, "OmPrakash Muppirala" <bigosmallm@gmail.com> wrote:

>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
>there that I would like to get some info/suggestions on:
>1.  When I compile the app using FlexJS build, the directory with the SVG
>skins do not get copied over into the bin/js-* directory.  For example, in
>the SDK, the SVG files are here:
>How do I force the compiler to copy the skins directory as well to the
>output directories?
>Note, that when I copy them over manually after the build is done,
>everything works fine.
>2.  I have built a primitive event passing mechanism with my SVG skins.  I
>would like some suggestions on how to wire it up with FlexJS's event
>Where is the code that attaches event handlers to buttons?  Any chance I
>can get a handle to this event handler function inside TextButton.js?  I
>need this because I want to inject it as into the SVG skin.
>Background:  When using an SVG in an embed directive, the SVG document
>all the mouse events.  So, I am passing event handlers into the SVG
>document (from the parent) which can then be called from within the
>document itself.
>3.  Now that we have JS side looking like a (spark) Flex button, perhaps
>can make the AS side look the same?  Any ideas of adding FXG support to
>AS side?  What would be the best way to approach this?

View raw message