Friday, June 29, 2012

[Action Script] how do I escape double quotes when declaring a variable. June,2012

understand I have simplified my actual code to just cover my exact need.

I need to store ""michael080900.txt""

var new_variable
text1.text = "Michael080900.txt";
new_variable = text1.text;
with the quotes

because I need to make this line look like this, but it HAS to be from a variable otherwise the rest of my code is pointless.

my_data.load("michael080900.txt");
needs to become this so that I can load it from a flashvars and it read in the text file from a dynamically generated name.

my_data.load(new_story);
how do I escape double quotes when declaring a variable.

Related Post



0 comments: