You are passing a type into the ArrayCollection function, but it expects an array. I think you just need an empty initializer for the PRODUCT_SHEET ArrayCollection. (Flex doesn't support typed collections inherently)
--- In [email protected], "ajudah987" <[EMAIL PROTECTED]> wrote: > > I am defining a ValueObject that contains strings, numbers and an > ArrayCollection of another Value Object. That VO contains 3 strings. > > How do I do this in actionscript? > > Here is my attempt. Appreciate if anyone can point me in the right > direction. When i do the below it states that my ProductSheet is not > an array > > > package com.red.store.vo > { > import com.adobe.cairngorm.vo.IValueObject; > import com.red.store.util.Comparable; > import com.red.store.vo.ProductSheetVO; > import mx.collections.ArrayCollection; > > public class ProductBeanVO implements IValueObject, > Comparable > { > [Bindable] > public var PRODUCT_DESCRIPTIONS_ID: Number; > [Bindable] > public var PRODUCT_OWNER_ID: Number; > [Bindable] > public var STYLE_NUMBER: String; > [Bindable] > public var DESCRIPTIONS: String; > [Bindable] > public var PRODUCT_SHEET: ArrayCollection = new > ArrayCollection(ProductSheetVO); > } > } > Thanks for any assistance. >

