It's all about architectural layering:

 

   Flex classes (mx.*)

   ------

   Flash class (flash.*)

   ------

   Core AS3 classes (int, String, Array, Date, etc.)

 

Databinding is triggered by an event getting dispatched. Events are a
Flash Player concept. ArrayCollection is a Flex class that knows how to
dispatch events. Array is a class of the core AS3 language, which
doesn't know how to dispatch events.

 

Gordon Smith

Adobe Flex SDK Team

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Friday, August 22, 2008 1:31 AM
To: [email protected]
Subject: RE: [flexcoders] Binding problem - not refreshing after
Array.push

 

I have the same issue, binding an array. Can you explain or point to any
link/resource/reference that explains why an arraycollection is needed
for binding instead array?

BTW, is there any other type not available to bind?

TIA

 

_____________________________________________

Claudio M. E. Bastos Iorio

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Kenneth Sutherland
Sent: Friday, August 22, 2008 5:17 AM
To: [email protected]
Subject: RE: [flexcoders] Binding problem - not refreshing after
Array.push

 

You need to be using an arraycollection for bindable data, not the array
class.

 

Kenneth.

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of piotrchruscielewski
Sent: 22 August 2008 09:07
To: [email protected]
Subject: [flexcoders] Binding problem - not refreshing after Array.push

 

Hi

I have some problems with data binding.

I make an array 
[Bindable]
var ar:Array 
and some DataGrid with datarovider=ar

When I will pass this array to some other class - which will push new 
object to it - my DataGrid doesn`t refresh.

So I need to take care of it manualy.

Is this normal or have I forgot about something ?

Regards

Piotr Chruscielewski



Disclaimer 

________________________________

This electronic message contains information which may be privileged and
confidential. The information is intended to be for the use of the
individual(s) or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited. If you have received
this electronic message in error, please notify us by telephone on 0131
476 6000 and delete the material from your computer.
Registered in Scotland number: SC 172507.
Registered office address: Quay House 142 Commercial Street Edinburgh
EH6 6LB.

This email message has been scanned for viruses by Mimecast.

________________________________

 

Reply via email to