I'm not sure what you mean by modules vs SWFLoader - I'm pretty new to Flex. I tried to strip out the pertinent parts of my app to make a simple example - if you call 4 actionscript classes and an mxml simple }:-). I don't get the problem in my simple test, but I still can't sort correctly.
Perhaps I'm going about my design all wrong. I have a series of related data objects. For example Roles have Applications, and UserRoles have Roles. I want to show all my UserRole mappings in a data grid, and I want to display the Role's code and the Application's code as well. I can't seem to get at the parent object's properties in a dataGridColumn's dataField property, which lead me to item renderers that could, but that left my columns unsortable. Next I tried using the headerRelease event to sort my ArrayCollection, but I can't seem to be able to specify parent object attributes there either. I never got bindable get/set methods to work properly, and even if I could, I don't really want to add pass-thru get/set methods to my base object becase all my ActionScript data objects are generated from the original Java classes on the server side. I'm also trying to avoid using a sortCompareFunction in the column, because that would lead to a Lot of exteraneous little functions, with little reusability between screens. Is there a better way to do this? Thanks in advance, Steve Steve --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Are you using modules or SWFLoader or loading other swfs somehow? How > is model defined? Can you whittle this down to a small test case? > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of lrdvadersith > Sent: Thursday, October 25, 2007 12:39 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: VerifyError: Error #1025: An invalid register > 5 was accessed. > > > > I think I answered the wrong question before. > > I have a function called sortFunctions defined in the model, with the > signature given in the original post. > > Steve > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" <aharui@> wrote: > > > > Is sortFunctions defined on model or on the app? > > > > > > > > ________________________________ > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of lrdvadersith > > Sent: Thursday, October 25, 2007 11:50 AM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] VerifyError: Error #1025: An invalid register 5 > > was accessed. > > > > > > > > Does anyone know what this error is? I get it in both Flex 2.01 > > hotfix 3 and Flex 3 beta 2. > > > > Some background: > > > > I think the problem is with the following lines: > > > > in my mxml, I have a headerRelease="model.sortFunctions(event);" in my > > dataGrid, and in my ActionScript, I have a public function > > sortFunctions(event:DataGridEvent):void function. > > > > I believe the error has something to do with this, because when I > > remove the headerRelease, the error goes away. > > > > Any ideas? > > > > Thanks, > > > > Steve > > >