No title Revision 353865656331 (Sat May 23 2009 at 12:39) - Diff Link to this snippet: https://friendpaste.com/3vsfxPpryEG3MexE5Ck2jO Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 123456789101112131415161718192021222324252627public class DetailModel extends InjectorTarget { /*-.........................................weather..........................................*/ private var _weather:CurrentConditions; public function get weather():CurrentConditions { return _weather; } [Bindable] public function set weather(w:CurrentConditions):void { _weather = w; humidity = _weather.atmosphere.humidity; description = _weather.description; formatUnits(); } /*-.........................................formatUnits..........................................*/ private function formatUnits():void { if (weather && units) { pressure = weather.atmosphere.pressure + " " + units.pressure + " and " + weather.atmosphere.rising; wind = (weather.wind.speed > 0)?( weather.wind.speed + " " + units.speed):'Calm'; visibility = Number(weather.atmosphere.visibility)/100 + " " + units.distance; } } }