PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: marks416 on October 23, 2008, 07:03:23



Title: May I send two Notifications same time?
Post by: marks416 on October 23, 2008, 07:03:23
I have a question for puremvc.

I have two notifications and they work fine if I send second after first finished.

Both notifications need use proxies to communicate with database.

But I get "object null" error if I send both notifications in same function.

I do not know why this happen.Please help me.

Thanks

Mark



Title: Re: May I send two Notifications same time?
Post by: puremvc on October 23, 2008, 07:19:09
Sounds like you are performing an asynchronous operation in the first command and expecting it to have completed by the time you send the next notification. You need to break up your process. Send the first notification, presumably triggering a command that asks a proxy to go get data. Then the Proxy recieves the result, have it send the next notification and processing continues in another command.

-=Cliff>