The ExpediteConnection method starts the network connection
setup process for the Flash Lite application. This method is provided by the Device object.
Setting up a network connection can take a mobile device anywhere from
one to four seconds. If the setup process is started only when the connection
is needed, the user may have to wait up to four seconds for the application
to respond. To minimize the delay and provide fast response times with network
content, use the ExpediteConnection method to start the setup
process in advance. When the application later needs a network connection,
it can use the active connection that has already been set up by the ExpediteConnection call.
You can call the ExpediteConnection method at any stage
in your Flash Lite application.
ExpediteConnection():Number
The ExpediteConnection method does not take any arguments.
The ExpediteConnection method returns a number that
indicates the status code for the call.
The ExpediteConnection method is only useful with standalone Flash Lite
applications. Browser-embedded applications use the existing network connection
provided by the Web Browser for S60.
The following code snippet creates a new Device object
and uses it to start the network connection setup process with the ExpediteConnection method:
import com.nokia.lib.Device; var deviceObject:Object = new Device(); // Start the network connection setup process deviceObject.ExpediteConnection();
To download an example Flash Lite application that uses the ExpediteConnection method,
see section Flash Lite applications.