Parsing XML/XHTML in Actionscript

前端 未结 3 816
梦谈多话
梦谈多话 2021-01-24 06:48

Is there anything similar to getElementById in actionscript?

I\'m trying to make a prototype of a flash page wich gets it\'s data from a xhtml file. I want to have both

3条回答
  •  耶瑟儿~
    2021-01-24 07:41

    Use XML.idMap (or XMLDocument.idMap in ActionScript 3.0) property if quering elements by id is enough. This method is probably fastest way to do this. While XPath gives you advanced quering capabilities it reduces performance. So if you need some elements having id attributes I recomend you use idMap.

提交回复
热议问题