var Ob:Object={x:100,y:300,z:400};
for (var i:String in Ob) {
trace(i+";" +Ob[i]);
}
var Str:Array = ["天","生","我","才","必","有","用"];
for (var j:String in Str)
{
trace(Str[j]);
}
var myXML:XML=<XMLStr>
<Name>我要学flash1</Name>
<Name>我要学flash2</Name>
<Name>我要学flash3</Name>
</XMLStr>;
for each (var k in myXML) {
trace(k.Name)
}
flash中循环例子
最新推荐文章于 2024-09-19 15:09:10 发布