Parsing XML/XHTML in Actionscript

前端 未结 3 814
梦谈多话
梦谈多话 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:42

    Is there anything like the prototype.js function inspect() in Actionscript? I've tried testing the xpath solution but it just won't work. I've tested that the xpath is correct using scetchpad (I think that's what it's called), so I beleave theres a problem with the XML object... It seems to contain the xhtml file when viewing it in the debugger, though it seems quite chaotic, but if I could "inspect" the variables and trace them it would help locating the problem. (Thanks Tomalak, I will upvote your answer as soon as my "reputation" is high enough.)

    BTW, I still want to hear other ideas.

提交回复
热议问题