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





------------------------ Yahoo! Groups Sponsor --------------------~-->
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/






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




Reply via email to