I believe if you make something [Bindable] you can’t do an assignment on the same line.  You’ll need to assign the initial value to the items collection in an initialize handler.

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of quasimotoca
Sent: Wednesday, October 18, 2006 1:55 PM
To: [email protected]
Subject: [flexcoders] [Bindable] Compile error: 1046

 

Hi:
I run the following code snippet:

import mx.collections.ArrayCollection;

.......
<mx:List x="35" y="97" width="355" height="316" id="listChat"
dataProvider="{items}">
<mx:itemRenderer>
<mx:Component>
<mx:Canvas>
<cmp:ChatLine id="complete" x="0"
y="0"></cmp:ChatLine>
</mx:Canvas>
</mx:Component>
</mx:itemRenderer>
</mx:List>
.......

Further on I declare:

[Bindable]
public var items:ArrayCollection = new ArrayCollection()

I get the following error:
-> 1046: Type was not found or was not a compile-time constant:

I'm importing -> import mx.collections.ArrayCollection;
I'm using a custom component named: cmp

I remove [Bindable] and everything works OK but I get the following
warning:
-> Data binding will not be able to detect assignments to "items".

Any help/pointers greatly appreciated.

Cheers,
Dave Cook

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to