http://www.google.com/search?q=alex+harui+blog
-----Original Message----- From: tchredeemed <[EMAIL PROTECTED]> Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: question about AMF Date: Fri, 22 Aug 2008 17:57:47 -0000 Where is your blog at? --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Shared code problem. See modules presentation on my blog for more > details. > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of tchredeemed > Sent: Friday, August 22, 2008 9:47 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] question about AMF > > > > I have a VO called DataVO. > > I have two modules that call an AMF service, which returns an array of > VO's. > > Every once in a while, I get the error: > TypeError: Error #1034: Type Coercion failed: cannot convert > com.gh.vo::[EMAIL PROTECTED] to com.gh.vo.DataVO. > > However, I can only get the compiler to throw this error in 1 situation: > > I start the app, load Module 2, than Module 1, than go back to Module > 2. After I arrive back at Module 2, it throws the error on the > resultHandler of the RemoveObject service, in code that looks like this: > > private function resultHandler( event:ResultEvent ):void { > var hash:Array = new Array(); > for each( var data:DataVO in event.result ){ > hash.push(data); > } > dataAC = new ArrayCollection( hash ); > } > > It breaks on the for each() line. > Any ideas? >