On 9/3/13 4:55 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote:
>On Tue, Sep 3, 2013 at 4:38 PM, Alex Harui <aha...@adobe.com> wrote: > >> Good question. I added a FalconJX and FlexJS component to JIRA. Please >> submit patches there. There is already a Falcon component. >> >> In theory, if you have problems compiling a SWF that FB/MXMLC compiled, >> then file the bug against Falcon. If Falcon compiled the SWF but you >>get >> an error creating the JS version, file the bug against FalconJX, and if >> there is a bug in the AS or JS code, file the bug against FlexJS. >> >> The styling implementation on JS is not yet complete, so you can't use >> non-standard CSS styles in JS right now. But the goal is to support the >> appropriate CSS styles in the SWF since those styles should "just work" >>in >> the browser. >> >> In-line styles (like <basic:Foo color="red" />) isn't supported yet >> either. I'm on the fence about whether to keep adding styles/properties >> or just use HTML's styles object (like <basic:Foo style="color:red" />). >> Some properties like "width" also support being set in CSS. Opinions >> welcome. >> > >It would be nice if we retained the current Flex way of inlining >styles/properties, please. I assume your main reason is compatibility? That's definitely a strong argument, but here's the counter-argument: IMO, a pain point in Flex was that styles had to be specified on the component when the style implementation was actually in the skin/theme. The skinning model is different in FlexJS anyway so I think that gives us license to change the styling model as well. If you ever set a style on a Flex component that wasn't in your custom theme, or tried to add a new style to a skin/theme that wasn't declared on the component, then you know what pain I'm talking about. With FlexJS, some new browser might come up with a new custom CSS property and you won't be able to set it in MXML without us rev-ing the entire SDK. Yes, you should be able to set it in the .CSS file, but just not in-line. Thoughts? -Alex