api_URL:String [read-write]
The URL for the weather API. Can be changed if necessary.
Implementation
public function get api_URL():String
public function set api_URL(value:String):void
public var weather:Weather
The container for the current weather conditions.
public function WeatherService()
WeatherService constructor.
public function getWeather(location:String, units:String):void
This method makes a request for the current and forecast weather conditions.
When the weather conditions are retrieved, the current instance of WeatherService
dispatches a WeatherResultEvent.WEATHER_LOADED event.
If an error occurs, the WeatherService dispatches a WeatherResultEvent.XML_LOADING or
a WeatherResultEvent.INVALID_LOCATIOn event.
Parameters
| location:String — Either a U.S. zip code, or a special international location code,
which can be obtained at http://weather.yahoo.com
|
| |
| units:String — A string, either a Units.METRIC_UNITS, or a Units.ENGLISH_UNITS,
specifying the units to return the data in.
|