Yahoo Weather and ActionScript
Excelente snippet extraído de Yahoo Api for ActionScript.
Éste codigo se utliza para manipular XML.
Actionscript:
-
var my_xml:XML = new XML();
-
-
my_xml.ignoreWhite = true;
-
-
my_xml.onLoad = function(success:Boolean) {
-
-
// do something
-
-
}
-
-
my_xml.load("http://xml.weather.yahoo.com/forecastrss?p=FRXX0076");
-
-
city_mc.onEnterFrame = function() {
-
-
city_mc._city.text = my_xml.firstChild.childNodes[0].childNodes[6].attributes.city;
-
-
_temp.text = my_xml.firstChild.childNodes[0].lastChild.childNodes[5].attributes.temp;
-
-
_conditions.text = my_xml.firstChild.childNodes[0].lastChild.childNodes[5].attributes.text;
-
-
}
post via: dhtmlnirvana
Acerca de la entrada
Estás leyendo “Yahoo Weather and ActionScript,” una entrada en blog.2grafic.com
- Publicado el:
- 01.02.07 / 8pm
- Categoria:
- AS3, Blog, Programacion
- Tags:
- No Tags
- Entradas Relacionadas:
- No Related Posts


|
Comentarios cerrados
Comentarios cerrados para esta entrada.