On Tue, Feb 25, 2014 at 11:17 PM, Alex Harui <aha...@adobe.com> 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 was probably not clear.  I am including the svg TextButton.as class.  The
corresponding svg TextButton.js file gets pulled in.  What is missing is
the 'skins' directory.



> 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.
>

I think I understand.  Can we break this up into a very simple use case and
see which direction we want to go?  I may need a bit of hand holding on
this one.

Thanks,
Om


>
> -Alex
>
>
> On 2/25/14 5:05 PM, "OmPrakash Muppirala" <bigosma...@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
> >are
> >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:
> >-frameworks\js\FlexJS\src\org\apache\flex\svg\staticControls\TextButton.js
> >-frameworks\js\FlexJS\src\org\apache\flex\svg\staticControls\skins
> >--frameworks\js\FlexJS\src\org\apache\flex\svg\staticControls\skins\TextBu
> >ttonSkin.svg
> >
> >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
> >model.
> >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
> >eats
> >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
> >we
> >can make the AS side look the same?  Any ideas of adding FXG support to
> >the
> >AS side?  What would be the best way to approach this?
> >
> >Thanks,
> >Om
>
>

Reply via email to