In Flash, how would I run an e4x statement when that statement is stored in a String?

前端 未结 2 1849
悲&欢浪女
悲&欢浪女 2021-01-21 03:10

So I have something like this:

var xmlStatement:String = \"xmlObject.node[3].@thisValue\";

What mystery function do I have to use so that I can

相关标签:
2条回答
  • 2021-01-21 03:46

    Unfortunately this is not possible in ActionScript 3. This however might be a solution: http://blog.betabong.com/2008/09/23/e4x-string-parser/

    0 讨论(0)
  • 2021-01-21 03:48

    For your example it would be: var attribute : String = String( E4X.evaluate( XMLList(xmlobject) , 'node[3].@thisValue' ) );

    0 讨论(0)
提交回复
热议问题