Actually, I stand corrected.

Each call is sent from a different Command object, the results are all
passed back to the same instance however.

The delegate call looks like this:

var call : Object = new Object( );
call = _service.Execute( "Shopping." + obj.type + methods[ obj.saveType ],
meta, param );
call.addResponder( _command );

this calls an renaun:RemoteObjectAMF0 service so perhaps the problems lies
there?

Thanks

Giles

On Oct 31, 2007 2:58 PM, Giles Roadnight <[EMAIL PROTECTED]> wrote:

>   Hi All
>
> I'm quite new to sequence commands but they are used extensively at my
> new job.
>
> At the moment I am trying to save a large number of items. I am using
> a sequenceCommand to do this although in this case it is not being
> used as part of a sequence.
>
> In the command I have a private variable that holds the ID of the item
> that is being saved. When the save is complete an event is dispatched
> with the ID in so that I can keep track of which items have been
> saved. This all happens in parallel.
>
> The problem is that all of the saved Events come back with the ID of
> the last item that was saved. All of these events seem to be using the
> same instance of the command to save so the id is overwritten each time.
>
> Is this a feature of the sequence command? Will I have to make a
> non-sequence copy of this command?
>
> Thanks
>
> Giles
>
>  
>



-- 
Giles Roadnight
http://giles.roadnight.name

Reply via email to