3 Replies Latest reply on Mar 1, 2008 1:07 AM by kglad

    Converting a string into useable code

    joe1pratt
      Hi, this is hurting my brain, can anyone help me with this, or is it not possible?

      I've built my own component that features a dynamic textbox, the text in this textbox has to come from and external XML file. At the moment i have a parameter in the component inspector where you can enter in the XML node location (myXML.firstchild....), this parameter is set to string data type.

      At the moment all that is displaying in the textbox is exactly what you put into the parameter. I need to be able to convert this string into a format that actionscript recognises as code. i.e it needs to think that it's a bit of code myXML.firstchild.., so that it loads in the data from the xml. I hope you can understand whats going on, any help would be appreciated.

      Cheers