0 0

httpservice的问题5

1。air如何判断远程文件是否存在
2。我用循环调用httpservice
myHttp.addEventListener("result",func);
myHttp.url         = TAOAPI.URL+this.geturl(); //此处调试打印出147条数据 
call                 = myHttp.send();
call.num_iid         = num_iid;

public function dealitem(event:ResultEvent):void{
        trace(event);  //此处调试只有58条数据
}

问题补充:感谢回复的哥们,补充一下
var myHttp:object = new HTTPService();
for(var i:Number =0;i<1000;i++){
  myHttp.addEventListener("result",func);
  myHttp.url         = "http://www.xxx/?id="+i;
  call               = myHttp.send();
  call.num_iid       = num_iid;
}

public function dealitem(event:ResultEvent):void{
        trace(event);
}

问题补充:
7454103 写道
你贴的这个代码呢  我基本还是不太明白你要干啥,不知道你那个147打印的是啥
  还有 如果你的dealitem(event:ResultEvent)方法 是要打印httpService返回的记录的话  是不是方法名应该myHttp.addEventListener("result",func); 这个里面的 func呢?
       最后 如果你要打印httpService返回的记录的话  是不是应该是    trace(event.result);   呢 ?
       只是个人觉得这样啊  不知道楼主是不是这个意思啊!

哥们,我就想知道,如果我有100个网络图片地址,我如何快速的去判断这些图片是否存在呢
2010年8月15日 22:07

2个答案 按时间排序 按投票排序

0 0

你贴的这个代码呢  我基本还是不太明白你要干啥,不知道你那个147打印的是啥
  还有 如果你的dealitem(event:ResultEvent)方法 是要打印httpService返回的记录的话  是不是方法名应该myHttp.addEventListener("result",func); 这个里面的 func呢?
       最后 如果你要打印httpService返回的记录的话  是不是应该是    trace(event.result);   呢 ?
       只是个人觉得这样啊  不知道楼主是不是这个意思啊!

2010年8月16日 08:34
0 0

兄弟 能否再多贴一点! 描述的比较抽象! 呵呵

2010年8月15日 22:29

相关推荐

Global site tag (gtag.js) - Google Analytics