Re: [flexcoders] Overhead of curly braces :)

2010-05-06 Thread Oleg Sivokon
Nope, it doesn't it will generate a binding expression even if you are
trying to bind a constant.
More tragic part of this is that in pure AS compiler doesn't inline
constants either, meaning it doesn't use the constant's value even if it is
a prime type.
http://www.actionscript.org/forums/showthread.php3?t=233985&page=2 (bottom
of the thread).
There has been a discussion about this issue in JIRA:
http://bugs.adobe.com/jira/browse/SDK-21649
But now I'm inclined to think that we should be asking for a better AS
compiler and MXML parser improvements should come next.


[flexcoders] Overhead of curly braces :)

2010-05-06 Thread Richard Rodseth
Something I've always wondered.

If I wish to use a constant, rather than a literal

eg



does the compiler know that this is not a bindable property, or does
it add unnessary listeners?