Description

Creates a new instance of Current Conditions weather object for use by the Forecast Class.

Variables

doc

var doc: Array

error

var error: Boolean

error_msg

var error_msg: String

head_locale

var head_locale: String

head_format

var head_format: String

head_temp_unit

var head_temp_unit: String

head_distance_unit

var head_distance_unit: String

head_speed_unit

var head_speed_unit: String

head_precipitation_unit

var head_precipitation_unit: String

head_pressure_unit

var head_pressure_unit: String

loc_desc

var loc_desc: String

loc_time

var loc_time: String

loc_lat

var loc_lat: String

loc_long

var loc_long: String

loc_sunr

var loc_sunr: String

loc_suns

var loc_suns: String

loc_timeZone

var loc_timeZone: String

cc_last_update

var cc_last_update: String

cc_observation_loc

var cc_observation_loc: String

cc_temp

var cc_temp: String

cc_feelsLike

var cc_feelsLike: String

cc_desc

var cc_desc: String

cc_icon

var cc_icon: String

bar_pressure

var bar_pressure: String

bar_direction

var bar_direction: String

wind_spd

var wind_spd: Number

wind_gust

var wind_gust: Number

wind_degrees

var wind_degrees: Number

wind_heading

var wind_heading: String

humidity

var humidity: Number

visibility

var visibility: Number

uv_i

var uv_i: String

uv_d

var uv_d: String

dewpoint

var dewpoint

moon_icon

var moon_icon

moon_desc

var moon_desc

Functions

CurrentConditions

function CurrentConditions(myXML: XML)

Constructor

Parameters

myXMLXML Object containing data from weather.com feed.

Returns

New Instance

convertXML

private function convertXML()

Converts the XML data to the cc_obj

findNode

private function findNode(s: String):Object

Finds the specified node within the current XML document.

Parameters

sstring specifying the name of the node.

Returns

Objecteither an array containing the node searched for, or false when the node’s not found.
var doc: Array
var error: Boolean
var error_msg: String
var head_locale: String
var head_format: String
var head_temp_unit: String
var head_distance_unit: String
var head_speed_unit: String
var head_precipitation_unit: String
var head_pressure_unit: String
var loc_desc: String
var loc_time: String
var loc_lat: String
var loc_long: String
var loc_sunr: String
var loc_suns: String
var loc_timeZone: String
var cc_last_update: String
var cc_observation_loc: String
var cc_temp: String
var cc_feelsLike: String
var cc_desc: String
var cc_icon: String
var bar_pressure: String
var bar_direction: String
var wind_spd: Number
var wind_gust: Number
var wind_degrees: Number
var wind_heading: String
var humidity: Number
var visibility: Number
var uv_i: String
var uv_d: String
var dewpoint
var moon_icon
var moon_desc
function CurrentConditions(myXML: XML)
Constructor
private function convertXML()
Converts the XML data to the cc_obj
private function findNode(s: String):Object
Finds the specified node within the current XML document.