Frage

Any body help me I want to get image from yahoo weather rss and set the source of my flex component, I'm now able get other data from yahoo weather rss but still not able to get image please help me I have got other data in this way could-not-be-able-to-get-data-from-yahoo-weather-rss-in-flex

please give me some hint to get that images

War es hilfreich?

Lösung

Ok, at last today I got idea about how to set image, not about get image, from yahoo weather api or rss feed. So, I tried to get code of condition and set my own image placed in my assets folder like this:

            var codeOfCondition:XMLList = result_weather_data_xml.descendants().attribute("code");

and then tried :

if(codeOfCondition == 0){image.source = "assets/CORRESPONDING_IMAGE_TO_CODE";// for all conditions there should be corresponding image}

and this solves the problem for me, there may be some other way to do that but this is my approach thanks.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top