>It is a lot of work to retrofit the current SDK, because you can't convert to 
>a number at compile time.  If your units are inches or ems, you have to 
>convert it at runtime.
Agree that it has to be done at runtime.

>But yes, FlexJS will try to support that, at least for the text styles.
Out of curiosity, can you share how you intend to do that, in broad lines ?

Maurice

-----Message d'origine-----
De : Alex Harui [mailto:aha...@adobe.com] 
Envoyé : vendredi 20 décembre 2013 15:48
À : dev@flex.apache.org
Objet : Re: Managing units in CSS

It is a lot of work to retrofit the current SDK, because you can't convert to a 
number at compile time.  If your units are inches or ems, you have to convert 
it at runtime.

But yes, FlexJS will try to support that, at least for the text styles.

-Alex

On 12/20/13 4:00 AM, "Maurice Amsellem" <maurice.amsel...@systar.com>
wrote:

>The idea would be that it gives the same result on both JS and Flash.
>
>I don't have an expert knowledge on how styles are currently managed in 
>Flex, but it seems to me that the whole parsing / assignment is done 
>either by the compiler or In Flex SDK code.
>FlashPlayer only sees actual pixel values.
>So of course we would have to change the SDK (and maybe the compiler as 
>well ? ) so that "unit" values are turned into actual pixels.
>
>WDYT?
>
>Maurice
>
>-----Message d'origine-----
>De : Tom Chiverton [mailto:t...@extravision.com] Envoyé : vendredi 20 
>décembre 2013 12:54 À : dev@flex.apache.org Objet : Re: Managing units 
>in CSS
>
>On 20/12/2013 11:50, Maurice Amsellem wrote:
>> What do you think?
>I think it's an issue, because you could write Flex code that can't be 
>made into a .SWF when the whole point is both run times are equal ?
>
>Tom

Reply via email to