binding to execute, but including static variables in a binding
shouldn't cause compilation errors.
Considering the fact that the compiler fails to identify the line
that contains the error, and the fact that the error messages make no
sense in that context, lead me to the conclusion this must be a
compiler bug.
--- In [email protected], "jeremy lu" <[EMAIL PROTECTED]> wrote:
>
> ran into this problem last month, turned out f2b3 doesn't support
bindings
> to static variables or methods.
>
> I have double checked this with adobe engineer and the answer is :
this
> feature won't be supported.
>
> the work around here is using getter/setter.
>
> On 5/30/06, n51red <[EMAIL PROTECTED]> wrote:
> >
> > I have come accross a problem in which certain data bindings
invoving
> > static varaibles produce bizarre compilation errors.
> > All the bindings that have caused problems have taken a form
similar
> > to this:
> >
> > booleanVariable="{myInstance.variable==MyClass.staticVariable}"
> >
> > Each instance of the problem arising produces a pair of errors as
> > follows:
> >
> > Expecting semicolon before colon.
> > Expecting rightparen before colon.
> >
> > Furthermore, Flex Builder fails to pin point the file in which the
> > errors occur and gives none sensical line numbers.
> >
> > I have got around the problem by including this:
> >
> > <mx:Script>
> > ...
> > [Bindable]private var
localVariable:String=MyClass.staticVariable;
> > ...
> > </mx:Script>
> >
> > and binding as follows:
> >
> > booleanVariable="{myInstance.variable==localVariable}"
> >
> > Is this a known problem, or has anyone else encountered it?
> >
> > N
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

