Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-05-2010, 03:51 PM   #1
zivaxoo
Registered User
 
Join Date: Nov 2010
Posts: 3
Default amfphp multiples calls

hi,

I''ve a problem with amfphp :

impossible to call two methods of a service in the same time. the second wait for the second is finished before execute


this is when:

- application is launch in browser
- if I launch application in 2 differents browser's windows, same case.


but this works when:

- I launch application in 2 differents browsers (ex: Internet explorer and Firefox).
- I launch in local, directly the swf twice.

I've read on a forum, that browsers don't allow multiples calls (rigth, wrong?)

to resume, it seems only one call is possible for each instance of flash player.

have I forget anything in configuration?

anyone could help me, please ?

happy clicks
zivaxoo is offline   Reply With Quote
Old 11-05-2010, 04:22 PM   #2
snowedin
Senior Member
 
Join Date: Apr 2002
Location: Yellowknife
Posts: 136
Default

Are you using different Responders for each call?
snowedin is offline   Reply With Quote
Old 11-05-2010, 04:28 PM   #3
zivaxoo
Registered User
 
Join Date: Nov 2010
Posts: 3
Default

yes, I create a new class each time with his own responder, netconnection,...

and the problem is the same if I open the app in two differents windows of a same bowser (so 2 independants instances of the same swf)
zivaxoo is offline   Reply With Quote
Old 11-05-2010, 04:37 PM   #4
snowedin
Senior Member
 
Join Date: Apr 2002
Location: Yellowknife
Posts: 136
Default

What kind of response messages are you getting?

You shouldn't need multiple netconnections - I think.

Maybe this will help?
http://www.herrodius.com/blog/2
snowedin is offline   Reply With Quote
Old 11-05-2010, 04:59 PM   #5
zivaxoo
Registered User
 
Join Date: Nov 2010
Posts: 3
Default

thank for your time,

no error message, methods work well, juste the second wait the first is finished. methods seems go to a queue. the boths return the result i want.

I juste tried the solution in your link, but this give me an error : NetStatusEvent non pris en charge : level=error, code=NetConnection.Call.BadVersion

genrally, this error can result from a syntax error in php, but all seems ok, i juste add the line:
$gateway->setBaseClassPath(realpath("services/") . "/");

I think too i don't need multiple netconnections, but i don't think the problem come from here.
zivaxoo is offline   Reply With Quote
Old 11-27-2010, 09:08 PM   #6
JeremyHoss
Registered User
 
Join Date: Feb 2010
Posts: 31
Default

I know it's a bit late, but when I'm debugging ZendAMF myself, sometimes I'm not sure exactly where the error is and so it's always a great idea to find the apache error log file on your server(assuming your running linux/apache) and tail it. I'm running Ubuntu so at the CLI, I tail -f, like so,

Code:
tail -f  /var/log/apache2/error.log
JeremyHoss is offline   Reply With Quote
Old 07-25-2012, 10:47 PM   #7
liandreap
Registered User
 
Join Date: Jul 2012
Posts: 1
Default I have the same problem

Have you found the solution?
liandreap is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:28 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.