On Thu, Jun 6, 2013 at 1:33 AM, Alex Harui <aha...@adobe.com> wrote:

>
> >
> >I like these:
> >
> >currentState.mouse = "up";
> >
> >currentState = "up-focused-nonDefault";
> >
> >They look like something that can be done. In this case, maybe separate
> >with spaces to promote a more CSS type of syntax? This might be simplest
> >to
> >support since it could apply properties in a last declared wins situation.
> I'm not sure I understood this section.
>
>
I was describing a situation where if we have multiple states and you
assign more than one state to the current state property and one state
property assignment collides with another then the last one assigned wins.
Its the same as CSS.

For example,
<State name="blue"/>
<State name="red"/>
<State name="emphasized"/>
<State name="focused"/>

<Label color.blue="blue" color.red="red" color.emphasized="green"/>

and

currentState = "blue emphasized";

then the label color would be green because blue and emphasized states both
define a color. There wouldn't be any error thrown.





> >
> >It might also be easier to solve if CSS in Flex supported defining
> >properties such as size and position?
> FlexJS will support the CSS properties left, right, top, bottom.
> >
> >Another concrete example to think about is the toggle button. It doubles
> >the amount of states as Button just with toggled vs normal.
> I used to use ToggleButton as an example, but it doesn't have an
> emphasized state and then I think the total number of states is the same.
>
> >Right now with mobile development we have a solution for fixed size in
> >either portrait and landscape states and set the applicationDPI. We also
> >solve this with constraints and percentage based values.
> >
> >Can we or should we support responsive design can with states?
> A long-ish term goal for FlexJS is to support W3C CSS.  That's because the
> browsers do already, and it is better to join them vs try to change their
> behavior.  The hard part is just emulating it in Flash/Actionscript.  And
> that includes a list of classNames and more media query parameters.
>

Reply via email to