Question
Help with unloading movie
So here's the situation.
I'm trying to create a flash movie that has a two buttons and a loader component.
One button will pull a video from one streaming source and load it using the loader, the other will pull from another streaming source and load it using the same loader.
When I click button 1 the stream loads up fine and in my FMS Admin console, I see the number of clients increase by 1. When I click button 2, the steam loads up and the total client increase again.
So basically, everytime I click the button, the number of clients increases even if I load the same stream over and over again. This will continue until I close the movie or the server limit is reached (I am currently using the development version of FMS).
My code is pretty simple.
It's as follows:
btn1.onPress = function() {
loader1.unload();
loader1.load("url1");
}
btn2.onPress = function() {
loader1.unload();
loader1.load("url2");
}
The issue here is that I can't get it to properly unload the movie so the connection with FMS remains. I've tried making button 1 load the streame and button 2 unload the stream, but no matter how much I press button 2, it would not unload and the stream will remain there running.
If anyone has any suggestions, it would be much appreciated.
Thanks.
I'm trying to create a flash movie that has a two buttons and a loader component.
One button will pull a video from one streaming source and load it using the loader, the other will pull from another streaming source and load it using the same loader.
When I click button 1 the stream loads up fine and in my FMS Admin console, I see the number of clients increase by 1. When I click button 2, the steam loads up and the total client increase again.
So basically, everytime I click the button, the number of clients increases even if I load the same stream over and over again. This will continue until I close the movie or the server limit is reached (I am currently using the development version of FMS).
My code is pretty simple.
It's as follows:
btn1.onPress = function() {
loader1.unload();
loader1.load("url1");
}
btn2.onPress = function() {
loader1.unload();
loader1.load("url2");
}
The issue here is that I can't get it to properly unload the movie so the connection with FMS remains. I've tried making button 1 load the streame and button 2 unload the stream, but no matter how much I press button 2, it would not unload and the stream will remain there running.
If anyone has any suggestions, it would be much appreciated.
Thanks.
