All, I’m trying to basically search a text string and then replace it with a movie that I have in my library so I plan on using attachMovie and then do some tweening to it later. The part I’m struggling with now however is the actual adding the movie after it finds the string. Here is what I have:
var check_text;
check_text = "This is some text and it is nice in <bullet>Spain!";
var temparray = check_text.split("<bullet>");
var holder = temparray.join("-");
txt_box.text = holder;
This string outputs: “The is is some text and it is nice in -Spain”
I tried to change it to the following:
var check_text;
check_text = "This is some text and it is nice in <bullet>Spain!";
var temparray = check_text.split("<bullet>");
//var holder = temparray.join("-");
var holder = temparray.join(this.attachMovie("arrow_as2", "arrow_mov", 0));
txt_box.text = holder;
The output is: “This is some text and it is nice in _level0.arrow_movSpain!”
Anyway to replace text like that with an actual movie and have it output the movie? Thanks again for the help.