Pages: [1]
  Print  
Author Topic: Network connection problem  (Read 2844 times)
0 Members and 1 Guest are viewing this topic.
rferrolho
Newbie
*
Posts: 9


« on: 21 July , 2009, 03:01:14 »

Hi,

The first time a FL application tries to use the network the user is prompted to provide access and choose an access point.

If the user says "Yes" and then, when displayed the AP's list he chooses "Cancel", the network access is rejected. On the first time there's no problem with this issue but, when I try to make another request of the same type, the user is not prompted again and the application crashes with a "System error".

Does anyone have an idea of how to surround this problem? I'm trying to play streaming videos (with RTSP).


Regards.
Logged
rferrolho
Newbie
*
Posts: 9


« Reply #1 on: 21 July , 2009, 07:57:09 »

Ok, I found a solution. Note that this is being implemented for video. Anyway, here is the solution:

I have a variable called "connectStatus" (initialized with the value 1, allowing to try it for the first time) and this var is used to control the situation:

Code:
videoObject.onStatus = function(o:Object)
{
    if ( o.level )
    {
      //  Do absolutely nothing
    }
    else
    {
_root.connectStatus = -1;

    }
}

if(_root.connectStatus==1){
videoObject.play(desiredVideo);
}

This solution allows the application to access streaming videos but retain the request if the connection is refused.
Logged
Pages: [1]
  Print  
 
Jump to: