Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: May I send two Notifications same time?  (Read 2901 times)
marks416
Sr. Member
****
Posts: 52


View Profile Email
« 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

Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
Pages: [1]
Print