Alex - looks like the shared code modules worked. I had an error in the module, although Flex Builder did not display any errors, getting out, coming back in & doing a clean revealed the code problem. Now it looks like it works!! Thanks again for you help!!! Sorry for the multiple responses, but the thread was not being refreshed so I thought the replies were not getting logged - which is why so saw several of them.
Thanks!!! --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > The import doesn't actually cause anything to be linked in, it just > specifies the full path to whatever package StockVO is in, so you'll > need the import statement, but if you follow the recipe for modules, > you'll not link StockVO into your modules because it will be in some > other link-report, either the mainapps or the sharedcode module > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of donald_d_hook > Sent: Thursday, July 31, 2008 6:48 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: Type Cast Error > > > > So no need to have an import in the module? > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" <aharui@> wrote: > > > > There's an "Under the hood: Application Domain" slide in the > > presentation. It tries to show you that once you get StockVO in the > > main apps' AppDom, all modules will use that definition and won't use > or > > need their own in the module. > > > > > > > > ________________________________ > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of donald_d_hook > > Sent: Thursday, July 31, 2008 6:58 AM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] Re: Type Cast Error > > > > > > > > In order to use the StockVO object, I will have to have a definition > > of it in the module - in order to use it. I guess I am not sure if I > > will be right back where I started with the original problem. > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > , "Alex Harui" <aharui@> wrote: > > > > > > Essentially, the actuall classname isn't StockVO, it is > > > [EMAIL PROTECTED] If the portion > > > after the @ matches it is effectively stripped off so you can just > see > > > and use StockVO in most places > > > > > > > > > > > > So it doesn't really match. This will be extremely useful in Flex > 3.2 > > > when you can mix sub-application built with different versions of > > Flex, > > > but is a pain for module users like yourself. > > > > > > > > > > > > Of course, the easiest way to use StockVO in both modules is to get > it > > > linked into the main app. Most VOs are small so it won't matter. The > > > SharedCode Module pattern is for heavy things. > > > > > > > > > > > > ________________________________ > > > > > > From: flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > [mailto:flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > ] On > > > Behalf Of donald_d_hook > > > Sent: Wednesday, July 30, 2008 5:52 PM > > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > > Subject: [flexcoders] Re: Type Cast Error > > > > > > > > > > > > Alex - > > > > > > I looked at your presentation. I am using the StockVO in both pages > > > (both modules). I need to use it in both. If I define the class in > > > both places, what does it matter, its the same class? > > > > > > I saw where you mentioned having common code by loading a "Shared > > > Code" swf that would apply to ALL modules. I guess I can give that a > > > shot. > > > > > > Thanks again for your time! > > > > > > --- In flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > > <mailto:flexcoders%40yahoogroups.com> > > <mailto:flexcoders%40yahoogroups.com> > > > , "Alex Harui" <aharui@> wrote: > > > > > > > > It is picking up the class from a different application domain. > See > > > the > > > > modules presentation on my blog. > > > > > > > > > > > > > > > > ________________________________ > > > > > > > > From: flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > > <mailto:flexcoders%40yahoogroups.com> > > <mailto:flexcoders%40yahoogroups.com> > > > [mailto:flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > > <mailto:flexcoders%40yahoogroups.com> > > <mailto:flexcoders%40yahoogroups.com> > > > ] On > > > > Behalf Of donald_d_hook > > > > Sent: Wednesday, July 30, 2008 10:22 AM > > > > To: flexcoders@yahoogroups.com > <mailto:flexcoders%40yahoogroups.com> > <mailto:flexcoders%40yahoogroups.com> > > <mailto:flexcoders%40yahoogroups.com> > > > > Subject: [flexcoders] Type Cast Error > > > > > > > > > > > > > > > > I receive a type cast error when I try to cast an object I > received > > > > from the server (an arraycollection of value objects). I get the > > > > following: > > > > > > > > TypeError: Error #1034: Type Coercion failed: cannot convert > > > > com.spinnaker.model::[EMAIL PROTECTED] to > com.spinnaker.model.StockVO > > > > > > > > The actionscript object has the correct remoteClass. On top of > that, > > > > this only happens the 2nd time into the page. Not sure what is > > > > happening behind the scenes, nor do I know what the @3b392b81 is. > > > > > > > > Thanks in advance > > > > > > > > > >