亲们想知道Flash中attribute访问XML文档属性值的操作吗?下面就是小编整理的Flash中attribute访问XML文档属性值的详细步骤,赶紧来看看吧,希望能帮助到大家哦!
Flash中attribute访问XML文档属性值的详细步骤
1、定义一个字符串变量str。

2、定义一个XML类文档。

3、XML文档中,有三条姓名和出生日期的记录。

4、获取XML文档中,所有生日的属性,并保存在变量str中。

5、最后输出所有生日的属性值。

6、运行程序,所有生日的属性值都输出在窗口中了。

7、若要输出所有的属性值,则要用attributes方法。

8、运行程序,所有属性值都输出在窗口中了。

还不会在Flash中attribute访问XML文档属性值的朋友们,不要错过小编带来的这篇文章哦。