Can 2 requests result in 1 response?

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

Linck5
Posts: 14
Joined: 24 Jul 2014, 20:23

Can 2 requests result in 1 response?

Postby Linck5 » 26 Nov 2014, 18:11

When I'm setting my user variables I'm also setting an additional user variable that I'm calling "reason", which is the reason why I'm updating the variables, so in the onUserVarsUpdate method I can apply the correct logic based on the reason. I'm worried about sending two requests with different reasons, and getting only one onUserVarsUpdate, that will give me only the last reason. Is that possible? Is my approach correct? If not, what approach would be better?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Can 2 requests result in 1 response?

Postby Lapo » 27 Nov 2014, 15:07

Hi,
no, it is not possible. Two requests will generate two responses.
Lapo
--
gotoAndPlay()
...addicted to flash games
Linck5
Posts: 14
Joined: 24 Jul 2014, 20:23

Re: Can 2 requests result in 1 response?

Postby Linck5 » 27 Nov 2014, 15:52

Oh that's good. Thank you!

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 14 guests