Цитата:
|
Создайте пустой класс mx.collections.ArrayCollection с теми же свойствами и методами, что есть у настоящей ArrayCollection
|
создаю (котаю с флекса) :

Код AS3:
package mx.collections
{
import flash.utils.IDataInput;
import flash.utils.IDataOutput;
import flash.utils.IExternalizable;
import mx.core.mx_internal;
use namespace mx_internal;
[DefaultProperty("source")]
[RemoteClass(alias="flex.messaging.io.ArrayCollection")]
public class ArrayCollection extends ListCollectionView implements IExternalizable
{
include "../core/Version.as";
public function ArrayCollection(source:Array = null)
{
super();
this.source = source;
}
[Inspectable(category="General", arrayType="Object")]
[Bindable("listChanged")] //superclass will fire this
public function get source():Array
{
if (list && (list is ArrayList))
{
return ArrayList(list).source;
}
return null;
}
public function set source(s:Array):void
{
list = new ArrayList(s);
}
public function readExternal(input:IDataInput):void
{
if (list is IExternalizable)
IExternalizable(list).readExternal(input);
else
source = input.readObject() as Array;
}
public function writeExternal(output:IDataOutput):void
{
if (list is IExternalizable)
IExternalizable(list).writeExternal(output);
else
output.writeObject(source);
}
}
}
1.

Код:
[DefaultProperty("source")]
[RemoteClass(alias="flex.messaging.io.ArrayCollection")]
эти мета теги вроде не поддерживаются флешом,
2.

Код:
ArrayCollection extends ListCollectionView
что делать с ListCollectionView он тоже не класс флеша;
В общем не совсем понятно, как его изменить ?
и еще такой вопрос, в флексовском компоненте "ComboBox" к "dataProvider" можно подключать обычный массив и апдеит работает, чем это отличается от моего компонента ?