luxe
04-05-2007, 01:59 PM
Ok. this is a little more complicated than it seams....
In flash I have an XML object that gets converted to a string via .toString() and needs to be parsed as a variable within MMExecute(). However when I try that it keeps on telling me that it is not a literal string or syntx error.
This is simplified to what I have inside Flash:...
var myXML=new XML('<node label="someLabel"><node2></node2><node>');
var xmlStr = myXML.toString();
var executeStr = 'var newStr = \"'+xmlStr+'\"; fl.trace(newStr);';
MMExecute(executeStr );
...However if I do....
var xmlStr = '<node label="someLabel"><node2></node2><node>';
var executeStr = 'var newStr = \"'+xmlStr+'\"; fl.trace(newStr);';
MMExecute(executeStr );
...there is no problem.
I have tried everything I can think of and evey kind of concacting strings with variables and alternating between single and double commas with no luck.
Please someone help..no seriously, please do.
Thanks in advance.
In flash I have an XML object that gets converted to a string via .toString() and needs to be parsed as a variable within MMExecute(). However when I try that it keeps on telling me that it is not a literal string or syntx error.
This is simplified to what I have inside Flash:...
var myXML=new XML('<node label="someLabel"><node2></node2><node>');
var xmlStr = myXML.toString();
var executeStr = 'var newStr = \"'+xmlStr+'\"; fl.trace(newStr);';
MMExecute(executeStr );
...However if I do....
var xmlStr = '<node label="someLabel"><node2></node2><node>';
var executeStr = 'var newStr = \"'+xmlStr+'\"; fl.trace(newStr);';
MMExecute(executeStr );
...there is no problem.
I have tried everything I can think of and evey kind of concacting strings with variables and alternating between single and double commas with no luck.
Please someone help..no seriously, please do.
Thanks in advance.