求助中国天气 flex实现方式
网址:http://flash.weather.com.cn/wmaps/index.swf
如何实现的。
[解决办法]
自己写一个吧,天气信息可以从yahoo中取去,你要查询具体城市的信息,更必ZIP就行了,如苏州是:CHXX0520
http://weather.yahooapis.com/forecastrss?p=CHXX0520
天气图标网上大把是.下载下来
按取的到信息放上图标就行了,用YAHoo的天气图标,比较拉风
public function YahooWeather(zip:Number = 94089) {
// create a new service
feedService = new HTTPService();
var dt:Date = new Date();
var time:String = "&time="+dt.getTime();
// service is set to fetch from Yahoo! weather API
feedService.url = "http://weather.yahooapis.com/forecastrss?p=" + zip + "&u=f"+time;
// result and fault events of the service are being tracked
feedService.addEventListener(ResultEvent.RESULT, raiseResult);
feedService.addEventListener(FaultEvent.FAULT, raiseError);
}
[解决办法]
用flex webservice