executing as3 code from a string
问题 I'm working on a simple text rpg and I'm storing all of my data objects out as xml files but I need to be able to run some simple statements for many things. I have done some googling I havent come up with much. What I'm trying to do is take simple statements like: playerhp += 15; or if(playerisvampire == 1) {blah blah;} and embed them inside of the xml structure so that an item or conversation line can contain the checks and executable code leaving the rpg class as more of an interpreter and