WEB开发网
开发学院图形图像Flash Embed Flash Yahoo Weather in your page with Ya... 阅读

Embed Flash Yahoo Weather in your page with Yahoo APIs

 2009-10-20 00:00:00 来源:WEB开发网   
核心提示: Line 7: Declaring a new weather serviceLine 10: Getting the weather for my city code in metric values. You can pass metric or englishLine 11: Adding

Line 7: Declaring a new weather service

Line 10: Getting the weather for my city code in metric values. You can pass metric or english

Line 11: Adding a listener waiting for the weather to be loaded

The following lines are just placed to output some event results… let’s see them all:

event.data.current.astronomy.sunrise: The date and time of current date’s sunrise

event.data.current.astronomy.sunset: The date and time of current date’s sunset

event.data.current.atmosphere.humidity: Current humidity

event.data.current.atmosphere.visibility: Current visibility

event.data.current.atmosphere.pressure: Current pressure

event.data.current.atmosphere.rising: Current pressure differential (”rising”, “dropping” or “steady”)

event.data.current.description: Current conditions description

event.data.current.temperature: Current temperature

event.data.current.imageURL: URL of an image corresponding to current conditons

event.data.current.code: Current condition code… you can use it to load your own weather icons… try to Google for Yahoo weather icons

event.data.location.city: The city where the weather is being reported.

event.data.location.region: The region where the weather is being reported.

event.data.location.country: The country where the weather is being reported.

上一页  1 2 3 4  下一页

Tags:Embed Flash Yahoo

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接