|
Home > Archive > Macromedia Flash Server > June 2005 > Deleting streams on disconnect...help, please!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Deleting streams on disconnect...help, please!
|
|
| Dennie Hoopingarner 2005-06-23, 5:49 pm |
| I want my app to automatically delete all the recordings that a user
has created when the user disconnects from the server. I tag the
users' recordings by IP address. My code looks like this:
// ActionScript Communications Document
application.onAppStart = function(){
trace("::: Application has started :::");
}
application.onConnect = function(clientObj){
application.acceptConnection(clientObj);
trace("somebody connected!");
clientObj.call("showIP", null, clientObj.ip);
}
application.onDisconnect = function(client){
trace("user disconnected from "+client.ip);
application.clearStreams(client.ip+"*");
}
No matter how I tweak the code, the streams do not get deleted. Can
anyone shed some light on this problem?
Thanks!
Dennie
Dennie Hoopingarner, Ph.D.
Director, Language Learning Center
Michigan State University
http://llc.msu.edu
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
| |
| Jim Duber 2005-06-23, 5:49 pm |
| Hi Dennie,
In your onDisconnect function, have you already tried adding a slash
before the wildcard? Like so:
application.clearStreams(client.ip+"/*");
This should delete recordings from a stream directory named as your
user's 'client.ip' within your app directory.
Hope that helps!
Jim
On Jun 23, 2005, at 9:59 AM, Dennie Hoopingarner wrote:
> I want my app to automatically delete all the recordings that a user
> has created when the user disconnects from the server. I tag the
> users' recordings by IP address. My code looks like this:
>
> // ActionScript Communications Document
> application.onAppStart = function(){
> trace("::: Application has started :::");
> }
> application.onConnect = function(clientObj){
> application.acceptConnection(clientObj);
> trace("somebody connected!");
> clientObj.call("showIP", null, clientObj.ip);
> }
> application.onDisconnect = function(client){
> trace("user disconnected from "+client.ip);
> application.clearStreams(client.ip+"*");
> }
>
>
>
> No matter how I tweak the code, the streams do not get deleted. Can
> anyone shed some light on this problem?
>
> Thanks!
>
> Dennie
>
>
>
>
> Dennie Hoopingarner, Ph.D.
> Director, Language Learning Center
> Michigan State University
> http://llc.msu.edu
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
|
|
|
|
|