Sorry i'm sleep is my mistake.. i have correct it dgResponsabili.selectedIndex = responsabili.getItemIndex(responsabile); Sorry again Devis
--- In flexcoders@yahoogroups.com, "devisbalsemin" <[EMAIL PROTECTED]> wrote: > > Hi if you look my code, > if i remove update Function all work, i have made a mistake into my > ActionScript class or is it bug? > Thanks for your help devis > > > > Here throw > TypeError: Error #1034: Assegnazione di tipo forzata non riuscita: > impossibile convertire mx.collections::[EMAIL PROTECTED] in > mx.data.IManaged. > > > ... > private var dsResponsabili:DataService; > [Bindable] > private var responsabili:ArrayCollection = new ArrayCollection(); > > .... > > > > > private function Update():void > { > .... > dgResponsabili.selectedIndex = > responsabili.getItemIndex(responsabili); > .... > } > > > This my object > package com.visitatori.vo > { > import mx.utils.ArrayUtil; > import mx.collections.ArrayCollection; > > [Managed] > [RemoteClass(alias="com.visitatori.vo.Trsp001")] > > > public class Trsp001 > { > public function Trsp001() {} > public var rsppkid:int; > public var rspcgn:String=""; > public var rspnme:String=""; > public var rspsct:String=""; > public var trpr001:Trpr001; > > > } > } > -- 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/