In my class, I built a Weather VO (Visual Object) and now need to use it for another class. How would I use it to modify the values of the text field in my second class? I attempted using getters and setters to no avail.
First Page:
vo=new WeatherVO();//Visual Object for the weather data
vo.city = _xmlData.channel.ns1::location.@city+", "+_xmlData.channel.ns1::location.@region;//city, st
vo.currentTemp = _xmlData.channel.item.ns1::condition.@temp;
vo.currentCondition = _xmlData.channel.item.ns1::condition.@text;
vo.currentCode = _xmlData.channel.item.ns1::condition.@code;
vo.sunrise = _xmlData.channel.ns1::astronomy.@sunrise;
vo.sunset = _xmlData.channel.ns1::astronomy.@sunset;
Second page:
public function set vo(value:WeatherVO):void
{
_weather=value;
}
public function get vo():WeatherVO
{
return _weather;
}