Home > 2008年 11月 5 日

Actionscript3のXMLで要素が存在するかを確認する方法


if (xml.hotspot != "") {

は通用しないので、

if ("hotspot" in xml) {

でOK。