flash player|flash as3.0 Array 数组实例代码

时间:2015-10-24  来源:As3.0  阅读:

 function testarray(){
   var temp:Array = new Array(0,1,2);
   var i:int = 0;   
   while( i<3 ){
    if( i % 2 ){
     trace( typeof temp[i]+"n" );
    }else{
     trace("好像不对戏!");
    }
    i++;
   }
   
  }
  
  public function foundbook(){
   var box:Array = ["meyou","not think","fuck you","jimmy"];
   var fod:String = "jimmy";
   
   for( var j =0 ;j     if( box[j] == fod ){
     trace( box[j] + "我要出去哦,找到了" );
     break;
    }else{
     trace ("累啊,接着找 " + box[j] + "n");
    }
   }
  }

本站原创转载注明来自www.111cn.net/flash_a/flash.html

flash player|flash as3.0 Array 数组实例代码

http://m.bbyears.com/flash/18993.html

推荐访问:flash插件 flashfxp flash控件 flash动画制作 flashftp flashget flash动画
相关阅读 猜你喜欢
本类排行 本类最新