flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: SVG button with skin states and JS
Date Thu, 11 Apr 2013 04:10:56 GMT

On 4/10/13 4:43 PM, "OmPrakash Muppirala" <bigosmallm@gmail.com> wrote:

> Sounds good.  What would really help me is, if you get a chance, please
> take a look at the two approaches:
I'm way backlogged trying to get FalconJX caught up with FalconJS and then
fixing the release.  However:
> 1.  Using separate skin files and CSS pseudo selectors to switch states:
> http://people.apache.org/~bigosmallm/fxg2svg/buttonskin/flexVhtml5.html
Don't worry about this one.  I have to implement CSS in the infrastructure
and this should just come (almost) for free.
> 2.  Using one skin file and JS to switch states:
> http://people.apache.org/~bigosmallm/fxg2svg/buttonskinjs/embedButtons.html
So, start hacking on this and see what happens.
> Let me know what parts makes sense and what needs re-thinking.
> For my next steps, I am thinking of creating a parallel set of html5
> controls here:
> flex-js/frameorks/js/FlexJS/src/org/apache/flex/html5/skinnedControls/<control
> >.js
> flex-js/frameorks/js/FlexJS/src/org/apache/flex/html5/skinnedControls/skins/<c
> ontrolSkin>.svg
> Does this make sense?
I would suggest a separate "top-level" like org.apache.flex.svg.
> Some basic questions:
> 1.  Are the controls under the staticControls hand coded, or are they
> generated?
Every JS file in FlexJS is hand coded.  Pretty much has to be since the AS
impl is going to use Flash APIs and the JS version is using DOM JS APIs.
Sometimes I think about writing the AS, shoveling it through FalconJS, then
gutting the methods and rewriting them.
> 2.  If they are generated, can you please point me to the how I can create
> a different set of staticControls.
You should be able to copy what Peter did in creating the html5 package from
the html package.  He's due to check in a Jquery-based package soon that
will serve as another example.
> Thanks,
> Om

Alex Harui
Flex SDK Team
Adobe Systems, Inc.

View raw message