actionscript中HTMLIframeElement 获得不了document?

fourfire 2008-04-29
我用html控件,获得网页,需要解析其iframe中的内容,但是获得不了其document
 var doc:Object = event.currentTarget.domWindow.document;
  var iframes:Object=doc.getElementsByTagName("iframe");
   if(iframes.length>0)
 {
       trace("-----"+iframes[0]);
 	trace("-----"+iframes[0].getElementsByTagName("a").length);
        html.location=iframes[0].src;
 }
Global site tag (gtag.js) - Google Analytics