sandfire1on1
December 21st, 2009, 03:14 PM
Hello everyone. I'm working on a client's project and trying to use AMFPHP with AS3 (fp 10) and I guess I'm having trouble connecting... or at least that's the impression I'm given. What actually happens is that when you click the connect button, the program connects using the uri and then runs some gateway calls. On my local machine this all works perfect, and on previous projects with another client its worked perfect. This time around though, when I click the button nothing happens. If you click it again, a status "netstatus closed" shows up. I've set up the project here on my site to better understand AMFPHP before I ship it off to him: http://www.sandfire1on1.com/userSystem/userSystem_091220.swf
There is error handling in the scripting (That I've tested and I know works) to handle all the types of errors (IOError, ASyncError, NetStatus, and SecurityError) that there are, so its none of those. Since its none of those errors, that also implies that I am using the right URI and that the crossdomain.xml is set up correctly. I have a dialog that tells you the properties of the connection as the script is running, and it updates once every 1000ms. I've tried AMF0 and AMF3 encoding. I've even tried looking around in the debugger by putting a break in there so I can see if there's any error behind the scenes, but there isn't anything to look at.
Something I find incredibly confusing: I had a function that I called using AMFPHP called "isConnected" that returns TRUE or FALSE and it gave me results, even though it was not logging in or loading the tasks or responding to the button presses. This I think is incredibly weird behavior, and I think it has a lot to do with figuring out the problem here..
Can someone lend a helping hand? We've been scouring Google for the last couple days, hours at a time, looking for answers but we haven't found anything that works! Thanks in advance for the consideration!
~~MORE INFO~~~~~~~
As I stated, the project works in xampp on my local machine. The first area at the top of the window stating "no problems" will change if there is one of the 4 netconnection errors. The second stating "havent logged in" should change to say "logged in as root." if it is able. The third area, if the project logs in properly, will say "loaded tasks successfully." The button clicks part is a way to test if the swf is working; when you are logged in and the tasks have been loaded, you are able to click the button and the number of clicks is saved in a database. This all works dandy on my local machine. In addition, if I type in the uri to the local gateway.php file, this application will use that one instead and everything works A.O.K. so... I'm quite stunned.
There is error handling in the scripting (That I've tested and I know works) to handle all the types of errors (IOError, ASyncError, NetStatus, and SecurityError) that there are, so its none of those. Since its none of those errors, that also implies that I am using the right URI and that the crossdomain.xml is set up correctly. I have a dialog that tells you the properties of the connection as the script is running, and it updates once every 1000ms. I've tried AMF0 and AMF3 encoding. I've even tried looking around in the debugger by putting a break in there so I can see if there's any error behind the scenes, but there isn't anything to look at.
Something I find incredibly confusing: I had a function that I called using AMFPHP called "isConnected" that returns TRUE or FALSE and it gave me results, even though it was not logging in or loading the tasks or responding to the button presses. This I think is incredibly weird behavior, and I think it has a lot to do with figuring out the problem here..
Can someone lend a helping hand? We've been scouring Google for the last couple days, hours at a time, looking for answers but we haven't found anything that works! Thanks in advance for the consideration!
~~MORE INFO~~~~~~~
As I stated, the project works in xampp on my local machine. The first area at the top of the window stating "no problems" will change if there is one of the 4 netconnection errors. The second stating "havent logged in" should change to say "logged in as root." if it is able. The third area, if the project logs in properly, will say "loaded tasks successfully." The button clicks part is a way to test if the swf is working; when you are logged in and the tasks have been loaded, you are able to click the button and the number of clicks is saved in a database. This all works dandy on my local machine. In addition, if I type in the uri to the local gateway.php file, this application will use that one instead and everything works A.O.K. so... I'm quite stunned.