This class is included in the aircore.swc file. Adobe® Flash™ Builder loads this class automatically when you create a project for Adobe® AIR™. The Adobe® Flex™ SDK also includes this aircore.swc file, which you should include when compiling the application if you are using the Flex SDK.
In Adobe® Flash® CS3 Professional,
this class is included in the ServiceMonitorShim.swc file. To use classes in the air.net package ,
you must first drag the ServiceMonitorShim component from the Components panel to the
Library and then add the following
To use air.net package in Adobe® Flash® Professional (CS4 or higher):
If you do not specify a value for the
After creating a URLMonitor, the caller should call the
As with the Timer object, the caller should maintain a reference to the URLMonitor object. Otherwise the runtime could delete the object, thereby ending the monitoring.
A URLRequest parameter specifies the probe request for polling the server.
Typically, the request method will be either
If it receives a status code that is listed in the
Note: Methods of the Object class are dynamically created on Object's prototype. To redefine this method in a subclass of Object, do not use the
This class is included in the aircore.swc file. Adobe® Flash™ Builder™ loads this class automatically when you create a project for Adobe® AIR™. Adobe® Flex™ SDK also includes this aircore.swc file, which you should include when compiling the application if you are using Flex SDK.
In Adobe® Flash® CS3 Professional,
this class is included in the ServiceMonitorShim.swc file. To use classes in the air.net package ,
you must first drag the ServiceMonitorShim component from the Components panel to the
Library and then add the following
To use air.net package in Adobe® Flash® Professional (CS4 or higher):
The value of the
This class is typically subclassed to monitor specific service types.
After creating a ServiceMonitor object (or a subclass object), call the
As with the Timer object, the caller should maintain a reference to the ServiceMonitor object. Otherwise, the runtime deletes the object and monitoring ends.
A subclass override method for checking the status of the service.
Typically, this method will initiate a network operation whose completion or failure will result in
setting the
JavaScript code can specialize this method by defining a
Adds functions to the JavaScript constructor function's prototype that forward public ServiceMonitor functions to the ServiceMonitor object. This approximates a normal JavaScript subclass of the ActionScript base class.
A JavaScript class specializing a ServiceMonitor would look like this:
To use the JavaScript class:
Be sure to load the AIRAliases.js and aircore.swf files with
Note: Methods of the Object class are dynamically created on Object's prototype. To redefine this method in a subclass of Object, do not use the
The initial value is
Typically, this property is set by the
If zero, the server is not polled periodically, but only immediately after
The ServiceMonitor object only dispatches a
This class is included in the aircore.swc file. Flash Builder loads this class automatically when you create a project for AIR. The Flex SDK also includes this aircore.swc file, which you should include when compiling the application if you are using Flex SDK.
In Adobe® Flash® CS3 Professional,
this class is included in the ServiceMonitorShim.swc file. To use classes in the air.net package ,
you must first drag the ServiceMonitorShim component from the Components panel to the
Library and then add the following
To use air.net package in Adobe® Flash® Professional (CS4 or higher):
After creating a SecureSocketMonitor object, the caller should call
As with the Timer object, the caller should maintain a reference to the SecureSocketMonitor object. Otherwise, the runtime deletes the object and monitoring ends.
Note: Methods of the Object class are dynamically created on Object's prototype. To redefine this method in a subclass of Object, do not use the
This class is included in the aircore.swc file. Flash Builder loads this class automatically when you create a project for AIR. The Flex SDK also includes this aircore.swc file, which you should include when compiling the application if you are using Flex SDK.
In Adobe® Flash® CS3 Professional,
this class is included in the ServiceMonitorShim.swc file. To use classes in the air.net package ,
you must first drag the ServiceMonitorShim component from the Components panel to the
Library and then add the following
To use air.net package in Adobe® Flash® Professional (CS4 or higher):
After creating a SocketMonitor object, the caller should call
As with the Timer object, the caller should maintain a reference to the SocketMonitor object. Otherwise, the runtime deletes the object and monitoring ends.
Note: Methods of the Object class are dynamically created on Object's prototype. To redefine this method in a subclass of Object, do not use the