On 6/5/13 9:00 PM, "flexcapaci...@gmail.com" <flexcapaci...@gmail.com>
wrote:
Thanks for this input as well.

>
>
>Alex, what would currentState look like as a organizing property?
It would look like it does now.  By "organizing property" I mean a
property that you assign semantics to to change the UI.  Other properties
like isFocused and visible have well-defined semantics.

>What does
>conditional expressions look like?
Probably like binding expressions.  Or maybe they will be binding
expressions.
>
>And what are you doing here with isFocused,
>
>  <s:Rect id="focusBorder" includeIn="{isFocused}"
>            left="{emphasized ? -1 : -2}" />
>
>I didn't know you could use bindings in an includeIn or is that a typo?
You can't today.  I'm just imagining a world where any property can define
whether things are included/excluded or have a different value.
>
>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.

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

Will that help?
-Alex

Reply via email to