| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Dec 2002
Posts: 6
|
Hello,
I am using Flach Communication Server MX to create a video chat application in flash. THe problem is, I need to call a php script that updates a database saying that the user logged out of the room. Is there any way in my client-side application that I can make a call to a php script when the user 1) leaves the page or 2) closes the browser. I guess my real question would be is there any way to automatically detect that the flash application has been closed inside my client-side script? Thanks, BlueWave |
|
|
|
|
|
#2 |
|
Registered User
|
Yooh dude...
I think this thing you wanna do won't use any flash comm server feature. If you want to use php to send messages through a flash, you can do it by loadVariables command. I don't have any tutorial to point you in that way, but this command would solve your problem by openning your php as your client connects to the server. I think this might work: ActionScript Code:
php whenever it connects to the server. well... I never used php, but loadvariables works fine with asp codes. I hope that helps. Zerooito |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|